Record Class SpriteMapper
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SpriteMapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theprefixrecord component.private final IdentifierThe field for thesheetrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpriteMapper(Identifier sheet, String prefix) Creates an instance of aSpriteMapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(Identifier path) defaultNamespaceApply(String path) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.prefix()Returns the value of theprefixrecord component.sheet()Returns the value of thesheetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sheet
The field for thesheetrecord component. -
prefix
The field for theprefixrecord component.
-
-
Constructor Details
-
SpriteMapper
Creates an instance of aSpriteMapperrecord class.- Parameters:
sheet- the value for thesheetrecord componentprefix- the value for theprefixrecord component
-
-
Method Details
-
apply
-
defaultNamespaceApply
-
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). -
sheet
Returns the value of thesheetrecord component.- Returns:
- the value of the
sheetrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-