Package net.minecraft.client.gl
Record Class GlUniform.Sampler
java.lang.Object
java.lang.Record
net.minecraft.client.gl.GlUniform.Sampler
- Record Components:
location-samplerIndex-
- All Implemented Interfaces:
AutoCloseable,GlUniform
- Enclosing interface:
GlUniform
@Environment(CLIENT)
public static record GlUniform.Sampler(int location, int samplerIndex)
extends Record
implements GlUniform
- Mappings:
Namespace Name named net/minecraft/client/gl/GlUniform$Samplerintermediary net/minecraft/class_284$class_11271official fsf$anamed locationintermediary comp_4148official anamed samplerIndexintermediary comp_4149official b
-
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 intThe field for thelocationrecord component.private final intThe field for thesamplerIndexrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlocation()Returns the value of thelocationrecord component.intReturns the value of thesamplerIndexrecord 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.
-
-
Constructor Details
-
Sampler
public Sampler(int int2, int int3)
-
-
Method Details
-
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 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
-