Package net.minecraft.client.gl
Record Class GlUniform.TexelBuffer
java.lang.Object
java.lang.Record
net.minecraft.client.gl.GlUniform.TexelBuffer
- Record Components:
location-samplerIndex-format-texture-
- All Implemented Interfaces:
AutoCloseable,GlUniform
- Enclosing interface:
GlUniform
@Environment(CLIENT)
public static record GlUniform.TexelBuffer(int location, int samplerIndex, TextureFormat format, int texture)
extends Record
implements GlUniform
- Mappings:
Namespace Name named net/minecraft/client/gl/GlUniform$TexelBufferintermediary net/minecraft/class_284$class_11273official fsf$cnamed locationintermediary comp_4151official anamed samplerIndexintermediary comp_4152official bnamed formatintermediary comp_4153official cnamed textureintermediary comp_4154official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gl.GlUniform
GlUniform.Sampler, GlUniform.TexelBuffer, GlUniform.UniformBuffer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextureFormatThe field for theformatrecord component.private final intThe field for thelocationrecord component.private final intThe field for thesamplerIndexrecord component.private final intThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTexelBuffer(int location, int samplerIndex, TextureFormat format) TexelBuffer(int int2, int int3, TextureFormat textureFormat, int int4) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intlocation()Returns the value of thelocationrecord component.intReturns the value of thesamplerIndexrecord component.inttexture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
location
private final int locationThe field for thelocationrecord component. -
samplerIndex
private final int samplerIndexThe field for thesamplerIndexrecord component. -
format
The field for theformatrecord component. -
texture
private final int textureThe field for thetexturerecord component.
-
-
Constructor Details
-
TexelBuffer
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gl/GlUniform$TexelBuffer;<init>(IILcom/mojang/blaze3d/textures/TextureFormat;)Vintermediary <init>Lnet/minecraft/class_284$class_11273;<init>(IILcom/mojang/blaze3d/textures/TextureFormat;)Vofficial <init>Lfsf$c;<init>(IILcom/mojang/blaze3d/textures/TextureFormat;)V
-
TexelBuffer
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceGlUniform
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
location
public int location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
samplerIndex
public int samplerIndex()Returns the value of thesamplerIndexrecord component.- Returns:
- the value of the
samplerIndexrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
texture
public int texture()Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-