Record Class BlockElementRotation
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BlockElementRotation
public record BlockElementRotation(Vector3fc origin, BlockElementRotation.RotationValue value, boolean rescale, Matrix4fc transform)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector3fcThe field for theoriginrecord component.private final booleanThe field for therescalerecord component.private final Matrix4fcThe field for thetransformrecord component.private final BlockElementRotation.RotationValueThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBlockElementRotation(Vector3fc origin, BlockElementRotation.RotationValue value, boolean rescale) BlockElementRotation(Vector3fc origin, BlockElementRotation.RotationValue value, boolean rescale, Matrix4fc transform) Creates an instance of aBlockElementRotationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Vector3fccomputeRescale(Matrix4fc rotation) private static Matrix4fcomputeTransform(BlockElementRotation.RotationValue value, boolean rescale) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.origin()Returns the value of theoriginrecord component.booleanrescale()Returns the value of therescalerecord component.private static floatscaleFactorForAxis(Matrix4fc rotation, Direction.Axis axis, Vector3f scratch) final StringtoString()Returns a string representation of this record class.Returns the value of thetransformrecord component.value()Returns the value of thevaluerecord component.
-
Field Details
-
origin
The field for theoriginrecord component. -
value
The field for thevaluerecord component. -
rescale
private final boolean rescaleThe field for therescalerecord component. -
transform
The field for thetransformrecord component.
-
-
Constructor Details
-
BlockElementRotation
public BlockElementRotation(Vector3fc origin, BlockElementRotation.RotationValue value, boolean rescale) -
BlockElementRotation
public BlockElementRotation(Vector3fc origin, BlockElementRotation.RotationValue value, boolean rescale, Matrix4fc transform) Creates an instance of aBlockElementRotationrecord class.- Parameters:
origin- the value for theoriginrecord componentvalue- the value for thevaluerecord componentrescale- the value for therescalerecord componenttransform- the value for thetransformrecord component
-
-
Method Details
-
computeTransform
-
computeRescale
-
scaleFactorForAxis
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
origin
Returns the value of theoriginrecord component.- Returns:
- the value of the
originrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
rescale
public boolean rescale()Returns the value of therescalerecord component.- Returns:
- the value of the
rescalerecord component
-
transform
Returns the value of thetransformrecord component.- Returns:
- the value of the
transformrecord component
-