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

    Fields
    Modifier and Type
    Field
    Description
    protected Map<UUID,List<net.minecraft.world.item.ItemStack>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.world.item.ItemStack>
    getBackpackCraftingStorage(net.minecraft.world.entity.player.Player player)
     
    getPlayerStorage(net.minecraft.world.entity.player.Player player)
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • backpackCraftingItemsMap

      protected Map<UUID,List<net.minecraft.world.item.ItemStack>> 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

      public static ImmersiveMCPlayerStorages load(net.minecraft.nbt.CompoundTag nbt)
    • save

      public net.minecraft.nbt.CompoundTag save(net.minecraft.nbt.CompoundTag nbt)
      Specified by:
      save in class net.minecraft.world.level.saveddata.SavedData