接口 BeaconView
- 所有超级接口:
InventoryView
InventoryView 实例。-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.inventory.InventoryView
InventoryView.Property -
字段概要
从接口继承的字段 org.bukkit.inventory.InventoryView
OUTSIDE -
方法概要
修饰符和类型方法说明获取信标的主要效果。获取信标的次要效果。intgetTier()获取信标的等级。获取此窗口视图上方的物品栏.void设置信标的主要效果,或传入null以清除。void设置信标的次要效果,或传入null以清除。从接口继承的方法 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()获取信标的等级。信标等级由其所在金字塔的高度推断得出。除非信标被激活,否则其等级为0。
- 返回:
- 信标的等级
原文:Gets the tier of the beacon
Beacon 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.
-
getPrimaryEffect
获取信标的主要效果。如果信标等级足够高,主要效果可以升级到二级,例如速度II。此时
getSecondaryEffect()不会返回null,而是返回与本方法相同的PotionEffectType。- 返回:
- 信标上启用的主要效果
原文: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 samePotionEffectTypeas this method.
-
getSecondaryEffect
获取信标的次要效果。如果信标等级足够高,主要效果可以升级到二级,例如速度II。次要效果将返回与
getPrimaryEffect()相同的效果。- 返回:
- 信标上启用的次要效果
原文: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().
-
setPrimaryEffect
设置信标的主要效果,或传入null以清除。提供的
PotionEffectType必须是信标中已存在的有效选项之一。- 参数:
effect- 期望的主要效果原文:Sets the primary effect of the beacon, or null to clear
The
PotionEffectTypeprovided must be one that is already within the beacon as a valid option.effect- desired primary effect
-
setSecondaryEffect
设置信标的次要效果,或传入null以清除。注意,等级必须大于等于4且已设置主要效果,此效果才会激活。提供的
PotionEffectType必须是信标中已存在的有效选项之一。- 参数:
effect- 期望的次要效果原文: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
PotionEffectTypeprovided must be one that is already within the beacon as a valid option.effect- the desired secondary effect
-