Files
ms/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts
2019-09-12 17:54:17 +08:00

39 lines
1.7 KiB
TypeScript

declare namespace org {
namespace bukkit {
namespace block {
class Beacon {
/**
* Returns the list of players within the beacon's range of effect.
* <p>
* This will return an empty list if the block represented by this state is
* no longer a beacon.
*/
public getEntitiesInRange(): any[] /*java.util.Collection*/;
/**
* 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.
*/
public getTier(): number;
/**
* Returns the primary effect set on the beacon
*/
public getPrimaryEffect(): org.bukkit.potion.PotionEffect;
/**
* Set the primary effect on this beacon, or null to clear.
*/
public setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
/**
* Returns the secondary effect set on the beacon.
*/
public getSecondaryEffect(): org.bukkit.potion.PotionEffect;
/**
* Set the secondary effect on this beacon, or null to clear. Note that tier
* must be &gt;= 4 for this effect to be active.
*/
public setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
}
}
}
}