Record Class BlockElementRotation
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockElementRotation
public record BlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
The field for theangle
record component.private final Direction.Axis
The field for theaxis
record component.private final org.joml.Vector3f
The field for theorigin
record component.private final boolean
The field for therescale
record component. -
Constructor Summary
ConstructorDescriptionBlockElementRotation
(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotation
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
angle()
Returns the value of theangle
record component.axis()
Returns the value of theaxis
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joml.Vector3f
origin()
Returns the value of theorigin
record component.boolean
rescale()
Returns the value of therescale
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
origin
private final org.joml.Vector3f originThe field for theorigin
record component. -
axis
The field for theaxis
record component. -
angle
private final float angleThe field for theangle
record component. -
rescale
private final boolean rescaleThe field for therescale
record component.
-
-
Constructor Details
-
BlockElementRotation
public BlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotation
record class.- Parameters:
origin
- the value for theorigin
record componentaxis
- the value for theaxis
record componentangle
- the value for theangle
record componentrescale
- the value for therescale
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
origin
public org.joml.Vector3f origin()Returns the value of theorigin
record component.- Returns:
- the value of the
origin
record component
-
axis
Returns the value of theaxis
record component.- Returns:
- the value of the
axis
record component
-
angle
public float angle()Returns the value of theangle
record component.- Returns:
- the value of the
angle
record component
-
rescale
public boolean rescale()Returns the value of therescale
record component.- Returns:
- the value of the
rescale
record component
-