Package net.minecraftforge.event.entity
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
If you change the player's size, you probably want to set the eye height accordingly as well
This event is not
This event does not have a result.
This event is fired on the
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
Modifier and TypeFieldDescriptionprivate float
Deprecated, for removal: This API element is subject to removal in a future version.private EntityDimensions
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
ConstructorDescriptionSize
(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 TypeMethodDescriptionfloat
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.getPose()
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
setNewSize
(EntityDimensions size) 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
-
Field Details
-
pose
Deprecated, for removal: This API element is subject to removal in a future version. -
originalSize
Deprecated, for removal: This API element is subject to removal in a future version. -
newSize
Deprecated, for removal: This API element is subject to removal in a future version. -
oldEyeHeight
private final float oldEyeHeightDeprecated, for removal: This API element is subject to removal in a future version. -
newEyeHeight
private float newEyeHeightDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
Size
Deprecated, for removal: This API element is subject to removal in a future version. -
Size
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
Deprecated, for removal: This API element is subject to removal in a future version. -
getOldSize
Deprecated, for removal: This API element is subject to removal in a future version. -
getOriginalSize
Deprecated, for removal: This API element is subject to removal in a future version. -
getNewSize
Deprecated, for removal: This API element is subject to removal in a future version. -
setNewSize
Deprecated, for removal: This API element is subject to removal in a future version. -
setNewSize
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.
-