Package net.minecraftforge.common.util
Class WorldCapabilityData
- java.lang.Object
-
- net.minecraft.world.storage.WorldSavedData
-
- net.minecraftforge.common.util.WorldCapabilityData
-
- All Implemented Interfaces:
INBTSerializable<CompoundNBT>
public class WorldCapabilityData extends WorldSavedData
-
-
Field Summary
Fields Modifier and Type Field Description private CompoundNBT
capNBT
static java.lang.String
ID
private INBTSerializable<CompoundNBT>
serializable
-
Constructor Summary
Constructors Constructor Description WorldCapabilityData(java.lang.String name)
WorldCapabilityData(INBTSerializable<CompoundNBT> serializable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDirty()
void
load(CompoundNBT nbt)
CompoundNBT
save(CompoundNBT nbt)
void
setCapabilities(INBTSerializable<CompoundNBT> capabilities)
-
Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, save, serializeNBT, setDirty, setDirty
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
serializable
private INBTSerializable<CompoundNBT> serializable
-
capNBT
private CompoundNBT capNBT
-
-
Constructor Detail
-
WorldCapabilityData
public WorldCapabilityData(java.lang.String name)
-
WorldCapabilityData
public WorldCapabilityData(@Nullable INBTSerializable<CompoundNBT> serializable)
-
-
Method Detail
-
load
public void load(CompoundNBT nbt)
- Specified by:
load
in classWorldSavedData
-
save
public CompoundNBT save(CompoundNBT nbt)
- Specified by:
save
in classWorldSavedData
-
isDirty
public boolean isDirty()
- Overrides:
isDirty
in classWorldSavedData
-
setCapabilities
public void setCapabilities(INBTSerializable<CompoundNBT> capabilities)
-
-