Package com.mojang.blaze3d.opengl
Record Class Uniform.Utb
java.lang.Object
java.lang.Record
com.mojang.blaze3d.opengl.Uniform.Utb
- All Implemented Interfaces:
Uniform
,AutoCloseable
- Enclosing interface:
Uniform
public static record Uniform.Utb(int location, int samplerIndex, TextureFormat format, int texture)
extends Record
implements Uniform
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.blaze3d.opengl.Uniform
Uniform.Sampler, Uniform.Ubo, Uniform.Utb
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TextureFormat
The field for theformat
record component.private final int
The field for thelocation
record component.private final int
The field for thesamplerIndex
record component.private final int
The field for thetexture
record component. -
Constructor Summary
ConstructorsConstructorDescriptionUtb
(int p_418342_, int p_418376_, TextureFormat p_418362_) Utb
(int location, int samplerIndex, TextureFormat format, int texture) Creates an instance of aUtb
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
final boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.int
location()
Returns the value of thelocation
record component.int
Returns the value of thesamplerIndex
record component.int
texture()
Returns the value of thetexture
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
location
private final int locationThe field for thelocation
record component. -
samplerIndex
private final int samplerIndexThe field for thesamplerIndex
record component. -
format
The field for theformat
record component. -
texture
private final int textureThe field for thetexture
record component.
-
-
Constructor Details
-
Utb
-
Utb
Creates an instance of aUtb
record class.- Parameters:
location
- the value for thelocation
record componentsamplerIndex
- the value for thesamplerIndex
record componentformat
- the value for theformat
record componenttexture
- the value for thetexture
record component
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceUniform
-
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 thelocation
record component.- Returns:
- the value of the
location
record component
-
samplerIndex
public int samplerIndex()Returns the value of thesamplerIndex
record component.- Returns:
- the value of the
samplerIndex
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
texture
public int texture()Returns the value of thetexture
record component.- Returns:
- the value of the
texture
record component
-