Class CloudAnvilInventory
java.lang.Object
org.cloudburstmc.server.inventory.BaseInventory
org.cloudburstmc.server.inventory.CloudAnvilInventory
- All Implemented Interfaces:
org.cloudburstmc.api.inventory.AnvilInventory,org.cloudburstmc.api.inventory.Inventory
public class CloudAnvilInventory
extends BaseInventory
implements org.cloudburstmc.api.inventory.AnvilInventory
author: MagicDroidX
Nukkit Project
-
Field Summary
FieldsFields inherited from class org.cloudburstmc.server.inventory.BaseInventory
holder, maxStackSize, name, size, slots, title, type, viewersFields inherited from interface org.cloudburstmc.api.inventory.Inventory
MAX_STACK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCost()org.cloudburstmc.api.item.ItemStackgetInput()org.cloudburstmc.api.item.ItemStackvoidonClose(org.cloudburstmc.api.player.Player who)voidonOpen(org.cloudburstmc.api.player.Player who)voidsetCost(int cost)voidsetInput(org.cloudburstmc.api.item.ItemStack item)voidsetMaterial(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, saveInventory, 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
-
Field Details
-
TARGET
public static final int TARGET- See Also:
- Constant Field Values
-
SACRIFICE
public static final int SACRIFICE- See Also:
- Constant Field Values
-
RESULT
public static final int RESULT- See Also:
- Constant Field Values
-
-
Constructor Details
-
CloudAnvilInventory
-
-
Method Details
-
getHolder
- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.AnvilInventory- Specified by:
getHolderin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
getHolderin classBaseInventory
-
onClose
public void onClose(org.cloudburstmc.api.player.Player who)- Specified by:
onClosein interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onClosein classBaseInventory
-
onOpen
public void onOpen(org.cloudburstmc.api.player.Player who)- Specified by:
onOpenin interfaceorg.cloudburstmc.api.inventory.Inventory- Overrides:
onOpenin classBaseInventory
-
setInput
public void setInput(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setInputin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-
getInput
public org.cloudburstmc.api.item.ItemStack getInput()- Specified by:
getInputin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-
setMaterial
public void setMaterial(org.cloudburstmc.api.item.ItemStack item)- Specified by:
setMaterialin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-
getMaterial
public org.cloudburstmc.api.item.ItemStack getMaterial()- Specified by:
getMaterialin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-
setCost
public void setCost(int cost)- Specified by:
setCostin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-
getCost
public int getCost()- Specified by:
getCostin interfaceorg.cloudburstmc.api.inventory.AnvilInventory
-