Class SpigotHotbar
java.lang.Object
com.guflimc.brick.gui.api.menu.Menu<SpigotHotbarItem>
com.guflimc.brick.gui.spigot.hotbar.SpigotHotbar
- All Implemented Interfaces:
ISpigotHotbar
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInteractEntityListener
(Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> listener) void
addInteractListener
(Consumer<org.bukkit.event.player.PlayerInteractEvent> listener) void
addInventoryClickListener
(Consumer<org.bukkit.event.inventory.InventoryClickEvent> listener) void
dispatchInteract
(org.bukkit.event.player.PlayerInteractEvent event) void
dispatchInteractEntity
(org.bukkit.event.player.PlayerInteractEntityEvent event) void
dispatchInventoryClick
(org.bukkit.event.inventory.InventoryClickEvent event) org.bukkit.inventory.ItemStack[]
items()
void
open
(org.bukkit.entity.Player player) void
removeItem
(int index) void
setItem
(int index, SpigotHotbarItem item) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.entity.Player> onClick) void
setItem
(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.player.PlayerInteractEvent> interact, Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> interactEntity, Consumer<org.bukkit.event.inventory.InventoryClickEvent> click)
-
Constructor Details
-
Method Details
-
removeItem
public void removeItem(int index) - Overrides:
removeItem
in classMenu<SpigotHotbarItem>
-
setItem
- Overrides:
setItem
in classMenu<SpigotHotbarItem>
-
setItem
public void setItem(int index, org.bukkit.inventory.ItemStack itemStack) - Specified by:
setItem
in interfaceISpigotHotbar
-
setItem
public void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.entity.Player> onClick) - Specified by:
setItem
in interfaceISpigotHotbar
-
setItem
public void setItem(int index, org.bukkit.inventory.ItemStack itemStack, Consumer<org.bukkit.event.player.PlayerInteractEvent> interact, Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> interactEntity, Consumer<org.bukkit.event.inventory.InventoryClickEvent> click) - Specified by:
setItem
in interfaceISpigotHotbar
-
items
public org.bukkit.inventory.ItemStack[] items()- Specified by:
items
in interfaceISpigotHotbar
-
open
public void open(org.bukkit.entity.Player player) - Specified by:
open
in interfaceISpigotHotbar
-
addInteractListener
- Specified by:
addInteractListener
in interfaceISpigotHotbar
-
addInteractEntityListener
public void addInteractEntityListener(Consumer<org.bukkit.event.player.PlayerInteractEntityEvent> listener) - Specified by:
addInteractEntityListener
in interfaceISpigotHotbar
-
addInventoryClickListener
public void addInventoryClickListener(Consumer<org.bukkit.event.inventory.InventoryClickEvent> listener) - Specified by:
addInventoryClickListener
in interfaceISpigotHotbar
-
dispatchInteract
public void dispatchInteract(org.bukkit.event.player.PlayerInteractEvent event) -
dispatchInteractEntity
public void dispatchInteractEntity(org.bukkit.event.player.PlayerInteractEntityEvent event) -
dispatchInventoryClick
public void dispatchInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
-