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.Vector4fcThe field for thecolorModulatorrecord component.private final floatThe field for thelineWidthrecord component.private final org.joml.Vector3fcThe field for themodelOffsetrecord component.private final org.joml.Matrix4fcThe field for themodelViewrecord component.private final org.joml.Matrix4fcThe field for thetextureMatrixrecord 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 aTransformrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector4fcReturns the value of thecolorModulatorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelineWidthrecord component.org.joml.Vector3fcReturns the value of themodelOffsetrecord component.org.joml.Matrix4fcReturns the value of themodelViewrecord component.org.joml.Matrix4fcReturns the value of thetextureMatrixrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(ByteBuffer p_418425_)
-
Field Details
-
modelView
private final org.joml.Matrix4fc modelViewThe field for themodelViewrecord component. -
colorModulator
private final org.joml.Vector4fc colorModulatorThe field for thecolorModulatorrecord component. -
modelOffset
private final org.joml.Vector3fc modelOffsetThe field for themodelOffsetrecord component. -
textureMatrix
private final org.joml.Matrix4fc textureMatrixThe field for thetextureMatrixrecord component. -
lineWidth
private final float lineWidthThe field for thelineWidthrecord 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 aTransformrecord class.- Parameters:
modelView- the value for themodelViewrecord componentcolorModulator- the value for thecolorModulatorrecord componentmodelOffset- the value for themodelOffsetrecord componenttextureMatrix- the value for thetextureMatrixrecord componentlineWidth- the value for thelineWidthrecord component
-
-
Method Details
-
write
- Specified by:
writein 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 themodelViewrecord component.- Returns:
- the value of the
modelViewrecord component
-
colorModulator
public org.joml.Vector4fc colorModulator()Returns the value of thecolorModulatorrecord component.- Returns:
- the value of the
colorModulatorrecord component
-
modelOffset
public org.joml.Vector3fc modelOffset()Returns the value of themodelOffsetrecord component.- Returns:
- the value of the
modelOffsetrecord component
-
textureMatrix
public org.joml.Matrix4fc textureMatrix()Returns the value of thetextureMatrixrecord component.- Returns:
- the value of the
textureMatrixrecord component
-
lineWidth
public float lineWidth()Returns the value of thelineWidthrecord component.- Returns:
- the value of the
lineWidthrecord component
-