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, class_9066 attachments, boolean fixed)
extends Record
- Mappings:
Namespace Name official blzintermediary net/minecraft/class_4048named net/minecraft/entity/EntityDimensionsofficial aintermediary comp_2185named widthofficial bintermediary comp_2186named heightofficial cintermediary comp_2187named eyeHeightofficial dintermediary comp_2188named attachmentsofficial eintermediary comp_2189named fixed
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_9066The 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, class_9066 class_9066, 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) final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.method_55684(class_9066.class_9067 class_9067) method_55685(float float2) private static floatmethod_55686(float float2) 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.
-
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 official <init>Lblz;<init>(FFZ)Vintermediary <init>Lnet/minecraft/class_4048;<init>(FFZ)Vnamed <init>Lnet/minecraft/entity/EntityDimensions;<init>(FFZ)V
-
EntityDimensions
public EntityDimensions(float float2, float float3, float float4, class_9066 class_9066, boolean bool)
-
-
Method Details
-
method_55686
private static float method_55686(float float2) - Mappings:
Namespace Name Mixin selector official cLblz;c(F)Fintermediary method_55686Lnet/minecraft/class_4048;method_55686(F)Fnamed method_55686Lnet/minecraft/entity/EntityDimensions;method_55686(F)F
-
getBoxAt
- Mappings:
Namespace Name Mixin selector official aLblz;a(Lemc;)Lelx;intermediary method_30757Lnet/minecraft/class_4048;method_30757(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;named getBoxAtLnet/minecraft/entity/EntityDimensions;getBoxAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
-
getBoxAt
- Mappings:
Namespace Name Mixin selector official aLblz;a(DDD)Lelx;intermediary method_30231Lnet/minecraft/class_4048;method_30231(DDD)Lnet/minecraft/class_238;named getBoxAtLnet/minecraft/entity/EntityDimensions;getBoxAt(DDD)Lnet/minecraft/util/math/Box;
-
scaled
- Mappings:
Namespace Name Mixin selector official aLblz;a(F)Lblz;intermediary method_18383Lnet/minecraft/class_4048;method_18383(F)Lnet/minecraft/class_4048;named scaledLnet/minecraft/entity/EntityDimensions;scaled(F)Lnet/minecraft/entity/EntityDimensions;
-
scaled
- Mappings:
Namespace Name Mixin selector official aLblz;a(FF)Lblz;intermediary method_19539Lnet/minecraft/class_4048;method_19539(FF)Lnet/minecraft/class_4048;named scaledLnet/minecraft/entity/EntityDimensions;scaled(FF)Lnet/minecraft/entity/EntityDimensions;
-
changing
- Mappings:
Namespace Name Mixin selector official bLblz;b(FF)Lblz;intermediary method_18384Lnet/minecraft/class_4048;method_18384(FF)Lnet/minecraft/class_4048;named changingLnet/minecraft/entity/EntityDimensions;changing(FF)Lnet/minecraft/entity/EntityDimensions;
-
fixed
- Mappings:
Namespace Name Mixin selector official cLblz;c(FF)Lblz;intermediary method_18385Lnet/minecraft/class_4048;method_18385(FF)Lnet/minecraft/class_4048;named fixedLnet/minecraft/entity/EntityDimensions;fixed(FF)Lnet/minecraft/entity/EntityDimensions;
-
method_55685
- Mappings:
Namespace Name Mixin selector official bLblz;b(F)Lblz;intermediary method_55685Lnet/minecraft/class_4048;method_55685(F)Lnet/minecraft/class_4048;named method_55685Lnet/minecraft/entity/EntityDimensions;method_55685(F)Lnet/minecraft/entity/EntityDimensions;
-
method_55684
- Mappings:
Namespace Name Mixin selector official aLblz;a(Lbly$a;)Lblz;intermediary method_55684Lnet/minecraft/class_4048;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/class_4048;named method_55684Lnet/minecraft/entity/EntityDimensions;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/entity/EntityDimensions;
-
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
-