[SPIGOT-5381] EntityBreedEvent is not fired for Turtles Created: 23/Oct/19 Updated: 23/Oct/19 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | callahan | Assignee: | Unassigned |
Resolution: | Unresolved | Votes: | 1 |
Labels: | 1.14, Craftbukkit | ||
Environment: |
Default Spigot 1.14.4 Server |
Version: | 1.14.4 |
Guidelines Read: | Yes |
Description |
Since EntityBreedEvent is called in g(), and Turtle overrides g() without including the firing of the event, you can conclude EntityBreedEvent is not called for Turtles. |
Comments |
Comment by callahan [ 23/Oct/19 ] |
> EntityBreedEvent promises that getEntity() is not null. Ah, that makes a bit more sense. However, I still think there needs to be an event there (doesn't have to be EntityBreedEvent, that event just made the most sense) because the achievement "Animals Bred" is sent, xp is dropped, and their "love" being reset. That's pretty indicative of breeding occurring. |
Comment by Black Hole [ 23/Oct/19 ] |
There is an EntityChangeBlockEvent called for turtles laying eggs. |
Comment by YourCoal [ 23/Oct/19 ] |
Is there an event that can handle this then? Perhaps a EntityLayEggsEvent could be added? getEntityType, getEggLocation, getAmount (of eggs layed) would probably be useful to have (if possible) |
Comment by md_5 [ 23/Oct/19 ] |
Yeah nothing is actually being bred |
Comment by Black Hole [ 23/Oct/19 ] |
Turtles are special since there is no child entity. EntityBreedEvent promises that getEntity() is not null. |