Record Class BakedQuad.SpriteInfo
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BakedQuad.SpriteInfo
- Enclosing class:
BakedQuad
public static record BakedQuad.SpriteInfo(TextureAtlasSprite sprite, ChunkSectionLayer layer, RenderType itemRenderType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RenderTypeThe field for theitemRenderTyperecord component.private final ChunkSectionLayerThe field for thelayerrecord component.private final TextureAtlasSpriteThe field for thespriterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpriteInfo(TextureAtlasSprite sprite, ChunkSectionLayer layer, RenderType itemRenderType) Creates an instance of aSpriteInforecord 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.Returns the value of theitemRenderTyperecord component.layer()Returns the value of thelayerrecord component.static BakedQuad.SpriteInfoof(Material.Baked material, Transparency transparency) sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sprite
The field for thespriterecord component. -
layer
The field for thelayerrecord component. -
itemRenderType
The field for theitemRenderTyperecord component.
-
-
Constructor Details
-
SpriteInfo
Creates an instance of aSpriteInforecord class.- Parameters:
sprite- the value for thespriterecord componentlayer- the value for thelayerrecord componentitemRenderType- the value for theitemRenderTyperecord component
-
-
Method Details
-
of
-
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). -
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
layer
Returns the value of thelayerrecord component.- Returns:
- the value of the
layerrecord component
-
itemRenderType
Returns the value of theitemRenderTyperecord component.- Returns:
- the value of the
itemRenderTyperecord component
-