Package net.minecraft.client.renderer
Record Class MaterialMapper
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.MaterialMapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for theprefix
record component.private final ResourceLocation
The field for thesheet
record component. -
Constructor Summary
ConstructorsConstructorDescriptionMaterialMapper
(ResourceLocation sheet, String prefix) Creates an instance of aMaterialMapper
record class. -
Method Summary
Modifier and TypeMethodDescriptionapply
(ResourceLocation p_399646_) defaultNamespaceApply
(String p_400080_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.prefix()
Returns the value of theprefix
record component.sheet()
Returns the value of thesheet
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sheet
The field for thesheet
record component. -
prefix
The field for theprefix
record component.
-
-
Constructor Details
-
MaterialMapper
Creates an instance of aMaterialMapper
record class.- Parameters:
sheet
- the value for thesheet
record componentprefix
- the value for theprefix
record component
-
-
Method Details
-
apply
-
defaultNamespaceApply
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thesheet
record component.- Returns:
- the value of the
sheet
record component
-
prefix
Returns the value of theprefix
record component.- Returns:
- the value of the
prefix
record component
-