Class 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.
  • Field Details

    • outcome

      private final net.minecraft.world.entity.LivingEntity outcome
  • Constructor Details

    • Post

      public Post(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.entity.LivingEntity outcome)
  • Method Details

    • getOutcome

      public net.minecraft.world.entity.LivingEntity getOutcome()
      Gets the finalized new entity (with all data like potion effect and equipments set)
      Returns:
      the finalized new entity