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 gsunamed idintermediary comp_2875official bnamed variantintermediary comp_2876official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentifierThe field for theidrecord component.static final Stringprivate final StringThe field for thevariantrecord component. -
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.static ModelIdentifierstatic ModelIdentifierprivate static StringtoLowerCase(String string) toString()Returns a string representation of this record class.variant()Returns the value of thevariantrecord component.
-
Field Details
-
id
The field for theidrecord component. -
variant
The field for thevariantrecord component. -
INVENTORY_VARIANT
- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_VARIANTLnet/minecraft/client/util/ModelIdentifier;INVENTORY_VARIANT:Ljava/lang/String;intermediary field_52277Lnet/minecraft/class_1091;field_52277:Ljava/lang/String;official aLgsu;a:Ljava/lang/String;
-
-
Constructor Details
-
Method Details
-
ofVanilla
- Mappings:
Namespace Name Mixin selector named ofVanillaLnet/minecraft/client/util/ModelIdentifier;ofVanilla(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/ModelIdentifier;intermediary method_45910Lnet/minecraft/class_1091;method_45910(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_1091;official aLgsu;a(Ljava/lang/String;Ljava/lang/String;)Lgsu;
-
ofInventoryVariant
- Mappings:
Namespace Name Mixin selector named ofInventoryVariantLnet/minecraft/client/util/ModelIdentifier;ofInventoryVariant(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/util/ModelIdentifier;intermediary method_61078Lnet/minecraft/class_1091;method_61078(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1091;official aLgsu;a(Lakr;)Lgsu;
-
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 aLgsu;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 aLgsu;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
-