Class AnvilInventory
java.lang.Object
net.minestom.server.inventory.AbstractInventory
net.minestom.server.inventory.Inventory
net.minestom.server.inventory.type.AnvilInventory
- All Implemented Interfaces:
InventoryClickHandler
,Taggable
,TagReadable
,TagWritable
,Viewable
-
Field Summary
Fields inherited from class net.minestom.server.inventory.AbstractInventory
clickProcessor, inventoryConditions, itemStacks, unmodifiableViewers, viewers
-
Constructor Summary
ConstructorDescriptionAnvilInventory
(@NotNull String title) AnvilInventory
(@NotNull Component title) -
Method Summary
Modifier and TypeMethodDescriptionshort
Gets the anvil repair cost.void
setRepairCost
(short cost) Sets the anvil repair cost.Methods inherited from class net.minestom.server.inventory.Inventory
addViewer, changeHeld, doubleClick, dragging, drop, getCursorItem, getInventoryType, getTitle, getWindowId, leftClick, middleClick, removeViewer, rightClick, sendProperty, setCursorItem, setTitle, shiftClick
Methods inherited from class net.minestom.server.inventory.AbstractInventory
addInventoryCondition, addItemStack, addItemStack, addItemStacks, clear, copyContents, getInnerSize, getInventoryConditions, getItemStack, getItemStacks, getSize, getViewers, processItemStack, processItemStacks, replaceItemStack, sendSlotRefresh, setItemStack, setItemStack, tagHandler, takeItemStack, takeItemStacks, UNSAFE_itemInsert, update, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.inventory.InventoryClickHandler
callClickEvent
Methods inherited from interface net.minestom.server.tag.Taggable
getAndSetTag, getAndUpdateTag, getTag, hasTag, removeTag, setTag, updateAndGetTag, updateTag
Methods inherited from interface net.minestom.server.Viewable
getViewersAsAudience, getViewersAsAudiences, isViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers, sendPacketToViewersAndSelf
-
Constructor Details
-
AnvilInventory
-
AnvilInventory
-
-
Method Details
-
getRepairCost
public short getRepairCost()Gets the anvil repair cost.- Returns:
- the repair cost
-
setRepairCost
public void setRepairCost(short cost) Sets the anvil repair cost.- Parameters:
cost
- the new anvil repair cost
-