public class CloudAnvilInventory extends BaseInventory implements org.cloudburstmc.api.inventory.AnvilInventory
| Modifier and Type | Field and Description |
|---|---|
static int |
RESULT |
static int |
SACRIFICE |
static int |
TARGET |
holder, maxStackSize, name, size, slots, title, type, viewers| Constructor and Description |
|---|
CloudAnvilInventory(CloudPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCost() |
CloudPlayer |
getHolder() |
org.cloudburstmc.api.item.ItemStack |
getInput() |
org.cloudburstmc.api.item.ItemStack |
getMaterial() |
void |
onClose(org.cloudburstmc.api.player.Player who) |
void |
onOpen(org.cloudburstmc.api.player.Player who) |
void |
setCost(int cost) |
void |
setInput(org.cloudburstmc.api.item.ItemStack item) |
void |
setMaterial(org.cloudburstmc.api.item.ItemStack item) |
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, setSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddItem, 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, setMaxStackSizepublic static final int TARGET
public static final int SACRIFICE
public static final int RESULT
public CloudAnvilInventory(CloudPlayer player)
public CloudPlayer getHolder()
getHolder in interface org.cloudburstmc.api.inventory.AnvilInventorygetHolder in interface org.cloudburstmc.api.inventory.InventorygetHolder in class BaseInventorypublic void onClose(org.cloudburstmc.api.player.Player who)
onClose in interface org.cloudburstmc.api.inventory.InventoryonClose in class BaseInventorypublic void onOpen(org.cloudburstmc.api.player.Player who)
onOpen in interface org.cloudburstmc.api.inventory.InventoryonOpen in class BaseInventorypublic void setInput(org.cloudburstmc.api.item.ItemStack item)
setInput in interface org.cloudburstmc.api.inventory.AnvilInventorypublic org.cloudburstmc.api.item.ItemStack getInput()
getInput in interface org.cloudburstmc.api.inventory.AnvilInventorypublic void setMaterial(org.cloudburstmc.api.item.ItemStack item)
setMaterial in interface org.cloudburstmc.api.inventory.AnvilInventorypublic org.cloudburstmc.api.item.ItemStack getMaterial()
getMaterial in interface org.cloudburstmc.api.inventory.AnvilInventorypublic void setCost(int cost)
setCost in interface org.cloudburstmc.api.inventory.AnvilInventorypublic int getCost()
getCost in interface org.cloudburstmc.api.inventory.AnvilInventoryCopyright © 2021. All rights reserved.