Class VisualContainer
java.lang.Object
com.github.darksoulq.abyssallib.world.menu.VisualContainer
- All Implemented Interfaces:
Container
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ContainerListener listener) booleancanPlaceItem(org.bukkit.entity.Player player, int slot, org.bukkit.inventory.ItemStack stack) voidclearContent(org.bukkit.entity.Player player) intorg.bukkit.inventory.ItemStackgetItem(org.bukkit.entity.Player player, int slot) intbooleanisEmpty(org.bukkit.entity.Player player) org.bukkit.inventory.ItemStackremoveItem(org.bukkit.entity.Player player, int slot, int amount) org.bukkit.inventory.ItemStackremoveItemNoUpdate(org.bukkit.entity.Player player, int slot) voidremoveListener(ContainerListener listener) voidvoidsetItem(org.bukkit.entity.Player player, int slot, org.bukkit.inventory.ItemStack stack) booleanstillValid(org.bukkit.entity.Player player)
-
Constructor Details
-
VisualContainer
public VisualContainer(int size)
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSizein interfaceContainer
-
isEmpty
-
getItem
-
removeItem
public org.bukkit.inventory.ItemStack removeItem(org.bukkit.entity.Player player, int slot, int amount) - Specified by:
removeItemin interfaceContainer
-
removeItemNoUpdate
public org.bukkit.inventory.ItemStack removeItemNoUpdate(org.bukkit.entity.Player player, int slot) - Specified by:
removeItemNoUpdatein interfaceContainer
-
setItem
-
getMaxStackSize
public int getMaxStackSize()- Specified by:
getMaxStackSizein interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
stillValid
public boolean stillValid(org.bukkit.entity.Player player) - Specified by:
stillValidin interfaceContainer
-
canPlaceItem
public boolean canPlaceItem(org.bukkit.entity.Player player, int slot, org.bukkit.inventory.ItemStack stack) - Specified by:
canPlaceItemin interfaceContainer
-
clearContent
public void clearContent(org.bukkit.entity.Player player) - Specified by:
clearContentin interfaceContainer
-