Class BeaconInventory
java.lang.Object
net.minestom.server.inventory.AbstractInventory
net.minestom.server.inventory.Inventory
net.minestom.server.inventory.type.BeaconInventory
- All Implemented Interfaces:
EventHandler<InventoryEvent>, InventoryClickHandler, Taggable, TagReadable, TagWritable, Viewable
-
Field Summary
Fields inherited from class AbstractInventory
clickProcessor, itemStacks, unmodifiableViewers, viewers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the first potion effect.shortGets the beacon power level.Gets the second potion effect.voidsetFirstPotionEffect(@Nullable PotionEffect firstPotionEffect) Changes the first potion effect.voidsetPowerLevel(short powerLevel) Changes the beacon power level.voidsetSecondPotionEffect(@Nullable PotionEffect secondPotionEffect) Changes the second potion effect.Methods inherited from class Inventory
addViewer, changeHeld, doubleClick, dragging, drop, getCursorItem, getInventoryType, getTitle, getWindowId, leftClick, middleClick, removeViewer, rightClick, sendProperty, setCursorItem, setTitle, shiftClickMethods inherited from class AbstractInventory
addItemStack, addItemStack, addItemStacks, clear, copyContents, eventNode, getInnerSize, getItemStack, getItemStacks, getSize, getViewers, processItemStack, processItemStacks, replaceItemStack, sendSlotRefresh, setItemStack, setItemStack, tagHandler, takeItemStack, takeItemStacks, UNSAFE_itemInsert, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface InventoryClickHandler
callClickEvent, handleClickMethods inherited from interface Taggable
getAndSetTag, getAndUpdateTag, getTag, hasTag, removeTag, setTag, updateAndGetTag, updateTagMethods inherited from interface Viewable
getViewersAsAudience, getViewersAsAudiences, isViewer, sendPacketsToViewers, sendPacketsToViewers, sendPacketToViewers, sendPacketToViewersAndSelf
-
Constructor Details
-
BeaconInventory
-
BeaconInventory
-
-
Method Details
-
getPowerLevel
public short getPowerLevel()Gets the beacon power level.- Returns:
- the power level
-
setPowerLevel
public void setPowerLevel(short powerLevel) Changes the beacon power level.- Parameters:
powerLevel- the new beacon power level
-
getFirstPotionEffect
Gets the first potion effect.- Returns:
- the first potion effect, can be null
-
setFirstPotionEffect
Changes the first potion effect.- Parameters:
firstPotionEffect- the new first potion effect, can be null
-
getSecondPotionEffect
Gets the second potion effect.- Returns:
- the second potion effect, can be null
-
setSecondPotionEffect
Changes the second potion effect.- Parameters:
secondPotionEffect- the new second potion effect, can be null
-