Package org.bukkit.inventory.view
Interface BeaconView
- All Superinterfaces:
- InventoryView
An instance of 
InventoryView which provides extra methods related to
 beacon view data.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.InventoryViewInventoryView.Property
- 
Field SummaryFields inherited from interface org.bukkit.inventory.InventoryViewOUTSIDE
- 
Method SummaryModifier and TypeMethodDescriptionGets the primary effect of the beacon.Gets the secondary effect of the beacon.intgetTier()Gets the tier of the beaconGet the upper inventory involved in this transaction.voidSets the primary effect of the beacon, or null to clearvoidSets the secondary effect on this beacon, or null to clear.Methods inherited from interface org.bukkit.inventory.InventoryViewclose, convertSlot, countSlots, getBottomInventory, getCursor, getInventory, getItem, getOriginalTitle, getPlayer, getSlotType, getTitle, getType, open, setCursor, setItem, setProperty, setTitle, title
- 
Method Details- 
getTopInventoryDescription copied from interface:InventoryViewGet the upper inventory involved in this transaction.- Specified by:
- getTopInventoryin interface- InventoryView
- Returns:
- the inventory
 
- 
getTierint 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. - Returns:
- The tier of the beacon
 
- 
getPrimaryEffectGets 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.- Returns:
- The primary effect enabled on the beacon
 
- 
getSecondaryEffectGets 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().- Returns:
- The secondary effect enabled on the beacon
 
- 
setPrimaryEffectSets the primary effect of the beacon, or null to clearThe PotionEffectTypeprovided must be one that is already within the beacon as a valid option.- Parameters:
- effect- desired primary effect
 
- 
setSecondaryEffectSets 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.- Parameters:
- effect- the desired secondary effect
 
 
-