public static class EntityEvent.EyeHeight extends EntityEvent
Pose
changes, and in a few other hardcoded scenarios.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private float |
newHeight |
private float |
oldHeight |
private Pose |
pose |
private EntitySize |
size |
Constructor and Description |
---|
EyeHeight(Entity entity,
Pose pose,
EntitySize size,
float defaultHeight) |
Modifier and Type | Method and Description |
---|---|
float |
getNewHeight() |
float |
getOldHeight() |
Pose |
getPose() |
EntitySize |
getSize() |
void |
setNewHeight(float newSize) |
getEntity
private final Pose pose
private final EntitySize size
private final float oldHeight
private float newHeight
public EyeHeight(Entity entity, Pose pose, EntitySize size, float defaultHeight)
public Pose getPose()
public EntitySize getSize()
public float getOldHeight()
public float getNewHeight()
public void setNewHeight(float newSize)