Class EntityEvent.Size

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityEvent.Size
Enclosing class:
EntityEvent

@Deprecated(forRemoval=true, since="1.20.1") public static class EntityEvent.Size extends EntityEvent
Deprecated, for removal: This API element is subject to removal in a future version.
CAREFUL: This is also fired in the Entity constructor. Therefore, the entity (subclass) might not be fully initialized. Check Entity.isAddedToWorld() or !Entity.firstUpdate.
If you change the player's size, you probably want to set the eye height accordingly as well

This event is not Cancelable.

This event does not have a result. Event.HasResult
This event is fired on the MinecraftForge.EVENT_BUS.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent

    EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.EyeHeight, EntityEvent.Size

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final EntityDimensions
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    private final Pose
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Size(Entity entity, Pose pose, EntityDimensions size)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Size(Entity entity, Pose pose, EntityDimensions size, float defaultEyeHeight)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Size(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize, float oldEyeHeight, float newEyeHeight)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    float
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setNewEyeHeight(float eyeHeight)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    setNewSize(EntityDimensions size, boolean updateEyeHeight)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class net.minecraftforge.event.entity.EntityEvent

    getEntity

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pose

      private final Pose pose
      Deprecated, for removal: This API element is subject to removal in a future version.
    • originalSize

      private final EntityDimensions originalSize
      Deprecated, for removal: This API element is subject to removal in a future version.
    • newSize

      private EntityDimensions newSize
      Deprecated, for removal: This API element is subject to removal in a future version.
    • oldEyeHeight

      private final float oldEyeHeight
      Deprecated, for removal: This API element is subject to removal in a future version.
    • newEyeHeight

      private float newEyeHeight
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • Size

      public Size(Entity entity, Pose pose, EntityDimensions size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Size

      public Size(Entity entity, Pose pose, EntityDimensions size, float defaultEyeHeight)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • Size

      public Size(Entity entity, Pose pose, EntityDimensions oldSize, EntityDimensions newSize, float oldEyeHeight, float newEyeHeight)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getPose

      public Pose getPose()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOldSize

      public EntityDimensions getOldSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOriginalSize

      public EntityDimensions getOriginalSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getNewSize

      public EntityDimensions getNewSize()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNewSize

      public void setNewSize(EntityDimensions size)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNewSize

      public void setNewSize(EntityDimensions size, boolean updateEyeHeight)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOldEyeHeight

      public float getOldEyeHeight()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getNewEyeHeight

      public float getNewEyeHeight()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setNewEyeHeight

      public void setNewEyeHeight(float eyeHeight)
      Deprecated, for removal: This API element is subject to removal in a future version.