@Environment(value=CLIENT) public class ModelIdentifier extends Identifier
Identifier.Serializer| Modifier and Type | Field and Description |
|---|---|
private String |
variant |
namespace, path| Modifier | Constructor and Description |
|---|---|
|
ModelIdentifier(Identifier id,
String variant) |
|
ModelIdentifier(String id) |
protected |
ModelIdentifier(String[] id) |
|
ModelIdentifier(String namespace,
String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getVariant() |
int |
hashCode() |
protected static String[] |
split(String id) |
String |
toString() |
compareTo, fromCommandInput, getNamespace, getPath, isCharValid, isValid, split, splitOn, tryParseprivate final String variant
protected ModelIdentifier(String[] id)
public ModelIdentifier(String id)
id - A string of the form Identifier.Identifier(java.lang.String, java.lang.String) that takes the namespace and path as individual parameters to avoid mistakes.public ModelIdentifier(Identifier id, String variant)
public String getVariant()
public boolean equals(Object object)
equals in class Identifierpublic int hashCode()
hashCode in class Identifierpublic String toString()
toString in class Identifier