Package net.minecraft.client.util
Record Class ModelIdentifier
java.lang.Object
java.lang.Record
net.minecraft.client.util.ModelIdentifier
- Record Components:
id-variant-
- Mappings:
Namespace Name named net/minecraft/client/util/ModelIdentifierintermediary net/minecraft/class_1091official hhinamed idintermediary comp_2875official anamed variantintermediary comp_2876official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelIdentifier(Identifier id, String variant) Creates an instance of aModelIdentifierrecord 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.id()Returns the value of theidrecord component.private static StringtoLowerCase(String string) toString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
Constructor Details
-
Method Details
-
toLowerCase
- Mappings:
Namespace Name Mixin selector named toLowerCaseLnet/minecraft/client/util/ModelIdentifier;toLowerCase(Ljava/lang/String;)Ljava/lang/String;intermediary method_45911Lnet/minecraft/class_1091;method_45911(Ljava/lang/String;)Ljava/lang/String;official aLhhi;a(Ljava/lang/String;)Ljava/lang/String;
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariantLnet/minecraft/client/util/ModelIdentifier;getVariant()Ljava/lang/String;intermediary method_4740Lnet/minecraft/class_1091;method_4740()Ljava/lang/String;official aLhhi;a()Ljava/lang/String;
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
variant
Returns the value of thevariantrecord component.- Returns:
- the value of the
variantrecord component
-