BlockState
, InventoryHolder
, Lockable
, Metadatable
, Nameable
public interface Beacon extends BlockState, InventoryHolder, Lockable, Nameable
Modifier and Type | Method | Description |
---|---|---|
java.util.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
getInventory
getMetadata, hasMetadata, removeMetadata, setMetadata
getCustomName, setCustomName
java.util.Collection<LivingEntity> getEntitiesInRange()
int getTier()
PotionEffect getPrimaryEffect()
void setPrimaryEffect(PotionEffectType effect)
effect
- new primary effectPotionEffect getSecondaryEffect()
void setSecondaryEffect(PotionEffectType effect)
effect
- desired secondary effect