public class WorldCapabilityData extends WorldSavedData
Modifier and Type | Field and Description |
---|---|
private NBTTagCompound |
capNBT |
static java.lang.String |
ID |
private INBTSerializable<NBTTagCompound> |
serializable |
mapName
Constructor and Description |
---|
WorldCapabilityData(INBTSerializable<NBTTagCompound> serializable) |
WorldCapabilityData(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDirty() |
void |
readFromNBT(NBTTagCompound nbt) |
void |
setCapabilities(WorldProvider provider,
INBTSerializable<NBTTagCompound> capabilities) |
NBTTagCompound |
writeToNBT(NBTTagCompound nbt) |
deserializeNBT, markDirty, serializeNBT, setDirty
public static final java.lang.String ID
private INBTSerializable<NBTTagCompound> serializable
private NBTTagCompound capNBT
public WorldCapabilityData(java.lang.String name)
public WorldCapabilityData(INBTSerializable<NBTTagCompound> serializable)
public void readFromNBT(NBTTagCompound nbt)
readFromNBT
in class WorldSavedData
public NBTTagCompound writeToNBT(NBTTagCompound nbt)
writeToNBT
in class WorldSavedData
public boolean isDirty()
isDirty
in class WorldSavedData
public void setCapabilities(WorldProvider provider, INBTSerializable<NBTTagCompound> capabilities)