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-lineWidth-
- All Implemented Interfaces:
DynamicUniformStorage.Uploadable
- Enclosing class:
DynamicUniforms
@Environment(CLIENT)
public static record DynamicUniforms.UniformValue(Matrix4fc modelView, Vector4fc colorModulator, Vector3fc modelOffset, Matrix4fc textureMatrix, float lineWidth)
extends Record
implements DynamicUniformStorage.Uploadable
- Mappings:
Namespace Name named net/minecraft/client/gl/DynamicUniforms$UniformValueintermediary net/minecraft/class_11282$class_11283official hfh$anamed modelViewintermediary comp_4159official anamed colorModulatorintermediary comp_4160official bnamed modelOffsetintermediary comp_4161official cnamed textureMatrixintermediary comp_4162official dnamed lineWidthintermediary comp_4163official e
-
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
ConstructorsConstructorDescriptionUniformValue(Matrix4fc matrix4fc, Vector4fc vector4fc, Vector3fc vector3fc, Matrix4fc matrix4fc2, float float2) -
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 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. -
lineWidth
private final float lineWidthThe field for thelineWidthrecord component.
-
-
Constructor Details
-
UniformValue
-
-
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 aLhfg$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. 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
-