Record Class Uniform.Utb

java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.Uniform.Utb
All Implemented Interfaces:
Uniform, AutoCloseable
Enclosing interface:
Uniform

public static record Uniform.Utb(int location, int samplerIndex, TextureFormat format, int texture) extends Record implements Uniform
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.mojang.blaze3d.opengl.Uniform

    Uniform.Sampler, Uniform.Ubo, Uniform.Utb
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final TextureFormat
    The field for the format record component.
    private final int
    The field for the location record component.
    private final int
    The field for the samplerIndex record component.
    private final int
    The field for the texture record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Utb(int p_418342_, int p_418376_, TextureFormat p_418362_)
     
    Utb(int location, int samplerIndex, TextureFormat format, int texture)
    Creates an instance of a Utb record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the format record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the location record component.
    int
    Returns the value of the samplerIndex record component.
    int
    Returns the value of the texture record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • location

      private final int location
      The field for the location record component.
    • samplerIndex

      private final int samplerIndex
      The field for the samplerIndex record component.
    • format

      private final TextureFormat format
      The field for the format record component.
    • texture

      private final int texture
      The field for the texture record component.
  • Constructor Details

    • Utb

      public Utb(int p_418342_, int p_418376_, TextureFormat p_418362_)
    • Utb

      public Utb(int location, int samplerIndex, TextureFormat format, int texture)
      Creates an instance of a Utb record class.
      Parameters:
      location - the value for the location record component
      samplerIndex - the value for the samplerIndex record component
      format - the value for the format record component
      texture - the value for the texture record component
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Uniform
    • 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 o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • location

      public int location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • samplerIndex

      public int samplerIndex()
      Returns the value of the samplerIndex record component.
      Returns:
      the value of the samplerIndex record component
    • format

      public TextureFormat format()
      Returns the value of the format record component.
      Returns:
      the value of the format record component
    • texture

      public int texture()
      Returns the value of the texture record component.
      Returns:
      the value of the texture record component