public class WorldCapabilityData extends WorldSavedData
Modifier and Type | Field and Description |
---|---|
private CompoundNBT |
capNBT |
static java.lang.String |
ID |
private INBTSerializable<CompoundNBT> |
serializable |
Constructor and Description |
---|
WorldCapabilityData(INBTSerializable<CompoundNBT> serializable) |
WorldCapabilityData(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDirty() |
void |
read(CompoundNBT nbt) |
void |
setCapabilities(Dimension provider,
INBTSerializable<CompoundNBT> capabilities) |
CompoundNBT |
write(CompoundNBT nbt) |
deserializeNBT, getName, markDirty, save, serializeNBT, setDirty
public static final java.lang.String ID
private INBTSerializable<CompoundNBT> serializable
private CompoundNBT capNBT
public WorldCapabilityData(java.lang.String name)
public WorldCapabilityData(@Nullable INBTSerializable<CompoundNBT> serializable)
public void read(CompoundNBT nbt)
read
in class WorldSavedData
public CompoundNBT write(CompoundNBT nbt)
write
in class WorldSavedData
public boolean isDirty()
isDirty
in class WorldSavedData
public void setCapabilities(Dimension provider, INBTSerializable<CompoundNBT> capabilities)