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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionBlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotationrecord class.
- 
Method SummaryModifier 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- 
originprivate final org.joml.Vector3f originThe field for theoriginrecord component.
- 
axisThe field for theaxisrecord component.
- 
angleprivate final float angleThe field for theanglerecord component.
- 
rescaleprivate final boolean rescaleThe field for therescalerecord component.
 
- 
- 
Constructor Details- 
BlockElementRotationpublic BlockElementRotation(org.joml.Vector3f origin, Direction.Axis axis, float angle, boolean rescale) Creates an instance of aBlockElementRotationrecord class.- Parameters:
- origin- the value for the- originrecord component
- axis- the value for the- axisrecord component
- angle- the value for the- anglerecord component
- rescale- the value for the- rescalerecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
originpublic org.joml.Vector3f origin()Returns the value of theoriginrecord component.- Returns:
- the value of the originrecord component
 
- 
axisReturns the value of theaxisrecord component.- Returns:
- the value of the axisrecord component
 
- 
anglepublic float angle()Returns the value of theanglerecord component.- Returns:
- the value of the anglerecord component
 
- 
rescalepublic boolean rescale()Returns the value of therescalerecord component.- Returns:
- the value of the rescalerecord component
 
 
-