Record Class UniformValue.Vec3fValue

java.lang.Object
java.lang.Record
net.minecraft.client.gl.UniformValue.Vec3fValue
Record Components:
value -
All Implemented Interfaces:
UniformValue
Enclosing interface:
UniformValue

@Environment(CLIENT) public static record UniformValue.Vec3fValue(Vector3f value) extends Record implements UniformValue
Mappings:
Namespace Name
named net/minecraft/client/gl/UniformValue$Vec3fValue
intermediary net/minecraft/class_11287$class_11294
official gyl$g
named value
intermediary comp_4173
official c
  • Field Details

    • value

      private final Vector3f value
      The field for the value record component.
    • CODEC

      public static final com.mojang.serialization.Codec<UniformValue.Vec3fValue> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/gl/UniformValue$Vec3fValue;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_60147 Lnet/minecraft/class_11287$class_11294;field_60147:Lcom/mojang/serialization/Codec;
      official b Lgyl$g;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Vec3fValue

      public Vec3fValue(Vector3f vector3f)
  • Method Details

    • write

      public void write(Std140Builder builder)
      Specified by:
      write in interface UniformValue
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/client/gl/UniformValue;write(Lcom/mojang/blaze3d/buffers/Std140Builder;)V
      intermediary method_71131 Lnet/minecraft/class_11287;method_71131(Lcom/mojang/blaze3d/buffers/Std140Builder;)V
      official a Lgyl;a(Lcom/mojang/blaze3d/buffers/Std140Builder;)V
    • addSize

      public void addSize(Std140SizeCalculator calculator)
      Specified by:
      addSize in interface UniformValue
      Mappings:
      Namespace Name Mixin selector
      named addSize Lnet/minecraft/client/gl/UniformValue;addSize(Lcom/mojang/blaze3d/buffers/Std140SizeCalculator;)V
      intermediary method_71132 Lnet/minecraft/class_11287;method_71132(Lcom/mojang/blaze3d/buffers/Std140SizeCalculator;)V
      official a Lgyl;a(Lcom/mojang/blaze3d/buffers/Std140SizeCalculator;)V
    • getType

      public UniformValue.Type getType()
      Specified by:
      getType in interface UniformValue
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/gl/UniformValue;getType()Lnet/minecraft/client/gl/UniformValue$Type;
      intermediary method_71130 Lnet/minecraft/class_11287;method_71130()Lnet/minecraft/class_11287$class_11292;
      official a Lgyl;a()Lgyl$e;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • value

      public Vector3f value()
      Returns the value of the value record component.
      Returns:
      the value of the value record component