Class BlockStorage

java.lang.Object
me.mrCookieSlime.Slimefun.api.BlockStorage

@Deprecated public class BlockStorage extends Object
Deprecated.
Deprecated: use BlockDataController instead
  • Constructor Details

    • BlockStorage

      public BlockStorage()
      Deprecated.
  • Method Details

    • getStorage

      @Nullable public static BlockStorage getStorage(@Nonnull org.bukkit.World world)
      Deprecated.
    • store

      public static void store(org.bukkit.block.Block block, org.bukkit.inventory.ItemStack item)
      Deprecated.
    • store

      public static void store(org.bukkit.block.Block block, String item)
      Deprecated.
    • retrieve

      @Nullable public static org.bukkit.inventory.ItemStack retrieve(@Nonnull org.bukkit.block.Block block)
      Deprecated.
      Retrieves the SlimefunItem's ItemStack from the specified Block. If the specified Block is registered in BlockStorage, its data will be erased from it, regardless of the returned value.
      Parameters:
      block - the block to retrieve the ItemStack from
      Returns:
      the SlimefunItem's ItemStack corresponding to the block if it has one, otherwise null
    • getLocationInfo

      public static String getLocationInfo(org.bukkit.Location l, String key)
      Deprecated.
    • addBlockInfo

      public static void addBlockInfo(org.bukkit.Location l, String key, String value)
      Deprecated.
    • addBlockInfo

      public static void addBlockInfo(org.bukkit.block.Block block, String key, String value)
      Deprecated.
    • addBlockInfo

      public static void addBlockInfo(org.bukkit.block.Block block, String key, String value, boolean updateTicker)
      Deprecated.
    • addBlockInfo

      public static void addBlockInfo(org.bukkit.Location l, String key, String value, boolean updateTicker)
      Deprecated.
    • hasBlockInfo

      public static boolean hasBlockInfo(org.bukkit.block.Block block)
      Deprecated.
    • hasBlockInfo

      public static boolean hasBlockInfo(org.bukkit.Location l)
      Deprecated.
    • clearBlockInfo

      public static void clearBlockInfo(org.bukkit.block.Block block)
      Deprecated.
    • clearBlockInfo

      public static void clearBlockInfo(org.bukkit.Location l)
      Deprecated.
    • clearBlockInfo

      public static void clearBlockInfo(org.bukkit.block.Block b, boolean destroy)
      Deprecated.
    • clearBlockInfo

      public static void clearBlockInfo(org.bukkit.Location l, boolean destroy)
      Deprecated.
    • check

      @Nullable public static SlimefunItem check(@Nonnull org.bukkit.block.Block b)
      Deprecated.
    • check

      @Nullable public static SlimefunItem check(@Nonnull org.bukkit.Location l)
      Deprecated.
    • check

      public static boolean check(org.bukkit.block.Block block, String slimefunItem)
      Deprecated.
    • checkID

      @Nullable public static String checkID(@Nonnull org.bukkit.block.Block b)
      Deprecated.
    • checkID

      @Nullable public static String checkID(@Nonnull org.bukkit.Location l)
      Deprecated.
    • check

      public static boolean check(@Nonnull org.bukkit.Location l, @Nullable String slimefunItem)
      Deprecated.
    • getInventory

      public static BlockMenu getInventory(org.bukkit.block.Block b)
      Deprecated.
    • hasInventory

      public static boolean hasInventory(org.bukkit.block.Block b)
      Deprecated.
    • getInventory

      public static BlockMenu getInventory(org.bukkit.Location l)
      Deprecated.
    • setChunkInfo

      public static void setChunkInfo(org.bukkit.World world, int x, int z, String key, String value)
      Deprecated.
    • hasChunkInfo

      public static boolean hasChunkInfo(org.bukkit.World world, int x, int z)
      Deprecated.
    • getChunkInfo

      public static String getChunkInfo(org.bukkit.World world, int x, int z, String key)
      Deprecated.
    • getLocationInfo

      public static Config getLocationInfo(org.bukkit.Location location)
      Deprecated.
    • deleteLocationInfoUnsafely

      public static void deleteLocationInfoUnsafely(org.bukkit.Location l, boolean destroy)
      Deprecated.