Record Class TextureSetup

java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.TextureSetup

public record TextureSetup(@Nullable GpuTextureView texure0, @Nullable GpuTextureView texure1, @Nullable GpuTextureView texure2) extends Record
  • Field Details

    • texure0

      @Nullable private final GpuTextureView texure0
      The field for the texure0 record component.
    • texure1

      @Nullable private final GpuTextureView texure1
      The field for the texure1 record component.
    • texure2

      @Nullable private final GpuTextureView texure2
      The field for the texure2 record component.
    • NO_TEXTURE_SETUP

      private static final TextureSetup NO_TEXTURE_SETUP
    • sortKeySeed

      private static int sortKeySeed
  • Constructor Details

    • TextureSetup

      public TextureSetup(@Nullable GpuTextureView texure0, @Nullable GpuTextureView texure1, @Nullable GpuTextureView texure2)
      Creates an instance of a TextureSetup record class.
      Parameters:
      texure0 - the value for the texure0 record component
      texure1 - the value for the texure1 record component
      texure2 - the value for the texure2 record component
  • Method Details

    • singleTexture

      public static TextureSetup singleTexture(GpuTextureView pTexture)
    • singleTextureWithLightmap

      public static TextureSetup singleTextureWithLightmap(GpuTextureView pTexture)
    • doubleTexture

      public static TextureSetup doubleTexture(GpuTextureView pTexture1, GpuTextureView pTexture2)
    • noTexture

      public static TextureSetup noTexture()
    • getSortKey

      public int getSortKey()
    • updateSortKeySeed

      public static void updateSortKeySeed()
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • texure0

      @Nullable public GpuTextureView texure0()
      Returns the value of the texure0 record component.
      Returns:
      the value of the texure0 record component
    • texure1

      @Nullable public GpuTextureView texure1()
      Returns the value of the texure1 record component.
      Returns:
      the value of the texure1 record component
    • texure2

      @Nullable public GpuTextureView texure2()
      Returns the value of the texure2 record component.
      Returns:
      the value of the texure2 record component