Package net.minecraftforge.common.util
Class LevelCapabilityData
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraftforge.common.util.LevelCapabilityData
-
Field Summary
Modifier and TypeFieldDescriptionprivate CompoundTag
static final String
private INBTSerializable<CompoundTag>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isDirty()
static LevelCapabilityData
load
(CompoundTag tag, @Nullable INBTSerializable<CompoundTag> serializable) void
read
(CompoundTag nbt) save
(CompoundTag nbt) void
setCapabilities
(INBTSerializable<CompoundTag> capabilities)
-
Field Details
-
ID
- See Also:
-
serializable
-
capNBT
-
-
Constructor Details
-
LevelCapabilityData
-
-
Method Details
-
load
public static LevelCapabilityData load(CompoundTag tag, @Nullable @Nullable INBTSerializable<CompoundTag> serializable) -
read
-
save
-
isDirty
public boolean isDirty() -
setCapabilities
-