接口 BeaconView
- 所有超级接口:
InventoryView
InventoryView
which provides extra methods related to
beacon view data.-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property
-
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE
-
方法概要
修饰符和类型方法说明Gets the primary effect of the beacon.Gets the secondary effect of the beacon.int
getTier()
Gets the tier of the beacon获取此窗口视图上方的物品栏.void
Sets the primary effect of the beacon, or null to clearvoid
Sets the secondary effect on this beacon, or null to clear.从接口继承的方法 org.bukkit.inventory.InventoryView
close, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, setCursor, setItem, setProperty, setTitle
-
方法详细资料
-
getTopInventory
从接口复制的说明:InventoryView
获取此窗口视图上方的物品栏.原文:Get the upper inventory involved in this transaction.
- 指定者:
getTopInventory
在接口中InventoryView
- 返回:
- 物品栏
-
getTier
int getTier()Gets the tier of the beaconBeacon tier is deduced by the height of the pyramid the beacon is standing on. The level of the beacon is 0 unless the beacon is activated.
- 返回:
- The tier of the beacon
-
getPrimaryEffect
Gets the primary effect of the beacon.If the beacon level is high enough where the primary effect can be upgraded to level two, e.g. Speed 2. Instead of
getSecondaryEffect()
being null itgetSecondaryEffect()
returns the samePotionEffectType
as this method.- 返回:
- The primary effect enabled on the beacon
-
getSecondaryEffect
Gets the secondary effect of the beacon.If the beacon level is high enough where the primary effect can be upgraded to level two, e.g. Speed 2. The secondary effect will return the same effect as
getPrimaryEffect()
.- 返回:
- The secondary effect enabled on the beacon
-
setPrimaryEffect
Sets the primary effect of the beacon, or null to clearThe
PotionEffectType
provided must be one that is already within the beacon as a valid option.- 参数:
effect
- desired primary effect
-
setSecondaryEffect
Sets the secondary effect on this beacon, or null to clear. Note that tier must be >= 4 and a primary effect must be set in order for this effect to be active.The
PotionEffectType
provided must be one that is already within the beacon as a valid option.- 参数:
effect
- the desired secondary effect
-