Package net.minecraft.client.gl
Record Class DynamicUniforms.UniformValue
java.lang.Object
java.lang.Record
net.minecraft.client.gl.DynamicUniforms.UniformValue
- Record Components:
modelView-colorModulator-modelOffset-textureMatrix-
- All Implemented Interfaces:
DynamicUniformStorage.Uploadable
- Enclosing class:
DynamicUniforms
@Environment(CLIENT)
public static record DynamicUniforms.UniformValue(Matrix4fc modelView, Vector4fc colorModulator, Vector3fc modelOffset, Matrix4fc textureMatrix)
extends Record
implements DynamicUniformStorage.Uploadable
- Mappings:
Namespace Name named net/minecraft/client/gl/DynamicUniforms$UniformValueintermediary net/minecraft/class_11282$class_11283official hip$anamed modelViewintermediary comp_4159official anamed colorModulatorintermediary comp_4160official bnamed modelOffsetintermediary comp_4161official cnamed textureMatrixintermediary comp_4162official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vector4fcThe field for thecolorModulatorrecord component.private final Vector3fcThe field for themodelOffsetrecord component.private final Matrix4fcThe field for themodelViewrecord component.private final Matrix4fcThe field for thetextureMatrixrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUniformValue(Matrix4fc modelView, Vector4fc colorModulator, Vector3fc modelOffset, Matrix4fc textureMatrix) Creates an instance of aUniformValuerecord class. -
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.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 buffer)
-
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.
-
-
Constructor Details
-
UniformValue
public UniformValue(Matrix4fc modelView, Vector4fc colorModulator, Vector3fc modelOffset, Matrix4fc textureMatrix) Creates an instance of aUniformValuerecord class.- Parameters:
modelView- the value for themodelViewrecord componentcolorModulator- the value for thecolorModulatorrecord componentmodelOffset- the value for themodelOffsetrecord componenttextureMatrix- the value for thetextureMatrixrecord component
-
-
Method Details
-
write
- Specified by:
writein interfaceDynamicUniformStorage.Uploadable- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/client/gl/DynamicUniformStorage$Uploadable;write(Ljava/nio/ByteBuffer;)Vintermediary method_71104Lnet/minecraft/class_11280$class_11281;method_71104(Ljava/nio/ByteBuffer;)Vofficial aLhio$a;a(Ljava/nio/ByteBuffer;)V
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-