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
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for theanglerecord component.private final Direction.AxisThe field for theaxisrecord component.private final org.joml.Vector3fThe field for theoriginrecord component.private final booleanThe field for therescalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatangle()Returns the value of theanglerecord component.axis()Returns the value of theaxisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.joml.Vector3forigin()Returns the value of theoriginrecord component.booleanrescale()Returns the value of therescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
origin
private final org.joml.Vector3f originThe field for theoriginrecord component. -
axis
The field for theaxisrecord component. -
angle
private final float angleThe field for theanglerecord component. -
rescale
private final boolean rescaleThe field for therescalerecord component.
-
-
Constructor Details
-
BlockElementRotation
public BlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotationrecord class.- Parameters:
origin- the value for theoriginrecord componentaxis- the value for theaxisrecord componentangle- the value for theanglerecord componentrescale- the value for therescalerecord 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 theoriginrecord component.- Returns:
- the value of the
originrecord component
-
axis
Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord component
-
angle
public float angle()Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord component
-
rescale
public boolean rescale()Returns the value of therescalerecord component.- Returns:
- the value of the
rescalerecord component
-