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 Uniform
Uniform.Sampler, Uniform.Ubo, Uniform.Utb -
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
ConstructorsConstructorDescriptionUtb(int location, int samplerIndex, TextureFormat format) Utb(int location, int samplerIndex, TextureFormat format, int texture) Creates an instance of aUtbrecord class. -
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
-
Utb
-
Utb
Creates an instance of aUtbrecord class.- Parameters:
location- the value for thelocationrecord componentsamplerIndex- the value for thesamplerIndexrecord componentformat- the value for theformatrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUniform
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-