feat: update type defiend

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2019-09-24 15:02:03 +08:00
parent 0c8d3a04bd
commit c153f9babb
958 changed files with 4088 additions and 3132 deletions

View File

@@ -1,37 +1,38 @@
declare namespace org {
namespace bukkit {
namespace block {
class Beacon {
// @ts-ignore
interface Beacon extends org.bukkit.block.TileState, org.bukkit.block.Lockable, org.bukkit.Nameable {
/**
* 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*/;
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;
getTier(): number;
/**
* Returns the primary effect set on the beacon
*/
public getPrimaryEffect(): org.bukkit.potion.PotionEffect;
getPrimaryEffect(): org.bukkit.potion.PotionEffect;
/**
* Set the primary effect on this beacon, or null to clear.
*/
public setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
/**
* Returns the secondary effect set on the beacon.
*/
public getSecondaryEffect(): org.bukkit.potion.PotionEffect;
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;
setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
}
}
}