public interface Beacon extends BlockState, InventoryHolder, Lockable
Modifier and Type | Method and Description |
---|---|
Collection<LivingEntity> |
getEntitiesInRange()
Returns the list of players within the beacon's range of effect.
|
PotionEffect |
getPrimaryEffect()
Returns the primary effect set on the beacon
|
PotionEffect |
getSecondaryEffect()
Returns the secondary effect set on the beacon.
|
int |
getTier()
Returns the tier of the beacon pyramid (0-4).
|
void |
setPrimaryEffect(PotionEffectType effect)
Set the primary effect on this beacon, or null to clear.
|
void |
setSecondaryEffect(PotionEffectType effect)
Set the secondary effect on this beacon, or null to clear.
|
getBlock, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getTypeId, getWorld, getX, getY, getZ, isPlaced, setData, setRawData, setType, setTypeId, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
getInventory
Collection<LivingEntity> getEntitiesInRange()
int getTier()
PotionEffect getPrimaryEffect()
void setPrimaryEffect(PotionEffectType effect)
effect
- new primary effectPotionEffect getSecondaryEffect()
void setSecondaryEffect(PotionEffectType effect)
effect
- desired secondary effectCopyright © 2016. All rights reserved.