public enum NBTHandler extends java.lang.Enum<NBTHandler>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
<V,T extends net.minecraft.nbt.NBTBase> |
getParserForType(java.lang.Class<V> type) |
void |
loadNBTData(java.lang.Object object,
net.minecraft.nbt.NBTTagCompound compound) |
<V,T extends net.minecraft.nbt.NBTBase> |
registerNBTParser(java.lang.Class<V> type,
INBTParser<V,T> nbtParser) |
void |
saveNBTData(java.lang.Object object,
net.minecraft.nbt.NBTTagCompound compound) |
static NBTHandler |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NBTHandler[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NBTHandler INSTANCE
public static NBTHandler[] values()
for (NBTHandler c : NBTHandler.values()) System.out.println(c);
public static NBTHandler 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 <V,T extends net.minecraft.nbt.NBTBase> void registerNBTParser(java.lang.Class<V> type,
INBTParser<V,T> nbtParser)
public void loadNBTData(java.lang.Object object,
net.minecraft.nbt.NBTTagCompound compound)
public void saveNBTData(java.lang.Object object,
net.minecraft.nbt.NBTTagCompound compound)
public <V,T extends net.minecraft.nbt.NBTBase> INBTParser<V,T> getParserForType(java.lang.Class<V> type)