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, @Nullable GpuSampler sampler0, @Nullable GpuSampler sampler1, @Nullable GpuSampler sampler2)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TextureSetupprivate final @Nullable GpuSamplerThe field for thesampler0record component.private final @Nullable GpuSamplerThe field for thesampler1record component.private final @Nullable GpuSamplerThe field for thesampler2record component.private static intprivate final @Nullable GpuTextureViewThe field for thetexure0record component.private final @Nullable GpuTextureViewThe field for thetexure1record component.private final @Nullable GpuTextureViewThe field for thetexure2record component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureSetup(@Nullable GpuTextureView texure0, @Nullable GpuTextureView texure1, @Nullable GpuTextureView texure2, @Nullable GpuSampler sampler0, @Nullable GpuSampler sampler1, @Nullable GpuSampler sampler2) Creates an instance of aTextureSetuprecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic TextureSetupdoubleTexture(GpuTextureView pTexture1, GpuSampler pSampler1, GpuTextureView pTexture2, GpuSampler pSampler2) final booleanIndicates whether some other object is "equal to" this one.intfinal inthashCode()Returns a hash code value for this object.static TextureSetup@Nullable GpuSamplersampler0()Returns the value of thesampler0record component.@Nullable GpuSamplersampler1()Returns the value of thesampler1record component.@Nullable GpuSamplersampler2()Returns the value of thesampler2record component.static TextureSetupsingleTexture(GpuTextureView pTexture, GpuSampler pSampler) static TextureSetupsingleTextureWithLightmap(GpuTextureView pTexture, GpuSampler pSampler) @Nullable GpuTextureViewtexure0()Returns the value of thetexure0record component.@Nullable GpuTextureViewtexure1()Returns the value of thetexure1record component.@Nullable GpuTextureViewtexure2()Returns the value of thetexure2record component.final StringtoString()Returns a string representation of this record class.static void
-
Field Details
-
texure0
The field for thetexure0record component. -
texure1
The field for thetexure1record component. -
texure2
The field for thetexure2record component. -
sampler0
The field for thesampler0record component. -
sampler1
The field for thesampler1record component. -
sampler2
The field for thesampler2record component. -
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 aTextureSetuprecord class.- Parameters:
texure0- the value for thetexure0record componenttexure1- the value for thetexure1record componenttexure2- the value for thetexure2record componentsampler0- the value for thesampler0record componentsampler1- the value for thesampler1record componentsampler2- the value for thesampler2record component
-
-
Method Details
-
singleTexture
-
singleTextureWithLightmap
-
doubleTexture
public static TextureSetup doubleTexture(GpuTextureView pTexture1, GpuSampler pSampler1, GpuTextureView pTexture2, GpuSampler pSampler2) -
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 thetexure0record component.- Returns:
- the value of the
texure0record component
-
texure1
Returns the value of thetexure1record component.- Returns:
- the value of the
texure1record component
-
texure2
Returns the value of thetexure2record component.- Returns:
- the value of the
texure2record component
-
sampler0
Returns the value of thesampler0record component.- Returns:
- the value of the
sampler0record component
-
sampler1
Returns the value of thesampler1record component.- Returns:
- the value of the
sampler1record component
-
sampler2
Returns the value of thesampler2record component.- Returns:
- the value of the
sampler2record component
-