Record Class EntityHitbox
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.state.EntityHitbox
- Record Components:
x0-y0-z0-x1-y1-z1-offsetX-offsetY-offsetZ-red-green-blue-
@Environment(CLIENT)
public record EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/state/EntityHitboxintermediary net/minecraft/class_10932official heqnamed x0intermediary comp_3849official anamed y0intermediary comp_3850official bnamed z0intermediary comp_3851official cnamed x1intermediary comp_3852official dnamed y1intermediary comp_3853official enamed z1intermediary comp_3854official fnamed offsetXintermediary comp_3855official gnamed offsetYintermediary comp_3856official hnamed offsetZintermediary comp_3857official inamed redintermediary comp_3858official jnamed greenintermediary comp_3859official knamed blueintermediary comp_3860official l
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thebluerecord component.private final floatThe field for thegreenrecord component.private final floatThe field for theoffsetXrecord component.private final floatThe field for theoffsetYrecord component.private final floatThe field for theoffsetZrecord component.private final floatThe field for theredrecord component.private final doubleThe field for thex0record component.private final doubleThe field for thex1record component.private final doubleThe field for they0record component.private final doubleThe field for they1record component.private final doubleThe field for thez0record component.private final doubleThe field for thez1record component. -
Constructor Summary
ConstructorsConstructorDescriptionEntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue) EntityHitbox(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7) -
Method Summary
Modifier and TypeMethodDescriptionfloatblue()Returns the value of thebluerecord component.final booleanIndicates whether some other object is "equal to" this one.floatgreen()Returns the value of thegreenrecord component.final inthashCode()Returns a hash code value for this object.floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.floatoffsetZ()Returns the value of theoffsetZrecord component.floatred()Returns the value of theredrecord component.final StringtoString()Returns a string representation of this record class.doublex0()Returns the value of thex0record component.doublex1()Returns the value of thex1record component.doubley0()Returns the value of they0record component.doubley1()Returns the value of they1record component.doublez0()Returns the value of thez0record component.doublez1()Returns the value of thez1record component.
-
Field Details
-
x0
private final double x0The field for thex0record component. -
y0
private final double y0The field for they0record component. -
z0
private final double z0The field for thez0record component. -
x1
private final double x1The field for thex1record component. -
y1
private final double y1The field for they1record component. -
z1
private final double z1The field for thez1record component. -
offsetX
private final float offsetXThe field for theoffsetXrecord component. -
offsetY
private final float offsetYThe field for theoffsetYrecord component. -
offsetZ
private final float offsetZThe field for theoffsetZrecord component. -
red
private final float redThe field for theredrecord component. -
green
private final float greenThe field for thegreenrecord component. -
blue
private final float blueThe field for thebluerecord component.
-
-
Constructor Details
-
EntityHitbox
public EntityHitbox(double x0, double y0, double z0, double x1, double y1, double z1, float red, float green, float blue) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/render/entity/state/EntityHitbox;<init>(DDDDDDFFF)Vintermediary <init>Lnet/minecraft/class_10932;<init>(DDDDDDFFF)Vofficial <init>Lheq;<init>(DDDDDDFFF)V
-
EntityHitbox
public EntityHitbox(double double2, double double3, double double4, double double5, double double6, double double7, float float2, float float3, float float4, float float5, float float6, float float7)
-
-
Method Details
-
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. All components in this record class are compared with '=='. -
x0
public double x0()Returns the value of thex0record component.- Returns:
- the value of the
x0record component
-
y0
public double y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
z0
public double z0()Returns the value of thez0record component.- Returns:
- the value of the
z0record component
-
x1
public double x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public double y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
z1
public double z1()Returns the value of thez1record component.- Returns:
- the value of the
z1record component
-
offsetX
public float offsetX()Returns the value of theoffsetXrecord component.- Returns:
- the value of the
offsetXrecord component
-
offsetY
public float offsetY()Returns the value of theoffsetYrecord component.- Returns:
- the value of the
offsetYrecord component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZrecord component.- Returns:
- the value of the
offsetZrecord component
-
red
public float red()Returns the value of theredrecord component.- Returns:
- the value of the
redrecord component
-
green
public float green()Returns the value of thegreenrecord component.- Returns:
- the value of the
greenrecord component
-
blue
public float blue()Returns the value of thebluerecord component.- Returns:
- the value of the
bluerecord component
-