Class BeaconInventory
java.lang.Object
net.minestom.server.inventory.AbstractInventory
net.minestom.server.inventory.Inventory
net.minestom.server.inventory.type.BeaconInventory
- All Implemented Interfaces:
InventoryClickHandler
,Taggable
,TagReadable
,TagWritable
,Viewable
-
Field Summary
Fields inherited from class net.minestom.server.inventory.AbstractInventory
clickProcessor, inventoryConditions, itemStacks
-
Constructor Summary
ConstructorDescriptionBeaconInventory
(@NotNull String title) BeaconInventory
(@NotNull Component title) -
Method Summary
Modifier and TypeMethodDescriptionGets the first potion effect.short
Gets the beacon power level.Gets the second potion effect.void
setFirstPotionEffect
(PotionEffect firstPotionEffect) Changes the first potion effect.void
setPowerLevel
(short powerLevel) Changes the beacon power level.void
setSecondPotionEffect
(PotionEffect secondPotionEffect) Changes the second potion effect.Methods inherited from class net.minestom.server.inventory.Inventory
addViewer, changeHeld, doubleClick, dragging, drop, getCursorItem, getInventoryType, getTitle, getViewers, getWindowId, leftClick, middleClick, removeViewer, rightClick, sendProperty, setCursorItem, setTitle, shiftClick, UNSAFE_itemInsert, update, update
Methods inherited from class net.minestom.server.inventory.AbstractInventory
addInventoryCondition, addItemStack, addItemStack, addItemStacks, clear, copyContents, getInnerSize, getInventoryConditions, getItemStack, getItemStacks, getSize, processItemStack, processItemStacks, replaceItemStack, safeItemInsert, safeItemInsert, setItemStack, tagHandler, takeItemStack, takeItemStacks
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
-
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
-