[SPIGOT-5380] function to check Ghast state Created: 22/Oct/19 Updated: 21/Jul/22 Resolved: 21/Jul/22 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor |
| Reporter: | Evil Witchdoctor | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Version: | bukkit-1.14-R1 and/or spigot-api-1.14-R1 |
| Guidelines Read: | Yes |
| Description |
|
If possible, it would be nice to have a method in the Ghast interface to get its current state: ghast.isScreaming() -> boolean True if a Ghast has its eyes/mouth open (periodically when it is attacking).
If this is already tracked in EntityGhast then I believe it would be a great addition to the API, but if it's all client-side then probably just ignore this feature request |
| Comments |
| Comment by Oscar Kologlu [ 04/Nov/19 ] |
|
While I agree this would be a great feature, in a pinch / if this doesn't get sorted you can use NMS to find the value, theres a DataWatcher<Boolean> object in net.minecraft.server.EntityGhast which you can access to get your values. If you are unsure how just look up some tutorials regarding DataWatchers.
|