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 float
The field for theblue
record component.private final float
The field for thegreen
record component.private final float
The field for theoffsetX
record component.private final float
The field for theoffsetY
record component.private final float
The field for theoffsetZ
record component.private final float
The field for thered
record component.private final double
The field for thex0
record component.private final double
The field for thex1
record component.private final double
The field for they0
record component.private final double
The field for they1
record component.private final double
The field for thez0
record component.private final double
The field for thez1
record 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 aHitboxRenderState
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
blue()
Returns the value of theblue
record component.final boolean
Indicates whether some other object is "equal to" this one.float
green()
Returns the value of thegreen
record component.final int
hashCode()
Returns a hash code value for this object.float
offsetX()
Returns the value of theoffsetX
record component.float
offsetY()
Returns the value of theoffsetY
record component.float
offsetZ()
Returns the value of theoffsetZ
record component.float
red()
Returns the value of thered
record component.final String
toString()
Returns a string representation of this record class.double
x0()
Returns the value of thex0
record component.double
x1()
Returns the value of thex1
record component.double
y0()
Returns the value of they0
record component.double
y1()
Returns the value of they1
record component.double
z0()
Returns the value of thez0
record component.double
z1()
Returns the value of thez1
record component.
-
Field Details
-
x0
private final double x0The field for thex0
record component. -
y0
private final double y0The field for they0
record component. -
z0
private final double z0The field for thez0
record component. -
x1
private final double x1The field for thex1
record component. -
y1
private final double y1The field for they1
record component. -
z1
private final double z1The field for thez1
record component. -
offsetX
private final float offsetXThe field for theoffsetX
record component. -
offsetY
private final float offsetYThe field for theoffsetY
record component. -
offsetZ
private final float offsetZThe field for theoffsetZ
record component. -
red
private final float redThe field for thered
record component. -
green
private final float greenThe field for thegreen
record component. -
blue
private final float blueThe field for theblue
record 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 aHitboxRenderState
record class.- Parameters:
x0
- the value for thex0
record componenty0
- the value for they0
record componentz0
- the value for thez0
record componentx1
- the value for thex1
record componenty1
- the value for they1
record componentz1
- the value for thez1
record componentoffsetX
- the value for theoffsetX
record componentoffsetY
- the value for theoffsetY
record componentoffsetZ
- the value for theoffsetZ
record componentred
- the value for thered
record componentgreen
- the value for thegreen
record componentblue
- the value for theblue
record 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 thex0
record component.- Returns:
- the value of the
x0
record component
-
y0
public double y0()Returns the value of they0
record component.- Returns:
- the value of the
y0
record component
-
z0
public double z0()Returns the value of thez0
record component.- Returns:
- the value of the
z0
record component
-
x1
public double x1()Returns the value of thex1
record component.- Returns:
- the value of the
x1
record component
-
y1
public double y1()Returns the value of they1
record component.- Returns:
- the value of the
y1
record component
-
z1
public double z1()Returns the value of thez1
record component.- Returns:
- the value of the
z1
record component
-
offsetX
public float offsetX()Returns the value of theoffsetX
record component.- Returns:
- the value of the
offsetX
record component
-
offsetY
public float offsetY()Returns the value of theoffsetY
record component.- Returns:
- the value of the
offsetY
record component
-
offsetZ
public float offsetZ()Returns the value of theoffsetZ
record component.- Returns:
- the value of the
offsetZ
record component
-
red
public float red()Returns the value of thered
record component.- Returns:
- the value of the
red
record component
-
green
public float green()Returns the value of thegreen
record component.- Returns:
- the value of the
green
record component
-
blue
public float blue()Returns the value of theblue
record component.- Returns:
- the value of the
blue
record component
-