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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector4fcThe field for thecolorModulatorrecord component.private final floatThe field for thelineWidthrecord component.private final Vector3fcThe field for themodelOffsetrecord component.private final Matrix4fcThe field for themodelViewrecord component.private final Matrix4fcThe field for thetextureMatrixrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.Returns the value of themodelOffsetrecord component.Returns the value of themodelViewrecord component.Returns the value of thetextureMatrixrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(ByteBuffer p_418425_)
-
Field Details
-
modelView
The field for themodelViewrecord component. -
colorModulator
The field for thecolorModulatorrecord component. -
modelOffset
The field for themodelOffsetrecord component. -
textureMatrix
The field for thetextureMatrixrecord component. -
lineWidth
private final float lineWidthThe field for thelineWidthrecord component.
-
-
Constructor Details
-
Transform
public Transform(Matrix4fc modelView, Vector4fc colorModulator, Vector3fc modelOffset, 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
Returns the value of themodelViewrecord component.- Returns:
- the value of the
modelViewrecord component
-
colorModulator
Returns the value of thecolorModulatorrecord component.- Returns:
- the value of the
colorModulatorrecord component
-
modelOffset
Returns the value of themodelOffsetrecord component.- Returns:
- the value of the
modelOffsetrecord component
-
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
-