Package net.minecraft.client.util
Class ModelIdentifier
java.lang.Object
net.minecraft.util.Identifier
net.minecraft.client.util.ModelIdentifier
- All Implemented Interfaces:
Comparable<Identifier>
@Environment(CLIENT) public class ModelIdentifier extends Identifier
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description ModelIdentifier(String id)protectedModelIdentifier(String[] id)ModelIdentifier(String namespace, String path)ModelIdentifier(Identifier id, String variant) -
Method Summary
Methods inherited from class net.minecraft.util.Identifier
compareTo, fromCommandInput, getNamespace, getPath, isCharValid, isValid, split, splitOn, tryParse
-
Field Details
-
Constructor Details
-
ModelIdentifier
-
ModelIdentifier
- Parameters:
id- A string of the form: , for example minecraft:iron_ingot. The string will be split (on the :) into an identifier with the specified path and namespace. Prefer using the constructor Identifier(java.lang.String, java.lang.String)that takes the namespace and path as individual parameters to avoid mistakes.
-
ModelIdentifier
-
ModelIdentifier
-
-
Method Details
-
split
-
getVariant
-
equals
- Overrides:
equalsin classIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifier
-
toString
- Overrides:
toStringin classIdentifier
-