Record Class HitboxRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.entity.state.HitboxRenderState
public record HitboxRenderState(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
-
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
ConstructorsConstructorDescriptionHitboxRenderState(double p_412445_, double p_412417_, double p_412502_, double p_412113_, double p_412754_, double p_412099_, float p_412628_, float p_412369_, float p_412175_) HitboxRenderState(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue) Creates an instance of aHitboxRenderStaterecord class. -
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
-
HitboxRenderState
public HitboxRenderState(double p_412445_, double p_412417_, double p_412502_, double p_412113_, double p_412754_, double p_412099_, float p_412628_, float p_412369_, float p_412175_) -
HitboxRenderState
public HitboxRenderState(double x0, double y0, double z0, double x1, double y1, double z1, float offsetX, float offsetY, float offsetZ, float red, float green, float blue) Creates an instance of aHitboxRenderStaterecord class.- Parameters:
x0- the value for thex0record componenty0- the value for they0record componentz0- the value for thez0record componentx1- the value for thex1record componenty1- the value for they1record componentz1- the value for thez1record componentoffsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentoffsetZ- the value for theoffsetZrecord componentred- the value for theredrecord componentgreen- the value for thegreenrecord componentblue- the value for thebluerecord component
-
-
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
-