Class LivingConversionEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingConversionEvent
- Direct Known Subclasses:
LivingConversionEvent.Post
,LivingConversionEvent.Pre
Currently known conversions:
Pig -> Zombie Piglin when struck by lightning
Villager -> Zombie Villager when killed by a zombie
Zombie -> Drowned when under water
Husk -> Zombie when under water
Zombie Villager -> Villager
Hoglin -> Zogline when in overworld
Piglin/Piglin Brute -> Zombie Pigman when in overworld
Villager -> Witch when struck by lightning
Skeleton -> Stray when sitting in snow
Tadpole -> Frog when it grows up
Mushroom Cow -> Cow when sheared
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LivingConversionEvent.Post is triggered when an entity is replacing itself with another entity.static class
LivingConversionEvent.Pre is triggered when an entity is trying to replace itself with another entity This event may trigger every tick even if it was cancelled last tick for entities like Zombies and Hoglins.Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEvent
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntity
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
LivingConversionEvent
-