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>
-
Field Summary
Modifier and TypeFieldDescriptionprivate CompoundNBT
static final String
private INBTSerializable<CompoundNBT>
-
Constructor Summary
ConstructorDescriptionWorldCapabilityData
(String name) WorldCapabilityData
(INBTSerializable<CompoundNBT> serializable) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDirty()
void
load
(CompoundNBT nbt) save
(CompoundNBT nbt) void
setCapabilities
(INBTSerializable<CompoundNBT> capabilities) Methods inherited from class net.minecraft.world.storage.WorldSavedData
deserializeNBT, getId, save, serializeNBT, setDirty, setDirty
-
Field Details
-
ID
- See Also:
-
serializable
-
capNBT
-
-
Constructor Details
-
WorldCapabilityData
-
WorldCapabilityData
-
-
Method Details
-
load
- Specified by:
load
in classWorldSavedData
-
save
- Specified by:
save
in classWorldSavedData
-
isDirty
public boolean isDirty()- Overrides:
isDirty
in classWorldSavedData
-
setCapabilities
-