public enum PluggableRegistry extends java.lang.Enum<PluggableRegistry> implements IPluggableRegistry
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
PluggableDefinition |
getDefinition(net.minecraft.util.ResourceLocation identifier) |
void |
register(net.minecraft.util.ResourceLocation id,
PluggableDefinition definition) |
static PluggableRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PluggableRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfregisterpublic static final PluggableRegistry INSTANCE
public static PluggableRegistry[] values()
for (PluggableRegistry c : PluggableRegistry.values()) System.out.println(c);
public static PluggableRegistry valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void register(net.minecraft.util.ResourceLocation id,
PluggableDefinition definition)
register in interface IPluggableRegistrypublic PluggableDefinition getDefinition(net.minecraft.util.ResourceLocation identifier)
getDefinition in interface IPluggableRegistry