Package net.minecraft.client.renderer
Record Class DynamicUniforms.Transform
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.DynamicUniforms.Transform
- All Implemented Interfaces:
DynamicUniformStorage.DynamicUniform
- Enclosing class:
DynamicUniforms
public static record DynamicUniforms.Transform(org.joml.Matrix4fc modelView, org.joml.Vector4fc colorModulator, org.joml.Vector3fc modelOffset, org.joml.Matrix4fc textureMatrix, float lineWidth)
extends Record
implements DynamicUniformStorage.DynamicUniform
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.joml.Vector4fc
The field for thecolorModulator
record component.private final float
The field for thelineWidth
record component.private final org.joml.Vector3fc
The field for themodelOffset
record component.private final org.joml.Matrix4fc
The field for themodelView
record component.private final org.joml.Matrix4fc
The field for thetextureMatrix
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTransform
(org.joml.Matrix4fc modelView, org.joml.Vector4fc colorModulator, org.joml.Vector3fc modelOffset, org.joml.Matrix4fc textureMatrix, float lineWidth) Creates an instance of aTransform
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fc
Returns the value of thecolorModulator
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.float
Returns the value of thelineWidth
record component.org.joml.Vector3fc
Returns the value of themodelOffset
record component.org.joml.Matrix4fc
Returns the value of themodelView
record component.org.joml.Matrix4fc
Returns the value of thetextureMatrix
record component.final String
toString()
Returns a string representation of this record class.void
write
(ByteBuffer p_418425_)
-
Field Details
-
modelView
private final org.joml.Matrix4fc modelViewThe field for themodelView
record component. -
colorModulator
private final org.joml.Vector4fc colorModulatorThe field for thecolorModulator
record component. -
modelOffset
private final org.joml.Vector3fc modelOffsetThe field for themodelOffset
record component. -
textureMatrix
private final org.joml.Matrix4fc textureMatrixThe field for thetextureMatrix
record component. -
lineWidth
private final float lineWidthThe field for thelineWidth
record component.
-
-
Constructor Details
-
Transform
public Transform(org.joml.Matrix4fc modelView, org.joml.Vector4fc colorModulator, org.joml.Vector3fc modelOffset, org.joml.Matrix4fc textureMatrix, float lineWidth) Creates an instance of aTransform
record class.- Parameters:
modelView
- the value for themodelView
record componentcolorModulator
- the value for thecolorModulator
record componentmodelOffset
- the value for themodelOffset
record componenttextureMatrix
- the value for thetextureMatrix
record componentlineWidth
- the value for thelineWidth
record component
-
-
Method Details
-
write
- Specified by:
write
in interfaceDynamicUniformStorage.DynamicUniform
-
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 '=='. -
modelView
public org.joml.Matrix4fc modelView()Returns the value of themodelView
record component.- Returns:
- the value of the
modelView
record component
-
colorModulator
public org.joml.Vector4fc colorModulator()Returns the value of thecolorModulator
record component.- Returns:
- the value of the
colorModulator
record component
-
modelOffset
public org.joml.Vector3fc modelOffset()Returns the value of themodelOffset
record component.- Returns:
- the value of the
modelOffset
record component
-
textureMatrix
public org.joml.Matrix4fc textureMatrix()Returns the value of thetextureMatrix
record component.- Returns:
- the value of the
textureMatrix
record component
-
lineWidth
public float lineWidth()Returns the value of thelineWidth
record component.- Returns:
- the value of the
lineWidth
record component
-