Record Class RenderSetup.TextureBinding
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.rendertype.RenderSetup.TextureBinding
- Enclosing class:
RenderSetup
static record RenderSetup.TextureBinding(Identifier location, Supplier<@Nullable GpuSampler> sampler)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for thelocationrecord component.private final Supplier<@Nullable GpuSampler> The field for thesamplerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureBinding(Identifier location, Supplier<@Nullable GpuSampler> sampler) Creates an instance of aTextureBindingrecord class. -
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.location()Returns the value of thelocationrecord component.Supplier<@Nullable GpuSampler> sampler()Returns the value of thesamplerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
location
The field for thelocationrecord component. -
sampler
The field for thesamplerrecord component.
-
-
Constructor Details
-
TextureBinding
TextureBinding(Identifier location, Supplier<@Nullable GpuSampler> sampler) Creates an instance of aTextureBindingrecord class.- Parameters:
location- the value for thelocationrecord componentsampler- the value for thesamplerrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-