Record Class SpriteId
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.SpriteId
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theatlasLocationrecord component.private final IdentifierThe field for thetexturerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpriteId(Identifier atlasLocation, Identifier texture) Creates an instance of aSpriteIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theatlasLocationrecord component.buffer(SpriteGetter sprites, MultiBufferSource bufferSource, Function<Identifier, RenderType> renderType) buffer(SpriteGetter sprites, MultiBufferSource bufferSource, Function<Identifier, RenderType> renderType, boolean sheeted, boolean hasFoil) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.renderType(Function<Identifier, RenderType> renderType) texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
atlasLocation
The field for theatlasLocationrecord component. -
texture
The field for thetexturerecord component.
-
-
Constructor Details
-
SpriteId
Creates an instance of aSpriteIdrecord class.- Parameters:
atlasLocation- the value for theatlasLocationrecord componenttexture- the value for thetexturerecord component
-
-
Method Details
-
renderType
-
buffer
public VertexConsumer buffer(SpriteGetter sprites, MultiBufferSource bufferSource, Function<Identifier, RenderType> renderType) -
buffer
public VertexConsumer buffer(SpriteGetter sprites, MultiBufferSource bufferSource, Function<Identifier, RenderType> renderType, boolean sheeted, boolean hasFoil) -
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). -
atlasLocation
Returns the value of theatlasLocationrecord component.- Returns:
- the value of the
atlasLocationrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-