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/ModelIdentifier
intermediary net/minecraft/class_1091
official gsu
named id
intermediary comp_2875
official b
named variant
intermediary comp_2876
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Identifier
The field for theid
record component.static final String
private final String
The field for thevariant
record component. -
Constructor Summary
ConstructorDescriptionModelIdentifier
(Identifier id, String variant) Creates an instance of aModelIdentifier
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.static ModelIdentifier
static ModelIdentifier
private static String
toLowerCase
(String string) toString()
Returns a string representation of this record class.variant()
Returns the value of thevariant
record component.
-
Field Details
-
id
The field for theid
record component. -
variant
The field for thevariant
record component. -
INVENTORY_VARIANT
- See Also:
- Mappings:
Namespace Name Mixin selector named INVENTORY_VARIANT
Lnet/minecraft/client/util/ModelIdentifier;INVENTORY_VARIANT:Ljava/lang/String;
intermediary field_52277
Lnet/minecraft/class_1091;field_52277:Ljava/lang/String;
official a
Lgsu;a:Ljava/lang/String;
-
-
Constructor Details
-
Method Details
-
ofVanilla
- Mappings:
Namespace Name Mixin selector named ofVanilla
Lnet/minecraft/client/util/ModelIdentifier;ofVanilla(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/client/util/ModelIdentifier;
intermediary method_45910
Lnet/minecraft/class_1091;method_45910(Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_1091;
official a
Lgsu;a(Ljava/lang/String;Ljava/lang/String;)Lgsu;
-
ofInventoryVariant
- Mappings:
Namespace Name Mixin selector named ofInventoryVariant
Lnet/minecraft/client/util/ModelIdentifier;ofInventoryVariant(Lnet/minecraft/util/Identifier;)Lnet/minecraft/client/util/ModelIdentifier;
intermediary method_61078
Lnet/minecraft/class_1091;method_61078(Lnet/minecraft/class_2960;)Lnet/minecraft/class_1091;
official a
Lgsu;a(Lakr;)Lgsu;
-
toLowerCase
- Mappings:
Namespace Name Mixin selector named toLowerCase
Lnet/minecraft/client/util/ModelIdentifier;toLowerCase(Ljava/lang/String;)Ljava/lang/String;
intermediary method_45911
Lnet/minecraft/class_1091;method_45911(Ljava/lang/String;)Ljava/lang/String;
official a
Lgsu;a(Ljava/lang/String;)Ljava/lang/String;
-
getVariant
- Mappings:
Namespace Name Mixin selector named getVariant
Lnet/minecraft/client/util/ModelIdentifier;getVariant()Ljava/lang/String;
intermediary method_4740
Lnet/minecraft/class_1091;method_4740()Ljava/lang/String;
official a
Lgsu;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 theid
record component.- Returns:
- the value of the
id
record component
-
variant
Returns the value of thevariant
record component.- Returns:
- the value of the
variant
record component
-