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, @Nullable GpuSampler sampler0, @Nullable GpuSampler sampler1, @Nullable GpuSampler sampler2) extends Record
  • Field Details

    • texure0

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

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

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

      private final @Nullable GpuSampler sampler0
      The field for the sampler0 record component.
    • sampler1

      private final @Nullable GpuSampler sampler1
      The field for the sampler1 record component.
    • sampler2

      private final @Nullable GpuSampler sampler2
      The field for the sampler2 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, @Nullable GpuSampler sampler0, @Nullable GpuSampler sampler1, @Nullable GpuSampler sampler2)
      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
      sampler0 - the value for the sampler0 record component
      sampler1 - the value for the sampler1 record component
      sampler2 - the value for the sampler2 record component
  • Method Details

    • singleTexture

      public static TextureSetup singleTexture(GpuTextureView pTexture, GpuSampler pSampler)
    • singleTextureWithLightmap

      public static TextureSetup singleTextureWithLightmap(GpuTextureView pTexture, GpuSampler pSampler)
    • doubleTexture

      public static TextureSetup doubleTexture(GpuTextureView pTexture1, GpuSampler pSampler1, GpuTextureView pTexture2, GpuSampler pSampler2)
    • 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

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

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

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

      public @Nullable GpuSampler sampler0()
      Returns the value of the sampler0 record component.
      Returns:
      the value of the sampler0 record component
    • sampler1

      public @Nullable GpuSampler sampler1()
      Returns the value of the sampler1 record component.
      Returns:
      the value of the sampler1 record component
    • sampler2

      public @Nullable GpuSampler sampler2()
      Returns the value of the sampler2 record component.
      Returns:
      the value of the sampler2 record component