Class LivingConversionEvent.Post
- 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
-
- net.minecraftforge.event.entity.living.LivingConversionEvent.Post
-
- Enclosing class:
- LivingConversionEvent
public static class LivingConversionEvent.Post extends LivingConversionEvent
LivingConversionEvent.Post is triggered when an entity is replacing itself with another entity. The old living entity is likely to be removed right after this event.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingConversionEvent
LivingConversionEvent.Post, LivingConversionEvent.Pre
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEvent
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Field Summary
Fields Modifier and Type Field Description private LivingEntity
outcome
-
Constructor Summary
Constructors Constructor Description Post(LivingEntity entity, LivingEntity outcome)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LivingEntity
getOutcome()
Gets the finalized new entity (with all data like potion effect and equipments set)-
Methods inherited from class net.minecraftforge.event.entity.living.LivingEvent
getEntityLiving
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Field Detail
-
outcome
private final LivingEntity outcome
-
-
Constructor Detail
-
Post
public Post(LivingEntity entity, LivingEntity outcome)
-
-
Method Detail
-
getOutcome
public LivingEntity getOutcome()
Gets the finalized new entity (with all data like potion effect and equipments set)- Returns:
- the finalized new entity
-
-