Class BrewingStandInventory
java.lang.Object
net.minestom.server.inventory.AbstractInventory
net.minestom.server.inventory.Inventory
net.minestom.server.inventory.type.BrewingStandInventory
- 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
ConstructorDescriptionBrewingStandInventory
(@NotNull String title) BrewingStandInventory
(@NotNull Component title) -
Method Summary
Modifier and TypeMethodDescriptionshort
Gets the brewing stand brew time.short
Gets the brewing stand fuel time.void
setBrewTime
(short brewTime) Changes the brew time.void
setFuelTime
(short fuelTime) Changes the fuel time.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
-
BrewingStandInventory
-
BrewingStandInventory
-
-
Method Details
-
getBrewTime
public short getBrewTime()Gets the brewing stand brew time.- Returns:
- the brew time in tick
-
setBrewTime
public void setBrewTime(short brewTime) Changes the brew time.- Parameters:
brewTime
- the new brew time in tick
-
getFuelTime
public short getFuelTime()Gets the brewing stand fuel time.- Returns:
- the fuel time in tick
-
setFuelTime
public void setFuelTime(short fuelTime) Changes the fuel time.- Parameters:
fuelTime
- the new fuel time in tick
-