Class ImmersiveMCPlayerStorages
java.lang.Object
net.minecraft.world.level.saveddata.SavedData
com.hammy275.immersivemc.server.storage.world.ImmersiveMCPlayerStorages
public class ImmersiveMCPlayerStorages
extends net.minecraft.world.level.saveddata.SavedData
Uses SavedData to hold player storage
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.saveddata.SavedData
net.minecraft.world.level.saveddata.SavedData.Factory<T extends net.minecraft.world.level.saveddata.SavedData>
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<net.minecraft.world.item.ItemStack>
getBackpackCraftingStorage
(net.minecraft.world.entity.player.Player player) static ImmersiveMCPlayerStorages
getPlayerStorage
(net.minecraft.world.entity.player.Player player) static ImmersiveMCPlayerStorages
load
(net.minecraft.nbt.CompoundTag nbt) net.minecraft.nbt.CompoundTag
save
(net.minecraft.nbt.CompoundTag nbt) Methods inherited from class net.minecraft.world.level.saveddata.SavedData
isDirty, save, setDirty, setDirty
-
Field Details
-
backpackCraftingItemsMap
-
-
Constructor Details
-
ImmersiveMCPlayerStorages
public ImmersiveMCPlayerStorages()
-
-
Method Details
-
getBackpackCraftingStorage
public static List<net.minecraft.world.item.ItemStack> getBackpackCraftingStorage(net.minecraft.world.entity.player.Player player) -
getPlayerStorage
public static ImmersiveMCPlayerStorages getPlayerStorage(net.minecraft.world.entity.player.Player player) -
load
-
save
public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag nbt) - Specified by:
save
in classnet.minecraft.world.level.saveddata.SavedData
-