Package net.minecraftforge.common.util
Class LevelCapabilityData
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
net.minecraftforge.common.util.LevelCapabilityData
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
SavedData.Factory<T extends SavedData>
-
Field Summary
Modifier and TypeFieldDescriptionprivate CompoundTag
static final String
private INBTSerializable
<CompoundTag> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelCapabilityData
compute
(DimensionDataStorage data, @Nullable INBTSerializable<CompoundTag> caps) boolean
isDirty()
void
read
(CompoundTag nbt) save
(CompoundTag nbt, HolderLookup.Provider provider) void
setCapabilities
(INBTSerializable<CompoundTag> capabilities)
-
Field Details
-
ID
- See Also:
-
serializable
-
capNBT
-
-
Constructor Details
-
LevelCapabilityData
-
-
Method Details
-
read
-
save
-
isDirty
public boolean isDirty() -
setCapabilities
-
compute
public static LevelCapabilityData compute(DimensionDataStorage data, @Nullable @Nullable INBTSerializable<CompoundTag> caps)
-