Class FullInventoryHandler
java.lang.Object
com.bencodez.advancedcore.api.item.FullInventoryHandler
Handler for items when player inventories are full.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for FullInventoryHandler. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds multiple items for a player.voidAdds a single item for a player.voidcheck()Checks all players for pending items.voidcheck(org.bukkit.entity.Player p) Checks a specific player for pending items.voidgiveItem(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack... item) Gives items to a player.voidLoads the timer for checking inventories.voidsave()Saves pending items to disk.voidstartup()Loads pending items from disk on startup.
-
Constructor Details
-
FullInventoryHandler
Constructor for FullInventoryHandler.- Parameters:
plugin- the plugin instance
-
-
Method Details
-
add
Adds multiple items for a player.- Parameters:
uuid- the player UUIDitem- the items to add
-
add
Adds a single item for a player.- Parameters:
uuid- the player UUIDitem- the item to add
-
check
public void check()Checks all players for pending items. -
check
public void check(org.bukkit.entity.Player p) Checks a specific player for pending items.- Parameters:
p- the player
-
giveItem
public void giveItem(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack... item) Gives items to a player.- Parameters:
p- the playeritem- the items to give
-
loadTimer
public void loadTimer()Loads the timer for checking inventories. -
save
public void save()Saves pending items to disk. -
startup
public void startup()Loads pending items from disk on startup.
-