Represents a captured state of a beacon.
Method SummaryModifier and TypeMethodDescriptionReturns the list of players within the beacon's range of effect.Returns the primary effect set on the beaconReturns the secondary effect set on the beacon.
getTier()Returns the tier of the beacon pyramid (0-4).
voidSet the primary effect on this beacon, or null to clear.
voidSet the secondary effect on this beacon, or null to clear.
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
getEntitiesInRangeReturns the list of players within the beacon's range of effect.
This will return an empty list if the block represented by this state is no longer a beacon.
- the players in range
IllegalStateException- if this block state is not placed
getTierint getTier()Returns the tier of the beacon pyramid (0-4). The tier refers to the beacon's power level, based on how many layers of blocks are in the pyramid. Tier 1 refers to a beacon with one layer of 9 blocks under it.
- the beacon tier
getPrimaryEffectReturns the primary effect set on the beacon
- the primary effect or null if not set
setPrimaryEffectSet the primary effect on this beacon, or null to clear.
effect- new primary effect
getSecondaryEffectReturns the secondary effect set on the beacon.
- the secondary effect or null if no secondary effect
setSecondaryEffectSet the secondary effect on this beacon, or null to clear. Note that tier must be >= 4 for this effect to be active.
effect- desired secondary effect