Package net.minecraft.client.gui.render
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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final TextureSetup
private static int
private final GpuTextureView
The field for thetexure0
record component.private final GpuTextureView
The field for thetexure1
record component.private final GpuTextureView
The field for thetexure2
record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureSetup
(GpuTextureView texure0, GpuTextureView texure1, GpuTextureView texure2) Creates an instance of aTextureSetup
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextureSetup
doubleTexture
(GpuTextureView pTexture1, GpuTextureView pTexture2) final boolean
Indicates whether some other object is "equal to" this one.int
final int
hashCode()
Returns a hash code value for this object.static TextureSetup
static TextureSetup
singleTexture
(GpuTextureView pTexture) static TextureSetup
singleTextureWithLightmap
(GpuTextureView pTexture) texure0()
Returns the value of thetexure0
record component.texure1()
Returns the value of thetexure1
record component.texure2()
Returns the value of thetexure2
record component.final String
toString()
Returns a string representation of this record class.static void
-
Field Details
-
texure0
The field for thetexure0
record component. -
texure1
The field for thetexure1
record component. -
texure2
The field for thetexure2
record component. -
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 aTextureSetup
record class.- Parameters:
texure0
- the value for thetexure0
record componenttexure1
- the value for thetexure1
record componenttexure2
- the value for thetexure2
record component
-
-
Method Details
-
singleTexture
-
singleTextureWithLightmap
-
doubleTexture
-
noTexture
-
getSortKey
public int getSortKey() -
updateSortKeySeed
public static void updateSortKeySeed() -
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
texure0
Returns the value of thetexure0
record component.- Returns:
- the value of the
texure0
record component
-
texure1
Returns the value of thetexure1
record component.- Returns:
- the value of the
texure1
record component
-
texure2
Returns the value of thetexure2
record component.- Returns:
- the value of the
texure2
record component
-