public interface CatalogType
Enum
.
All implementing classes, including those not listed in the dummy
specified by the CatalogedBy
annotation, must meet the requirement that if any of
`a.equals(b)`
, `a == b`
, or
`a.getId().equalsIgnoreCase(b.getId())`
are true then all must
be true.
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets the unique identifier of this
CatalogType . |
String |
getName()
Gets the human-readable name of this individual
CatalogType . |
String getId()
CatalogType
. The identifier is
case insensitive, thus there cannot be another instance with a different
character case. The id of this instance must remain the same for the
entire duration of its existence. The identifier can be formatted however
needed.
A typical id format follows the pattern of `modId:name`
or `minecraft:name`
. However the prefix may be omitted for
default/vanilla minecraft types.
String getName()
CatalogType
. This
name is not guaranteed to be unique. This value should not be used for
serialization.