Package valorless.havenbags
Class BagData
java.lang.Object
valorless.havenbags.BagData
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
AddTrusted
(@NotNull String uuid, @NotNull String player) static Boolean
static org.bukkit.entity.Player
static void
ChangeDatabase
(DatabaseType type) static Boolean
static Boolean
ClearBagContent
(@NotNull String uuid) static Boolean
ClearBagContentPlayer
(@NotNull String playeruuid) static boolean
static Data
CreateBag
(@NotNull String uuid, @NotNull String owner, @NotNull List<org.bukkit.inventory.ItemStack> content, org.bukkit.entity.Player creator, org.bukkit.inventory.ItemStack bag) static Boolean
static List<com.google.gson.JsonObject>
static void
static String
GetAutoPickup
(@NotNull String uuid) static Data
GetBag
(@NotNull String uuid, org.bukkit.inventory.ItemStack bagItem, BagData.UpdateSource... source) GetBagsData
(@NotNull String playerUUID) static String
GetCreator
(@NotNull String uuid) static DatabaseType
static MySQL
getMysql()
static String
static String
getTextureValue
(org.bukkit.inventory.ItemStack head) GetTrusted
(@NotNull String uuid) static void
Initiate()
static boolean
static boolean
IsBagOpen
(org.bukkit.inventory.ItemStack bagItem) static boolean
isReady()
static void
LoadData()
static void
MarkBagClosed
(@NotNull String uuid) static void
MarkBagOpen
(@NotNull String uuid, org.bukkit.inventory.ItemStack bagItem, org.bukkit.entity.Player player) static void
MarkBagOpen
(@NotNull String uuid, org.bukkit.inventory.ItemStack bagItem, org.bukkit.entity.Player player, BagGUI gui) static void
Reload()
static void
RemoveAutoPickup
(@NotNull String uuid) static void
static void
RemoveTrusted
(@NotNull String uuid, @NotNull String player) static void
SaveData
(boolean shutdown, boolean... conversion) static void
SetAutoPickup
(@NotNull String uuid, @NotNull String filter) protected static void
setDatabase
(DatabaseType database) protected static void
static void
setTextureValue
(@NotNull org.bukkit.inventory.ItemStack item, @NotNull String value) static void
static void
SetWeightMax
(@NotNull String uuid, @org.jetbrains.annotations.NotNull double weightmax) static void
Shutdown()
static void
UpdateBag
(@NotNull String uuid, @NotNull List<org.bukkit.inventory.ItemStack> content, BagData.UpdateSource... source) static void
UpdateBag
(@NotNull org.bukkit.inventory.ItemStack bagItem, @NotNull List<org.bukkit.inventory.ItemStack> content, BagData.UpdateSource... source)
-
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
-
Reload
public static void Reload() -
ForceReload
public static void ForceReload() -
Contains
-
BagExists
-
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
-
LoadData
public static void LoadData() -
SaveData
public static void SaveData(boolean shutdown, boolean... conversion) -
RemoveBag
-
DeleteBag
-
GetBags
-
GetBagsData
-
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
-
MarkBagClosed
-
GetTrusted
-
GetOwner
-
GetCreator
-
AddTrusted
-
RemoveTrusted
-
SetAutoPickup
-
GetAutoPickup
-
RemoveAutoPickup
-
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
-
setTextureValue
public static void setTextureValue(@NotNull @NotNull org.bukkit.inventory.ItemStack item, @NotNull @NotNull String value) -
GetOpenBags
-
deserializeItemStackList
-
ClearAllBagContents
-
ClearBagContentPlayer
-
ClearBagContent
-
getDatabase
-
setDatabase
-
getMysql
-
setMysql
-