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 hhi
named id
intermediary comp_2875
official a
named variant
intermediary comp_2876
official b
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelIdentifier
(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.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
-
Constructor Details
-
Method Details
-
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
Lhhi;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
Lhhi;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
-