Record Class PreparedRenderType.Texture
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.rendertype.PreparedRenderType.Texture
- Enclosing class:
PreparedRenderType
public static record PreparedRenderType.Texture(String name, GpuTextureView textureView, GpuSampler sampler)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamerecord component.private final GpuSamplerThe field for thesamplerrecord component.private final GpuTextureViewThe field for thetextureViewrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTexture(String name, GpuTextureView textureView, GpuSampler sampler) Creates an instance of aTexturerecord 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.name()Returns the value of thenamerecord component.sampler()Returns the value of thesamplerrecord component.Returns the value of thetextureViewrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
name
The field for thenamerecord component. -
textureView
The field for thetextureViewrecord component. -
sampler
The field for thesamplerrecord component.
-
-
Constructor Details
-
Texture
Creates an instance of aTexturerecord class.- Parameters:
name- the value for thenamerecord componenttextureView- the value for thetextureViewrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
textureView
Returns the value of thetextureViewrecord component.- Returns:
- the value of the
textureViewrecord component
-
sampler
Returns the value of thesamplerrecord component.- Returns:
- the value of the
samplerrecord component
-