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/EntityDimensions
intermediary net/minecraft/class_4048
official bvm
named width
intermediary comp_2185
official a
named height
intermediary comp_2186
official b
named eyeHeight
intermediary comp_2187
official c
named attachments
intermediary comp_2188
official d
named fixed
intermediary comp_2189
official e
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityAttachments
The field for theattachments
record component.private final float
The field for theeyeHeight
record component.private final boolean
The field for thefixed
record component.private final float
The field for theheight
record component.private final float
The field for thewidth
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
EntityDimensions
(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 theattachments
record component.static EntityDimensions
changing
(float width, float height) final boolean
Indicates whether some other object is "equal to" this one.float
Returns the value of theeyeHeight
record component.boolean
fixed()
Returns the value of thefixed
record component.static EntityDimensions
fixed
(float width, float height) getBoxAt
(double x, double y, double z) private static float
getDefaultEyeHeight
(float height) final int
hashCode()
Returns a hash code value for this object.float
height()
Returns the value of theheight
record component.scaled
(float ratio) scaled
(float widthRatio, float heightRatio) final String
toString()
Returns a string representation of this record class.float
width()
Returns the value of thewidth
record component.withAttachments
(EntityAttachments.Builder attachments) withEyeHeight
(float eyeHeight)
-
Field Details
-
width
private final float widthThe field for thewidth
record component. -
height
private final float heightThe field for theheight
record component. -
eyeHeight
private final float eyeHeightThe field for theeyeHeight
record component. -
attachments
The field for theattachments
record component. -
fixed
private final boolean fixedThe field for thefixed
record 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)V
intermediary <init>
Lnet/minecraft/class_4048;<init>(FFZ)V
official <init>
Lbvm;<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 getDefaultEyeHeight
Lnet/minecraft/entity/EntityDimensions;getDefaultEyeHeight(F)F
intermediary method_55686
Lnet/minecraft/class_4048;method_55686(F)F
official c
Lbvm;c(F)F
-
getBoxAt
- Mappings:
Namespace Name Mixin selector named getBoxAt
Lnet/minecraft/entity/EntityDimensions;getBoxAt(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Box;
intermediary method_30757
Lnet/minecraft/class_4048;method_30757(Lnet/minecraft/class_243;)Lnet/minecraft/class_238;
official a
Lbvm;a(Lfbx;)Lfbs;
-
getBoxAt
- Mappings:
Namespace Name Mixin selector named getBoxAt
Lnet/minecraft/entity/EntityDimensions;getBoxAt(DDD)Lnet/minecraft/util/math/Box;
intermediary method_30231
Lnet/minecraft/class_4048;method_30231(DDD)Lnet/minecraft/class_238;
official a
Lbvm;a(DDD)Lfbs;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaled
Lnet/minecraft/entity/EntityDimensions;scaled(F)Lnet/minecraft/entity/EntityDimensions;
intermediary method_18383
Lnet/minecraft/class_4048;method_18383(F)Lnet/minecraft/class_4048;
official a
Lbvm;a(F)Lbvm;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaled
Lnet/minecraft/entity/EntityDimensions;scaled(FF)Lnet/minecraft/entity/EntityDimensions;
intermediary method_19539
Lnet/minecraft/class_4048;method_19539(FF)Lnet/minecraft/class_4048;
official a
Lbvm;a(FF)Lbvm;
-
changing
- Mappings:
Namespace Name Mixin selector named changing
Lnet/minecraft/entity/EntityDimensions;changing(FF)Lnet/minecraft/entity/EntityDimensions;
intermediary method_18384
Lnet/minecraft/class_4048;method_18384(FF)Lnet/minecraft/class_4048;
official b
Lbvm;b(FF)Lbvm;
-
fixed
- Mappings:
Namespace Name Mixin selector named fixed
Lnet/minecraft/entity/EntityDimensions;fixed(FF)Lnet/minecraft/entity/EntityDimensions;
intermediary method_18385
Lnet/minecraft/class_4048;method_18385(FF)Lnet/minecraft/class_4048;
official c
Lbvm;c(FF)Lbvm;
-
withEyeHeight
- Mappings:
Namespace Name Mixin selector named withEyeHeight
Lnet/minecraft/entity/EntityDimensions;withEyeHeight(F)Lnet/minecraft/entity/EntityDimensions;
intermediary method_55685
Lnet/minecraft/class_4048;method_55685(F)Lnet/minecraft/class_4048;
official b
Lbvm;b(F)Lbvm;
-
withAttachments
- Mappings:
Namespace Name Mixin selector named withAttachments
Lnet/minecraft/entity/EntityDimensions;withAttachments(Lnet/minecraft/entity/EntityAttachments$Builder;)Lnet/minecraft/entity/EntityDimensions;
intermediary method_55684
Lnet/minecraft/class_4048;method_55684(Lnet/minecraft/class_9066$class_9067;)Lnet/minecraft/class_4048;
official a
Lbvm;a(Lbvl$a;)Lbvm;
-
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 thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public float height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-
eyeHeight
public float eyeHeight()Returns the value of theeyeHeight
record component.- Returns:
- the value of the
eyeHeight
record component
-
attachments
Returns the value of theattachments
record component.- Returns:
- the value of the
attachments
record component
-
fixed
public boolean fixed()Returns the value of thefixed
record component.- Returns:
- the value of the
fixed
record component
-