Class Hotbar
java.lang.Object
net.playavalon.mythicdungeons.player.Hotbar
- Direct Known Subclasses:
HotbarMenu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(org.bukkit.inventory.ItemStack item) void
empty()
org.bukkit.inventory.ItemStack
getItem
(int index) List<org.bukkit.inventory.ItemStack>
getItems()
void
setHotbar
(org.bukkit.inventory.PlayerInventory inv) void
setHotbar
(org.bukkit.inventory.PlayerInventory inv, boolean setHand) void
setItem
(int index, org.bukkit.inventory.ItemStack item) void
setItems
(org.bukkit.inventory.Inventory inv) void
updateItems
(org.bukkit.inventory.Inventory inv) void
-
Constructor Details
-
Hotbar
public Hotbar(org.bukkit.entity.Player player) -
Hotbar
public Hotbar()
-
-
Method Details
-
empty
public void empty() -
addItem
public void addItem(org.bukkit.inventory.ItemStack item) -
setItem
public void setItem(int index, org.bukkit.inventory.ItemStack item) -
setHotbar
public void setHotbar(org.bukkit.inventory.PlayerInventory inv) -
setHotbar
public void setHotbar(org.bukkit.inventory.PlayerInventory inv, boolean setHand) -
setItems
public void setItems(org.bukkit.inventory.Inventory inv) -
updateItems
public void updateItems(org.bukkit.inventory.Inventory inv) -
updateSlot
public void updateSlot() -
getItems
-
getItem
public org.bukkit.inventory.ItemStack getItem(int index)
-