public enum AddonsRegistry extends java.lang.Enum<AddonsRegistry>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Addon> |
getClassByName(net.minecraft.util.ResourceLocation name) |
net.minecraft.util.ResourceLocation |
getNameByClass(java.lang.Class<? extends Addon> clazz) |
void |
register(net.minecraft.util.ResourceLocation name,
java.lang.Class<? extends Addon> clazz) |
static AddonsRegistry |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AddonsRegistry[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddonsRegistry INSTANCE
public static AddonsRegistry[] values()
for (AddonsRegistry c : AddonsRegistry.values()) System.out.println(c);
public static AddonsRegistry 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 name,
java.lang.Class<? extends Addon> clazz)
public java.lang.Class<? extends Addon> getClassByName(net.minecraft.util.ResourceLocation name)
public net.minecraft.util.ResourceLocation getNameByClass(java.lang.Class<? extends Addon> clazz)