Package net.minecraft.entity
Record Class EntityDimensions
java.lang.Object
java.lang.Record
net.minecraft.entity.EntityDimensions
- Record Components:
width-height-eyeHeight-attachments-fixed-
public record EntityDimensions(float width, float height, float eyeHeight, EntityAttachments attachments, boolean fixed)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/EntityDimensionsintermediary net/minecraft/class_4048official bsunamed widthintermediary comp_2185official anamed heightintermediary comp_2186official bnamed eyeHeightintermediary comp_2187official cnamed attachmentsintermediary comp_2188official dnamed fixedintermediary comp_2189official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EntityAttachmentsThe field for theattachmentsrecord component.private final floatThe field for theeyeHeightrecord component.private final booleanThe field for thefixedrecord component.private final floatThe field for theheightrecord component.private final floatThe field for thewidthrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEntityDimensions(float width, float height, boolean fixed) EntityDimensions(float float2, float float3, float float4, EntityAttachments entityAttachments, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachmentsrecord component.static EntityDimensionschanging(float width, float height) final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theeyeHeightrecord component.booleanfixed()Returns the value of thefixedrecord component.static EntityDimensionsfixed(float width, float height) getBoxAt(double x, double y, double z) private static floatgetDefaultEyeHeight(float height) final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.scaled(float ratio) scaled(float widthRatio, float heightRatio) final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.withAttachments(EntityAttachments.Builder attachments) withEyeHeight(float eyeHeight)
-
Field Details
-
width
private final float widthThe field for thewidthrecord component. -
height
private final float heightThe field for theheightrecord component. -
eyeHeight
private final float eyeHeightThe field for theeyeHeightrecord component. -
attachments
The field for theattachmentsrecord component. -
fixed
private final boolean fixedThe field for thefixedrecord component.
-
-
Constructor Details
-
EntityDimensions
private EntityDimensions(float width, float height, boolean fixed) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/EntityDimensions;<init>(FFZ)Vintermediary <init>Lnet/minecraft/class_4048;<init>(FFZ)Vofficial <init>Lbsu;<init>(FFZ)V
-
EntityDimensions
public EntityDimensions(float float2, float float3, float float4, EntityAttachments entityAttachments, boolean bool)
-
-
Method Details
-
getDefaultEyeHeight
private static float getDefaultEyeHeight(float height) - Mappings:
Namespace Name Mixin selector named getDefaultEyeHeightLnet/minecraft/entity/EntityDimensions;getDefaultEyeHeight(F)Fintermediary method_55686Lnet/minecraft/class_4048;method_55686(F)Fofficial cLbsu;c(F)F
-
getBoxAt
- Mappings:
Namespace Name Mixin selector named getBoxAtLnet/minecraft/entity/EntityDimensions;getBoxAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;intermediary method_30757Lnet/minecraft/class_4048;method_30757(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;official aLbsu;a(Lexc;)Lewx;
-
getBoxAt
- Mappings:
Namespace Name Mixin selector named getBoxAtLnet/minecraft/entity/EntityDimensions;getBoxAt(DDD)Lnet/minecraft/util/math/Box;intermediary method_30231Lnet/minecraft/class_4048;method_30231(DDD)Lnet/minecraft/class_238;official aLbsu;a(DDD)Lewx;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/entity/EntityDimensions;scaled(F)Lnet/minecraft/entity/EntityDimensions;intermediary method_18383Lnet/minecraft/class_4048;method_18383(F)Lnet/minecraft/class_4048;official aLbsu;a(F)Lbsu;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/entity/EntityDimensions;scaled(FF)Lnet/minecraft/entity/EntityDimensions;intermediary method_19539Lnet/minecraft/class_4048;method_19539(FF)Lnet/minecraft/class_4048;official aLbsu;a(FF)Lbsu;
-
changing
- Mappings:
Namespace Name Mixin selector named changingLnet/minecraft/entity/EntityDimensions;changing(FF)Lnet/minecraft/entity/EntityDimensions;intermediary method_18384Lnet/minecraft/class_4048;method_18384(FF)Lnet/minecraft/class_4048;official bLbsu;b(FF)Lbsu;
-
fixed
- Mappings:
Namespace Name Mixin selector named fixedLnet/minecraft/entity/EntityDimensions;fixed(FF)Lnet/minecraft/entity/EntityDimensions;intermediary method_18385Lnet/minecraft/class_4048;method_18385(FF)Lnet/minecraft/class_4048;official cLbsu;c(FF)Lbsu;
-
withEyeHeight
- Mappings:
Namespace Name Mixin selector named withEyeHeightLnet/minecraft/entity/EntityDimensions;withEyeHeight(F)Lnet/minecraft/entity/EntityDimensions;intermediary method_55685Lnet/minecraft/class_4048;method_55685(F)Lnet/minecraft/class_4048;official bLbsu;b(F)Lbsu;
-
withAttachments
- Mappings:
Namespace Name Mixin selector named withAttachmentsLnet/minecraft/entity/EntityDimensions;withAttachments(Lnet/minecraft/entity/EntityAttachments$Builder;)Lnet/minecraft/entity/EntityDimensions;intermediary method_55684Lnet/minecraft/class_4048;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/class_4048;official aLbsu;a(Lbst$a;)Lbsu;
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public float height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
eyeHeight
public float eyeHeight()Returns the value of theeyeHeightrecord component.- Returns:
- the value of the
eyeHeightrecord component
-
attachments
Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
fixed
public boolean fixed()Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-