Class CloudEnchantInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudEnchantInventory
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.EnchantInventory,org.cloudburstmc.api.inventory.Inventory
public class CloudEnchantInventory
extends BaseInventory
implements org.cloudburstmc.api.inventory.EnchantInventory
author: MagicDroidX
Nukkit Project
-
Field Summary
Fields inherited from class org.cloudburstmc.server.inventory.BaseInventory
holder, maxStackSize, name, size, slots, title, type, viewersFields inherited from interface org.cloudburstmc.api.inventory.EnchantInventory
ENCHANT_INPUT_SLOT, ENCHANT_OUTPUT_SLOT, ENCHANT_REAGENT_SLOTFields inherited from interface org.cloudburstmc.api.inventory.Inventory
MAX_STACK -
Constructor Summary
ConstructorsConstructorDescriptionCloudEnchantInventory(CloudPlayer player, org.cloudburstmc.api.blockentity.EnchantingTable table) -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.api.item.ItemStackgetInput()org.cloudburstmc.api.item.ItemStackorg.cloudburstmc.api.item.ItemStackgetTable()voidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)voidsetInput(org.cloudburstmc.api.item.ItemStack item)voidsetOutput(org.cloudburstmc.api.item.ItemStack item)voidsetReagent(org.cloudburstmc.api.item.ItemStack item)Methods inherited from class org.cloudburstmc.server.inventory.BaseInventory
addItem, addItemToFirstEmptySlot, all, canAddItem, clear, clearAll, close, contains, decrementCount, first, firstEmpty, firstFit, firstNonEmpty, getContents, getEmptySlotsCount, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendSlot, setContents, setItem, setMaxStackSize, setSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.api.inventory.Inventory
addItem, all, canAddItem, clear, clear, clearAll, close, contains, decrementCount, first, first, firstEmpty, firstFit, firstFit, firstNonEmpty, getContents, getFreeSpace, getItem, getMaxStackSize, getName, getSize, getTitle, getType, getViewers, incrementCount, isEmpty, isFull, onSlotChange, open, remove, removeItem, sendContents, sendContents, sendContents, sendSlot, sendSlot, sendSlot, setContents, setItem, setItem, setMaxStackSize
-
Constructor Details
-
CloudEnchantInventory
public CloudEnchantInventory(CloudPlayer player, org.cloudburstmc.api.blockentity.EnchantingTable table)
-
-
Method Details
-
getHolder
- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.EnchantInventory- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin classBaseInventory
-
getTable
- Specified by:
getTablein interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
getInput
public org.cloudburstmc.api.item.ItemStack getInput()- Specified by:
getInputin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
setInput
public void setInput(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setInputin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
getOutput
public org.cloudburstmc.api.item.ItemStack getOutput()- Specified by:
getOutputin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
setOutput
public void setOutput(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setOutputin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
getReagent
public org.cloudburstmc.api.item.ItemStack getReagent()- Specified by:
getReagentin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
setReagent
public void setReagent(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setReagentin interfaceorg.cloudburstmc.api.inventory.EnchantInventory
-
onOpen
public void onOpen(org.cloudburstmc.api.player.Player who)- Specified by:
onOpenin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onOpenin classBaseInventory
-
onClose
public void onClose(org.cloudburstmc.api.player.Player who)- Specified by:
onClosein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onClosein classBaseInventory
-