Class BagData

java.lang.Object
valorless.havenbags.BagData

public class BagData extends Object
  • Field Details

    • interval

      public static long interval
  • Constructor Details

    • BagData

      public BagData()
  • Method Details

    • isReady

      public static boolean isReady()
    • Initiate

      public static void Initiate()
    • Shutdown

      public static void Shutdown()
    • ChangeDatabase

      public static void ChangeDatabase(DatabaseType type)
    • Reload

      public static void Reload()
    • ForceReload

      public static void ForceReload()
    • Contains

      public static boolean Contains(@NotNull @NotNull String uuid)
    • BagExists

      public static Boolean BagExists(@NotNull @NotNull String uuid)
    • GetBag

      public static Data GetBag(@NotNull @NotNull String uuid, @Nullable org.bukkit.inventory.ItemStack bagItem, @Nullable BagData.UpdateSource... source)
    • UpdateBag

      public static void UpdateBag(@NotNull @NotNull String uuid, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> content, @Nullable BagData.UpdateSource... source)
    • UpdateBag

      public static void UpdateBag(@NotNull @NotNull org.bukkit.inventory.ItemStack bagItem, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> content, BagData.UpdateSource... source)
    • CreateBag

      public static Data CreateBag(@NotNull @NotNull String uuid, @NotNull @NotNull String owner, @NotNull @NotNull List<org.bukkit.inventory.ItemStack> content, org.bukkit.entity.Player creator, org.bukkit.inventory.ItemStack bag)
    • LoadData

      public static void LoadData()
    • SaveData

      public static void SaveData(boolean shutdown, boolean... conversion)
    • RemoveBag

      public static void RemoveBag(@NotNull @NotNull String uuid)
    • DeleteBag

      public static Boolean DeleteBag(@NotNull @NotNull String uuid)
    • GetBags

      public static List<String> GetBags(@NotNull @NotNull String playerUUID)
    • GetBagsData

      public static List<Data> GetBagsData(@NotNull @NotNull String playerUUID)
    • GetBagOwners

      public static List<String> GetBagOwners()
    • IsBagOpen

      public static boolean IsBagOpen(@NotNull @NotNull String uuid, org.bukkit.inventory.ItemStack bagItem)
    • IsBagOpen

      public static boolean IsBagOpen(org.bukkit.inventory.ItemStack bagItem)
    • BagOpenBy

      public static org.bukkit.entity.Player BagOpenBy(@NotNull @NotNull String uuid, org.bukkit.inventory.ItemStack bagItem)
    • MarkBagOpen

      public static void MarkBagOpen(@NotNull @NotNull String uuid, org.bukkit.inventory.ItemStack bagItem, org.bukkit.entity.Player player)
    • MarkBagOpen

      public static void MarkBagOpen(@NotNull @NotNull String uuid, org.bukkit.inventory.ItemStack bagItem, org.bukkit.entity.Player player, BagGUI gui)
    • MarkBagClosed

      public static void MarkBagClosed(@NotNull @NotNull String uuid)
    • GetTrusted

      public List<String> GetTrusted(@NotNull @NotNull String uuid)
    • GetOwner

      public static String GetOwner(@NotNull @NotNull String uuid)
    • GetCreator

      public static String GetCreator(@NotNull @NotNull String uuid)
    • AddTrusted

      public static void AddTrusted(@NotNull @NotNull String uuid, @NotNull @NotNull String player)
    • RemoveTrusted

      public static void RemoveTrusted(@NotNull @NotNull String uuid, @NotNull @NotNull String player)
    • SetAutoPickup

      public static void SetAutoPickup(@NotNull @NotNull String uuid, @NotNull @NotNull String filter)
    • GetAutoPickup

      public static String GetAutoPickup(@NotNull @NotNull String uuid)
    • RemoveAutoPickup

      public static void RemoveAutoPickup(@NotNull @NotNull String uuid)
    • SetWeight

      public static void SetWeight(@NotNull @NotNull String uuid, @NotNull @org.jetbrains.annotations.NotNull double weight)
    • SetWeightMax

      public static void SetWeightMax(@NotNull @NotNull String uuid, @NotNull @org.jetbrains.annotations.NotNull double weightmax)
    • getTextureValue

      public static String getTextureValue(org.bukkit.inventory.ItemStack head)
    • setTextureValue

      public static void setTextureValue(@NotNull @NotNull org.bukkit.inventory.ItemStack item, @NotNull @NotNull String value)
    • GetOpenBags

      public static List<Data> GetOpenBags()
    • deserializeItemStackList

      public static List<com.google.gson.JsonObject> deserializeItemStackList(String json)
    • ClearAllBagContents

      public static Boolean ClearAllBagContents()
    • ClearBagContentPlayer

      public static Boolean ClearBagContentPlayer(@NotNull @NotNull String playeruuid)
    • ClearBagContent

      public static Boolean ClearBagContent(@NotNull @NotNull String uuid)
    • getDatabase

      public static DatabaseType getDatabase()
    • setDatabase

      protected static void setDatabase(DatabaseType database)
    • getMysql

      public static MySQL getMysql()
    • setMysql

      protected static void setMysql(MySQL mysql)