Record Class DecoratedPotRenderer.SideSprite
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.blockentity.DecoratedPotRenderer.SideSprite
- Enclosing class:
DecoratedPotRenderer
private static record DecoratedPotRenderer.SideSprite(RenderType renderType, TextureAtlasSprite sprite)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderTypeThe field for therenderTyperecord component.private final TextureAtlasSpriteThe field for thespriterecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSideSprite(RenderType renderType, TextureAtlasSprite sprite) Creates an instance of aSideSpriterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate(SpriteGetter sprites, SpriteId spriteId) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therenderTyperecord component.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
renderType
The field for therenderTyperecord component. -
sprite
The field for thespriterecord component.
-
-
Constructor Details
-
SideSprite
Creates an instance of aSideSpriterecord class.- Parameters:
renderType- the value for therenderTyperecord componentsprite- the value for thespriterecord component
-
-
Method Details
-
create
-
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). -
renderType
Returns the value of therenderTyperecord component.- Returns:
- the value of the
renderTyperecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-