feat: update type defiend

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

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Achievement {
// @ts-ignore
class Achievement {
public static OPEN_INVENTORY: org.bukkit.Achievement;
public static MINE_WOOD: org.bukkit.Achievement;
public static BUILD_WORKBENCH: org.bukkit.Achievement;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Art {
// @ts-ignore
class Art implements org.bukkit.Keyed {
public static KEBAB: org.bukkit.Art;
public static AZTEC: org.bukkit.Art;
public static ALBAN: org.bukkit.Art;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Axis {
// @ts-ignore
class Axis {
public static X: org.bukkit.Axis;
public static Y: org.bukkit.Axis;
public static Z: org.bukkit.Axis;

View File

@ -1,57 +1,58 @@
declare namespace org {
namespace bukkit {
class BanEntry {
// @ts-ignore
interface BanEntry {
/**
* Gets the target involved. This may be in the form of an IP or a player
* name.
*/
public getTarget(): string;
getTarget(): string;
/**
* Gets the date this ban entry was created.
*/
public getCreated(): any /*java.util.Date*/;
getCreated(): any /*java.util.Date*/;
/**
* Sets the date this ban entry was created.
*/
public setCreated(created: any /*java.util.Date*/): void;
setCreated(created: any /*java.util.Date*/): void;
/**
* Gets the source of this ban.
* <p>
* Note: A source is considered any String, although this is generally a
* player name.
*/
public getSource(): string;
getSource(): string;
/**
* Sets the source of this ban.
* <p>
* Note: A source is considered any String, although this is generally a
* player name.
*/
public setSource(source: string): void;
setSource(source: string): void;
/**
* Gets the date this ban expires on, or null for no defined end date.
*/
public getExpiration(): any /*java.util.Date*/;
getExpiration(): any /*java.util.Date*/;
/**
* Sets the date this ban expires on. Null values are considered
* "infinite" bans.
*/
public setExpiration(expiration: any /*java.util.Date*/): void;
setExpiration(expiration: any /*java.util.Date*/): void;
/**
* Gets the reason for this ban.
*/
public getReason(): string;
getReason(): string;
/**
* Sets the reason for this ban. Reasons must not be null.
*/
public setReason(reason: string): void;
setReason(reason: string): void;
/**
* Saves the ban entry, overwriting any previous data in the ban list.
* <p>
* Saving the ban entry of an unbanned player will cause the player to be
* banned once again.
*/
public save(): void;
save(): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace BanList {
class Type {
// @ts-ignore
class Type {
public static NAME: org.bukkit.BanList.Type;
public static IP: org.bukkit.BanList.Type;
public static values(): org.bukkit.BanList.Type[];

View File

@ -1,29 +1,30 @@
declare namespace org {
namespace bukkit {
class BanList {
// @ts-ignore
interface BanList {
/**
* Gets a {@link BanEntry} by target.
*/
public getBanEntry(target: string): org.bukkit.BanEntry;
getBanEntry(target: string): org.bukkit.BanEntry;
/**
* Adds a ban to the this list. If a previous ban exists, this will
* update the previous entry.
*/
public addBan(target: string, reason: string, expires: any /*java.util.Date*/, source: string): org.bukkit.BanEntry;
addBan(target: string, reason: string, expires: any /*java.util.Date*/, source: string): org.bukkit.BanEntry;
/**
* Gets a set containing every {@link BanEntry} in this list.
*/
public getBanEntries(): any[] /*java.util.Set*/;
getBanEntries(): any[] /*java.util.Set*/;
/**
* Gets if a {@link BanEntry} exists for the target, indicating an active
* ban status.
*/
public isBanned(target: string): boolean;
isBanned(target: string): boolean;
/**
* Removes the specified target from this list, therefore indicating a
* "not banned" status.
*/
public pardon(target: string): void;
pardon(target: string): void;
}
}
}

View File

@ -1,22 +1,23 @@
declare namespace org {
namespace bukkit {
class BlockChangeDelegate {
// @ts-ignore
interface BlockChangeDelegate {
/**
* Set a block data at the specified coordinates.
*/
public setBlockData(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): boolean;
setBlockData(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): boolean;
/**
* Get the block data at the location.
*/
public getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData;
getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData;
/**
* Gets the height of the world.
*/
public getHeight(): number;
getHeight(): number;
/**
* Checks if the specified block is empty (air) or not.
*/
public isEmpty(x: number, y: number, z: number): boolean;
isEmpty(x: number, y: number, z: number): boolean;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Bukkit {
// @ts-ignore
class Bukkit {
/**
* Gets the current {@link Server} singleton
*/

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class ChatColor {
// @ts-ignore
class ChatColor {
public static BLACK: org.bukkit.ChatColor;
public static DARK_BLUE: org.bukkit.ChatColor;
public static DARK_GREEN: org.bukkit.ChatColor;

View File

@ -1,76 +1,77 @@
declare namespace org {
namespace bukkit {
class Chunk {
// @ts-ignore
interface Chunk {
/**
* Gets the X-coordinate of this chunk
*/
public getX(): number;
getX(): number;
/**
* Gets the Z-coordinate of this chunk
*/
public getZ(): number;
getZ(): number;
/**
* Gets the world containing this chunk
*/
public getWorld(): org.bukkit.World;
getWorld(): org.bukkit.World;
/**
* Gets a block from this chunk
*/
public getBlock(x: number, y: number, z: number): org.bukkit.block.Block;
getBlock(x: number, y: number, z: number): org.bukkit.block.Block;
/**
* Capture thread-safe read-only snapshot of chunk data
*/
public getChunkSnapshot(): org.bukkit.ChunkSnapshot;
getChunkSnapshot(): org.bukkit.ChunkSnapshot;
/**
* Capture thread-safe read-only snapshot of chunk data
*/
public getChunkSnapshot(includeMaxblocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean): org.bukkit.ChunkSnapshot;
getChunkSnapshot(includeMaxblocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean): org.bukkit.ChunkSnapshot;
/**
* Get a list of all entities in the chunk.
*/
public getEntities(): org.bukkit.entity.Entity[];
getEntities(): org.bukkit.entity.Entity[];
/**
* Get a list of all tile entities in the chunk.
*/
public getTileEntities(): org.bukkit.block.BlockState[];
getTileEntities(): org.bukkit.block.BlockState[];
/**
* Checks if the chunk is loaded.
*/
public isLoaded(): boolean;
isLoaded(): boolean;
/**
* Loads the chunk.
*/
public load(generate: boolean): boolean;
load(generate: boolean): boolean;
/**
* Loads the chunk.
*/
public load(): boolean;
load(): boolean;
/**
* Unloads and optionally saves the Chunk
*/
public unload(save: boolean): boolean;
unload(save: boolean): boolean;
/**
* Unloads and optionally saves the Chunk
*/
public unload(): boolean;
unload(): boolean;
/**
* Checks if this chunk can spawn slimes without being a swamp biome.
*/
public isSlimeChunk(): boolean;
isSlimeChunk(): boolean;
/**
* Gets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*/
public isForceLoaded(): boolean;
isForceLoaded(): boolean;
/**
* Sets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*/
public setForceLoaded(forced: boolean): void;
setForceLoaded(forced: boolean): void;
/**
* Adds a plugin ticket for this chunk, loading this chunk if it is not
* already loaded.
@ -80,7 +81,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public addPluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean;
addPluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean;
/**
* Removes the specified plugin's ticket for this chunk
* <p>
@ -89,7 +90,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean;
removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean;
/**
* Retrieves a collection specifying which plugins have tickets for this
* chunk. This collection is not updated when plugin tickets are added or
@ -100,7 +101,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public getPluginChunkTickets(): any[] /*java.util.Collection*/;
getPluginChunkTickets(): any[] /*java.util.Collection*/;
}
}
}

View File

@ -1,59 +1,60 @@
declare namespace org {
namespace bukkit {
class ChunkSnapshot {
// @ts-ignore
interface ChunkSnapshot {
/**
* Gets the X-coordinate of this chunk
*/
public getX(): number;
getX(): number;
/**
* Gets the Z-coordinate of this chunk
*/
public getZ(): number;
getZ(): number;
/**
* Gets name of the world containing this chunk
*/
public getWorldName(): string;
getWorldName(): string;
/**
* Get block type for block at corresponding coordinate in the chunk
*/
public getBlockType(x: number, y: number, z: number): org.bukkit.Material;
getBlockType(x: number, y: number, z: number): org.bukkit.Material;
/**
* Get block data for block at corresponding coordinate in the chunk
*/
public getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData;
getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData;
/**
* Get block data for block at corresponding coordinate in the chunk
*/
public getData(x: number, y: number, z: number): number;
getData(x: number, y: number, z: number): number;
/**
* Get sky light level for block at corresponding coordinate in the chunk
*/
public getBlockSkyLight(x: number, y: number, z: number): number;
getBlockSkyLight(x: number, y: number, z: number): number;
/**
* Get light level emitted by block at corresponding coordinate in the
* chunk
*/
public getBlockEmittedLight(x: number, y: number, z: number): number;
getBlockEmittedLight(x: number, y: number, z: number): number;
/**
* Gets the highest non-air coordinate at the given coordinates
*/
public getHighestBlockYAt(x: number, z: number): number;
getHighestBlockYAt(x: number, z: number): number;
/**
* Get biome at given coordinates
*/
public getBiome(x: number, z: number): org.bukkit.block.Biome;
getBiome(x: number, z: number): org.bukkit.block.Biome;
/**
* Get raw biome temperature (0.0-1.0) at given coordinate
*/
public getRawBiomeTemperature(x: number, z: number): number;
getRawBiomeTemperature(x: number, z: number): number;
/**
* Get world full time when chunk snapshot was captured
*/
public getCaptureFullTime(): number;
getCaptureFullTime(): number;
/**
* Test if section is empty
*/
public isSectionEmpty(sy: number): boolean;
isSectionEmpty(sy: number): boolean;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class CoalType {
// @ts-ignore
class CoalType {
public static COAL: org.bukkit.CoalType;
public static CHARCOAL: org.bukkit.CoalType;
public static values(): org.bukkit.CoalType[];

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Color {
// @ts-ignore
class Color implements org.bukkit.configuration.serialization.ConfigurationSerializable {
public static WHITE: org.bukkit.Color;
public static SILVER: org.bukkit.Color;
public static GRAY: org.bukkit.Color;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class CropState {
// @ts-ignore
class CropState {
public static SEEDED: org.bukkit.CropState;
public static GERMINATED: org.bukkit.CropState;
public static VERY_SMALL: org.bukkit.CropState;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Difficulty {
// @ts-ignore
class Difficulty {
public static PEACEFUL: org.bukkit.Difficulty;
public static EASY: org.bukkit.Difficulty;
public static NORMAL: org.bukkit.Difficulty;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class DyeColor {
// @ts-ignore
class DyeColor {
public static WHITE: org.bukkit.DyeColor;
public static ORANGE: org.bukkit.DyeColor;
public static MAGENTA: org.bukkit.DyeColor;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Effect {
class Type {
// @ts-ignore
class Type {
public static SOUND: org.bukkit.Effect.Type;
public static VISUAL: org.bukkit.Effect.Type;
public static values(): org.bukkit.Effect.Type[];

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Effect {
// @ts-ignore
class Effect {
public static CLICK2: org.bukkit.Effect;
public static CLICK1: org.bukkit.Effect;
public static BOW_FIRE: org.bukkit.Effect;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class EntityEffect {
// @ts-ignore
class EntityEffect {
public static ARROW_PARTICLES: org.bukkit.EntityEffect;
public static RABBIT_JUMP: org.bukkit.EntityEffect;
public static HURT: org.bukkit.EntityEffect;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace FireworkEffect {
class Builder {
// @ts-ignore
class Builder {
/**
* Specify the type of the firework effect.
*/

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace FireworkEffect {
class Type {
// @ts-ignore
class Type {
public static BALL: org.bukkit.FireworkEffect.Type;
public static BALL_LARGE: org.bukkit.FireworkEffect.Type;
public static STAR: org.bukkit.FireworkEffect.Type;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class FireworkEffect {
// @ts-ignore
class FireworkEffect implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Construct a firework effect.
*/

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class FluidCollisionMode {
// @ts-ignore
class FluidCollisionMode {
public static NEVER: org.bukkit.FluidCollisionMode;
public static SOURCE_ONLY: org.bukkit.FluidCollisionMode;
public static ALWAYS: org.bukkit.FluidCollisionMode;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class GameMode {
// @ts-ignore
class GameMode {
public static CREATIVE: org.bukkit.GameMode;
public static SURVIVAL: org.bukkit.GameMode;
public static ADVENTURE: org.bukkit.GameMode;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class GameRule {
// @ts-ignore
class GameRule {
public static ANNOUNCE_ADVANCEMENTS: org.bukkit.GameRule;
public static COMMAND_BLOCK_OUTPUT: org.bukkit.GameRule;
public static DISABLE_ELYTRA_MOVEMENT_CHECK: org.bukkit.GameRule;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class GrassSpecies {
// @ts-ignore
class GrassSpecies {
public static DEAD: org.bukkit.GrassSpecies;
public static NORMAL: org.bukkit.GrassSpecies;
public static FERN_LIKE: org.bukkit.GrassSpecies;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Instrument {
// @ts-ignore
class Instrument {
public static PIANO: org.bukkit.Instrument;
public static BASS_DRUM: org.bukkit.Instrument;
public static SNARE_DRUM: org.bukkit.Instrument;

View File

@ -1,10 +1,11 @@
declare namespace org {
namespace bukkit {
class Keyed {
// @ts-ignore
interface Keyed {
/**
* Return the namespaced identifier for this object.
*/
public getKey(): org.bukkit.NamespacedKey;
getKey(): org.bukkit.NamespacedKey;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Location {
// @ts-ignore
class Location implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Constructs a new Location with the given coordinates
*/

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Material {
// @ts-ignore
class Material implements org.bukkit.Keyed {
public static ACACIA_BOAT: org.bukkit.Material;
public static ACACIA_BUTTON: org.bukkit.Material;
public static ACACIA_DOOR: org.bukkit.Material;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Nameable {
// @ts-ignore
interface Nameable {
/**
* Gets the custom name on a mob or block. If there is no name this method
* will return null.
@ -8,7 +9,7 @@ declare namespace org {
* This value has no effect on players, they will always use their real
* name.
*/
public getCustomName(): string;
getCustomName(): string;
/**
* Sets a custom name on a mob or block. This name will be used in death
* messages and can be sent to the client as a nameplate over the mob.
@ -18,7 +19,7 @@ declare namespace org {
* This value has no effect on players, they will always use their real
* name.
*/
public setCustomName(name: string): void;
setCustomName(name: string): void;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class NamespacedKey {
// @ts-ignore
class NamespacedKey {
/**
* Create a key in a specific namespace.
*/

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class NetherWartsState {
// @ts-ignore
class NetherWartsState {
public static SEEDED: org.bukkit.NetherWartsState;
public static STAGE_ONE: org.bukkit.NetherWartsState;
public static STAGE_TWO: org.bukkit.NetherWartsState;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Note {
class Tone {
// @ts-ignore
class Tone {
public static G: org.bukkit.Note.Tone;
public static A: org.bukkit.Note.Tone;
public static B: org.bukkit.Note.Tone;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Note {
// @ts-ignore
class Note {
/**
* Creates a new note.
*/

View File

@ -1,40 +1,41 @@
declare namespace org {
namespace bukkit {
class OfflinePlayer {
// @ts-ignore
interface OfflinePlayer extends org.bukkit.permissions.ServerOperator, org.bukkit.entity.AnimalTamer, org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Checks if this player is currently online
*/
public isOnline(): boolean;
isOnline(): boolean;
/**
* Returns the name of this player
* <p>
* Names are no longer unique past a single game session. For persistent storage
* it is recommended that you use {@link #getUniqueId()} instead.
*/
public getName(): string;
getName(): string;
/**
* Returns the UUID of this player
*/
public getUniqueId(): any;
getUniqueId(): any;
/**
* Checks if this player is banned or not
*/
public isBanned(): boolean;
isBanned(): boolean;
/**
* Checks if this player is whitelisted or not
*/
public isWhitelisted(): boolean;
isWhitelisted(): boolean;
/**
* Sets if this player is whitelisted or not
*/
public setWhitelisted(value: boolean): void;
setWhitelisted(value: boolean): void;
/**
* Gets a {@link Player} object that this represents, if there is one
* <p>
* If the player is online, this will return that player. Otherwise,
* it will return null.
*/
public getPlayer(): org.bukkit.entity.Player;
getPlayer(): org.bukkit.entity.Player;
/**
* Gets the first date and time that this player was witnessed on this
* server.
@ -43,7 +44,7 @@ declare namespace org {
* it will be the amount of milliseconds since midnight, January 1, 1970
* UTC.
*/
public getFirstPlayed(): number;
getFirstPlayed(): number;
/**
* Gets the last date and time that this player was witnessed on this
* server.
@ -52,16 +53,16 @@ declare namespace org {
* it will be the amount of milliseconds since midnight, January 1, 1970
* UTC.
*/
public getLastPlayed(): number;
getLastPlayed(): number;
/**
* Checks if this player has played on this server before.
*/
public hasPlayedBefore(): boolean;
hasPlayedBefore(): boolean;
/**
* Gets the Location where the player will spawn at their bed, null if
* they have not slept in one or their current bed spawn is invalid.
*/
public getBedSpawnLocation(): org.bukkit.Location;
getBedSpawnLocation(): org.bukkit.Location;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Particle {
class DustOptions {
// @ts-ignore
class DustOptions {
constructor(color: org.bukkit.Color, size: number)
/**
* The color of the particles to be displayed.

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Particle {
// @ts-ignore
class Particle {
public static EXPLOSION_NORMAL: org.bukkit.Particle;
public static EXPLOSION_LARGE: org.bukkit.Particle;
public static EXPLOSION_HUGE: org.bukkit.Particle;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class PortalType {
// @ts-ignore
class PortalType {
public static NETHER: org.bukkit.PortalType;
public static ENDER: org.bukkit.PortalType;
public static CUSTOM: org.bukkit.PortalType;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Registry {
class SimpleRegistry {
// @ts-ignore
class SimpleRegistry implements org.bukkit.Registry {
constructor(type: any)
constructor(type: any, predicate: any)
public get(key: org.bukkit.NamespacedKey): any;

View File

@ -1,22 +1,23 @@
declare namespace org {
namespace bukkit {
class Registry {
public static ADVANCEMENT: org.bukkit.Registry;
public static ART: org.bukkit.Registry;
public static BIOME: org.bukkit.Registry;
public static BOSS_BARS: org.bukkit.Registry;
public static ENCHANTMENT: org.bukkit.Registry;
public static ENTITY_TYPE: org.bukkit.Registry;
public static LOOT_TABLES: org.bukkit.Registry;
public static MATERIAL: org.bukkit.Registry;
public static STATISTIC: org.bukkit.Registry;
public static VILLAGER_PROFESSION: org.bukkit.Registry;
public static VILLAGER_TYPE: org.bukkit.Registry;
public static MEMORY_MODULE_TYPE: org.bukkit.Registry;
// @ts-ignore
interface Registry {
ADVANCEMENT: org.bukkit.Registry;
ART: org.bukkit.Registry;
BIOME: org.bukkit.Registry;
BOSS_BARS: org.bukkit.Registry;
ENCHANTMENT: org.bukkit.Registry;
ENTITY_TYPE: org.bukkit.Registry;
LOOT_TABLES: org.bukkit.Registry;
MATERIAL: org.bukkit.Registry;
STATISTIC: org.bukkit.Registry;
VILLAGER_PROFESSION: org.bukkit.Registry;
VILLAGER_TYPE: org.bukkit.Registry;
MEMORY_MODULE_TYPE: org.bukkit.Registry;
/**
* Get the object by its key.
*/
public get(key: org.bukkit.NamespacedKey): org.bukkit.Keyed;
get(key: org.bukkit.NamespacedKey): org.bukkit.Keyed;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Rotation {
// @ts-ignore
class Rotation {
public static NONE: org.bukkit.Rotation;
public static CLOCKWISE_45: org.bukkit.Rotation;
public static CLOCKWISE: org.bukkit.Rotation;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class SandstoneType {
// @ts-ignore
class SandstoneType {
public static CRACKED: org.bukkit.SandstoneType;
public static GLYPHED: org.bukkit.SandstoneType;
public static SMOOTH: org.bukkit.SandstoneType;

View File

@ -1,20 +1,21 @@
declare namespace org {
namespace bukkit {
class Server {
public static BROADCAST_CHANNEL_ADMINISTRATIVE: string;
public static BROADCAST_CHANNEL_USERS: string;
// @ts-ignore
interface Server extends org.bukkit.plugin.messaging.PluginMessageRecipient {
BROADCAST_CHANNEL_ADMINISTRATIVE: string;
BROADCAST_CHANNEL_USERS: string;
/**
* Gets the name of this server implementation.
*/
public getName(): string;
getName(): string;
/**
* Gets the version string of this server implementation.
*/
public getVersion(): string;
getVersion(): string;
/**
* Gets the Bukkit version that this server is running.
*/
public getBukkitVersion(): string;
getBukkitVersion(): string;
/**
* Gets a view of all currently logged in players. This {@linkplain
* Collections#unmodifiableCollection(Collection) view} is a reused
@ -40,79 +41,79 @@ declare namespace org {
* using {@link Collection#toArray(Object[])} is recommended. For making
* snapshots, {@link ImmutableList#copyOf(Collection)} is recommended.
*/
public getOnlinePlayers(): any[] /*java.util.Collection*/;
getOnlinePlayers(): any[] /*java.util.Collection*/;
/**
* Get the maximum amount of players which can login to this server.
*/
public getMaxPlayers(): number;
getMaxPlayers(): number;
/**
* Get the game port that the server runs on.
*/
public getPort(): number;
getPort(): number;
/**
* Get the view distance from this server.
*/
public getViewDistance(): number;
getViewDistance(): number;
/**
* Get the IP that this server is bound to, or empty string if not
* specified.
*/
public getIp(): string;
getIp(): string;
/**
* Get world type (level-type setting) for default world.
*/
public getWorldType(): string;
getWorldType(): string;
/**
* Get generate-structures setting.
*/
public getGenerateStructures(): boolean;
getGenerateStructures(): boolean;
/**
* Gets whether this server allows the End or not.
*/
public getAllowEnd(): boolean;
getAllowEnd(): boolean;
/**
* Gets whether this server allows the Nether or not.
*/
public getAllowNether(): boolean;
getAllowNether(): boolean;
/**
* Gets whether this server has a whitelist or not.
*/
public hasWhitelist(): boolean;
hasWhitelist(): boolean;
/**
* Sets if the server is whitelisted.
*/
public setWhitelist(value: boolean): void;
setWhitelist(value: boolean): void;
/**
* Gets a list of whitelisted players.
*/
public getWhitelistedPlayers(): any[] /*java.util.Set*/;
getWhitelistedPlayers(): any[] /*java.util.Set*/;
/**
* Reloads the whitelist from disk.
*/
public reloadWhitelist(): void;
reloadWhitelist(): void;
/**
* Broadcast a message to all players.
* <p>
* This is the same as calling {@link #broadcast(java.lang.String,
* java.lang.String)} to {@link #BROADCAST_CHANNEL_USERS}
*/
public broadcastMessage(message: string): number;
broadcastMessage(message: string): number;
/**
* Gets the name of the update folder. The update folder is used to safely
* update plugins at the right moment on a plugin load.
* <p>
* The update folder name is relative to the plugins folder.
*/
public getUpdateFolder(): string;
getUpdateFolder(): string;
/**
* Gets the update folder. The update folder is used to safely update
* plugins at the right moment on a plugin load.
*/
public getUpdateFolderFile(): any;
getUpdateFolderFile(): any;
/**
* Gets the value of the connection throttle setting.
*/
public getConnectionThrottle(): number;
getConnectionThrottle(): number;
/**
* Gets default ticks per animal spawns value.
* <p>
@ -130,7 +131,7 @@ declare namespace org {
* <p>
* Minecraft default: 400.
*/
public getTicksPerAnimalSpawns(): number;
getTicksPerAnimalSpawns(): number;
/**
* Gets the default ticks per monster spawns value.
* <p>
@ -148,17 +149,17 @@ declare namespace org {
* <p>
* Minecraft default: 1.
*/
public getTicksPerMonsterSpawns(): number;
getTicksPerMonsterSpawns(): number;
/**
* Gets a player object by the given username.
* <p>
* This method may not return objects for offline players.
*/
public getPlayer(name: string): org.bukkit.entity.Player;
getPlayer(name: string): org.bukkit.entity.Player;
/**
* Gets the player with the exact given name, case insensitive.
*/
public getPlayerExact(name: string): org.bukkit.entity.Player;
getPlayerExact(name: string): org.bukkit.entity.Player;
/**
* Attempts to match any players with the given name, and returns a list
* of all possibly matches.
@ -166,27 +167,27 @@ declare namespace org {
* This list is not sorted in any particular order. If an exact match is
* found, the returned list will only contain a single result.
*/
public matchPlayer(name: string): any[] /*java.util.List*/;
matchPlayer(name: string): any[] /*java.util.List*/;
/**
* Gets the player with the given UUID.
*/
public getPlayer(id: any): org.bukkit.entity.Player;
getPlayer(id: any): org.bukkit.entity.Player;
/**
* Gets the plugin manager for interfacing with plugins.
*/
public getPluginManager(): org.bukkit.plugin.PluginManager;
getPluginManager(): org.bukkit.plugin.PluginManager;
/**
* Gets the scheduler for managing scheduled events.
*/
public getScheduler(): org.bukkit.scheduler.BukkitScheduler;
getScheduler(): org.bukkit.scheduler.BukkitScheduler;
/**
* Gets a services manager.
*/
public getServicesManager(): org.bukkit.plugin.ServicesManager;
getServicesManager(): org.bukkit.plugin.ServicesManager;
/**
* Gets a list of all worlds on this server.
*/
public getWorlds(): any[] /*java.util.List*/;
getWorlds(): any[] /*java.util.List*/;
/**
* Creates or loads a world with the given name using the specified
* options.
@ -194,31 +195,31 @@ declare namespace org {
* If the world is already loaded, it will just return the equivalent of
* getWorld(creator.name()).
*/
public createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World;
createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World;
/**
* Unloads a world with the given name.
*/
public unloadWorld(name: string, save: boolean): boolean;
unloadWorld(name: string, save: boolean): boolean;
/**
* Unloads the given world.
*/
public unloadWorld(world: org.bukkit.World, save: boolean): boolean;
unloadWorld(world: org.bukkit.World, save: boolean): boolean;
/**
* Gets the world with the given name.
*/
public getWorld(name: string): org.bukkit.World;
getWorld(name: string): org.bukkit.World;
/**
* Gets the world from the given Unique ID.
*/
public getWorld(uid: any): org.bukkit.World;
getWorld(uid: any): org.bukkit.World;
/**
* Gets the map from the given item ID.
*/
public getMap(id: number): org.bukkit.map.MapView;
getMap(id: number): org.bukkit.map.MapView;
/**
* Create a new map with an automatically assigned ID.
*/
public createMap(world: org.bukkit.World): org.bukkit.map.MapView;
createMap(world: org.bukkit.World): org.bukkit.map.MapView;
/**
* Create a new explorer map targeting the closest nearby structure of a
* given {@link StructureType}.
@ -226,7 +227,7 @@ declare namespace org {
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
public createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack;
createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack;
/**
* Create a new explorer map targeting the closest nearby structure of a
* given {@link StructureType}.
@ -234,86 +235,86 @@ declare namespace org {
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
public createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack;
createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack;
/**
* Reloads the server, refreshing settings and plugin information.
*/
public reload(): void;
reload(): void;
/**
* Reload only the Minecraft data for the server. This includes custom
* advancements and loot tables.
*/
public reloadData(): void;
reloadData(): void;
/**
* Returns the primary logger associated with this server instance.
*/
public getLogger(): any;
getLogger(): any;
/**
* Gets a {@link PluginCommand} with the given name or alias.
*/
public getPluginCommand(name: string): org.bukkit.command.PluginCommand;
getPluginCommand(name: string): org.bukkit.command.PluginCommand;
/**
* Writes loaded players to disk.
*/
public savePlayers(): void;
savePlayers(): void;
/**
* Dispatches a command on this server, and executes it if found.
*/
public dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean;
dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean;
/**
* Adds a recipe to the crafting manager.
*/
public addRecipe(recipe: org.bukkit.inventory.Recipe): boolean;
addRecipe(recipe: org.bukkit.inventory.Recipe): boolean;
/**
* Get a list of all recipes for a given item. The stack size is ignored
* in comparisons. If the durability is -1, it will match any data value.
*/
public getRecipesFor(result: org.bukkit.inventory.ItemStack): any[] /*java.util.List*/;
getRecipesFor(result: org.bukkit.inventory.ItemStack): any[] /*java.util.List*/;
/**
* Get an iterator through the list of crafting recipes.
*/
public recipeIterator(): any;
recipeIterator(): any;
/**
* Clears the list of crafting recipes.
*/
public clearRecipes(): void;
clearRecipes(): void;
/**
* Resets the list of crafting recipes to the default.
*/
public resetRecipes(): void;
resetRecipes(): void;
/**
* Gets a list of command aliases defined in the server properties.
*/
public getCommandAliases(): Map<any, any> /*java.util.Map*/;
getCommandAliases(): Map<any, any> /*java.util.Map*/;
/**
* Gets the radius, in blocks, around each worlds spawn point to protect.
*/
public getSpawnRadius(): number;
getSpawnRadius(): number;
/**
* Sets the radius, in blocks, around each worlds spawn point to protect.
*/
public setSpawnRadius(value: number): void;
setSpawnRadius(value: number): void;
/**
* Gets whether the Server is in online mode or not.
*/
public getOnlineMode(): boolean;
getOnlineMode(): boolean;
/**
* Gets whether this server allows flying or not.
*/
public getAllowFlight(): boolean;
getAllowFlight(): boolean;
/**
* Gets whether the server is in hardcore mode or not.
*/
public isHardcore(): boolean;
isHardcore(): boolean;
/**
* Shutdowns the server, stopping everything.
*/
public shutdown(): void;
shutdown(): void;
/**
* Broadcasts the specified message to every user with the given
* permission name.
*/
public broadcast(message: string, permission: string): number;
broadcast(message: string, permission: string): number;
/**
* Gets the player by the given name, regardless if they are offline or
* online.
@ -324,7 +325,7 @@ declare namespace org {
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
public getOfflinePlayer(name: string): org.bukkit.OfflinePlayer;
getOfflinePlayer(name: string): org.bukkit.OfflinePlayer;
/**
* Gets the player by the given UUID, regardless if they are offline or
* online.
@ -332,63 +333,63 @@ declare namespace org {
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
public getOfflinePlayer(id: any): org.bukkit.OfflinePlayer;
getOfflinePlayer(id: any): org.bukkit.OfflinePlayer;
/**
* Gets a set containing all current IPs that are banned.
*/
public getIPBans(): any[] /*java.util.Set*/;
getIPBans(): any[] /*java.util.Set*/;
/**
* Bans the specified address from the server.
*/
public banIP(address: string): void;
banIP(address: string): void;
/**
* Unbans the specified address from the server.
*/
public unbanIP(address: string): void;
unbanIP(address: string): void;
/**
* Gets a set containing all banned players.
*/
public getBannedPlayers(): any[] /*java.util.Set*/;
getBannedPlayers(): any[] /*java.util.Set*/;
/**
* Gets a ban list for the supplied type.
* <p>
* Bans by name are no longer supported and this method will return
* null when trying to request them. The replacement is bans by UUID.
*/
public getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList;
getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList;
/**
* Gets a set containing all player operators.
*/
public getOperators(): any[] /*java.util.Set*/;
getOperators(): any[] /*java.util.Set*/;
/**
* Gets the default {@link GameMode} for new players.
*/
public getDefaultGameMode(): org.bukkit.GameMode;
getDefaultGameMode(): org.bukkit.GameMode;
/**
* Sets the default {@link GameMode} for new players.
*/
public setDefaultGameMode(mode: org.bukkit.GameMode): void;
setDefaultGameMode(mode: org.bukkit.GameMode): void;
/**
* Gets a {@link ConsoleCommandSender} that may be used as an input source
* for this server.
*/
public getConsoleSender(): org.bukkit.command.ConsoleCommandSender;
getConsoleSender(): org.bukkit.command.ConsoleCommandSender;
/**
* Gets the folder that contains all of the various {@link World}s.
*/
public getWorldContainer(): any;
getWorldContainer(): any;
/**
* Gets every player that has ever played on this server.
*/
public getOfflinePlayers(): org.bukkit.OfflinePlayer[];
getOfflinePlayers(): org.bukkit.OfflinePlayer[];
/**
* Gets the {@link Messenger} responsible for this server.
*/
public getMessenger(): org.bukkit.plugin.messaging.Messenger;
getMessenger(): org.bukkit.plugin.messaging.Messenger;
/**
* Gets the {@link HelpMap} providing help topics for this server.
*/
public getHelpMap(): org.bukkit.help.HelpMap;
getHelpMap(): org.bukkit.help.HelpMap;
/**
* Creates an empty inventory with the specified type. If the type
* is {@link InventoryType#CHEST}, the new inventory has a size of 27;
@ -402,7 +403,7 @@ declare namespace org {
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
public createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory;
createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory;
/**
* Creates an empty inventory with the specified type and title. If the type
* is {@link InventoryType#CHEST}, the new inventory has a size of 27;
@ -418,41 +419,41 @@ declare namespace org {
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
public createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory;
createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory;
/**
* Creates an empty inventory of type {@link InventoryType#CHEST} with the
* specified size.
*/
public createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory;
createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory;
/**
* Creates an empty inventory of type {@link InventoryType#CHEST} with the
* specified size and title.
*/
public createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory;
createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory;
/**
* Creates an empty merchant.
*/
public createMerchant(title: string): org.bukkit.inventory.Merchant;
createMerchant(title: string): org.bukkit.inventory.Merchant;
/**
* Gets user-specified limit for number of monsters that can spawn in a
* chunk.
*/
public getMonsterSpawnLimit(): number;
getMonsterSpawnLimit(): number;
/**
* Gets user-specified limit for number of animals that can spawn in a
* chunk.
*/
public getAnimalSpawnLimit(): number;
getAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of water animals that can spawn in
* a chunk.
*/
public getWaterAnimalSpawnLimit(): number;
getWaterAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of ambient mobs that can spawn in
* a chunk.
*/
public getAmbientSpawnLimit(): number;
getAmbientSpawnLimit(): number;
/**
* Checks the current thread against the expected primary thread for the
* server.
@ -462,33 +463,33 @@ declare namespace org {
* thread indicates that it is synchronized, but a mismatch <b>does not
* preclude</b> the same assumption.
*/
public isPrimaryThread(): boolean;
isPrimaryThread(): boolean;
/**
* Gets the message that is displayed on the server list.
*/
public getMotd(): string;
getMotd(): string;
/**
* Gets the default message that is displayed when the server is stopped.
*/
public getShutdownMessage(): string;
getShutdownMessage(): string;
/**
* Gets the current warning state for the server.
*/
public getWarningState(): org.bukkit.Warning.WarningState;
getWarningState(): org.bukkit.Warning.WarningState;
/**
* Gets the instance of the item factory (for {@link ItemMeta}).
*/
public getItemFactory(): org.bukkit.inventory.ItemFactory;
getItemFactory(): org.bukkit.inventory.ItemFactory;
/**
* Gets the instance of the scoreboard manager.
* <p>
* This will only exist after the first world has loaded.
*/
public getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager;
getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager;
/**
* Gets an instance of the server's default server-icon.
*/
public getServerIcon(): org.bukkit.util.CachedServerIcon;
getServerIcon(): org.bukkit.util.CachedServerIcon;
/**
* Loads an image from a file, and returns a cached image for the specific
* server-icon.
@ -496,35 +497,35 @@ declare namespace org {
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
public loadServerIcon(file: any): org.bukkit.util.CachedServerIcon;
loadServerIcon(file: any): org.bukkit.util.CachedServerIcon;
/**
* Creates a cached server-icon for the specific image.
* <p>
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
public loadServerIcon(image: any): org.bukkit.util.CachedServerIcon;
loadServerIcon(image: any): org.bukkit.util.CachedServerIcon;
/**
* Set the idle kick timeout. Any players idle for the specified amount of
* time will be automatically kicked.
* <p>
* A value of 0 will disable the idle kick timeout.
*/
public setIdleTimeout(threshold: number): void;
setIdleTimeout(threshold: number): void;
/**
* Gets the idle kick timeout.
*/
public getIdleTimeout(): number;
getIdleTimeout(): number;
/**
* Create a ChunkData for use in a generator.
* See {@link ChunkGenerator#generateChunkData(org.bukkit.World, java.util.Random, int, int, org.bukkit.generator.ChunkGenerator.BiomeGrid)}
*/
public createChunkData(world: org.bukkit.World): org.bukkit.generator.ChunkGenerator.ChunkData;
createChunkData(world: org.bukkit.World): org.bukkit.generator.ChunkGenerator.ChunkData;
/**
* Creates a boss bar instance to display to players. The progress
* defaults to 1.0
*/
public createBossBar(title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.BossBar;
createBossBar(title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.BossBar;
/**
* Creates a boss bar instance to display to players. The progress defaults
* to 1.0.
@ -532,7 +533,7 @@ declare namespace org {
* This instance is added to the persistent storage of the server and will
* be editable by commands and restored after restart.
*/
public createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar;
createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar;
/**
* Gets an unmodifiable iterator through all persistent bossbars.
* <ul>
@ -544,7 +545,7 @@ declare namespace org {
* </ul>
* e.g. bossbars created using the bossbar command
*/
public getBossBars(): any;
getBossBars(): any;
/**
* Gets the {@link KeyedBossBar} specified by this key.
* <ul>
@ -556,7 +557,7 @@ declare namespace org {
* </ul>
* e.g. bossbars created using the bossbar command
*/
public getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar;
getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar;
/**
* Removes a {@link KeyedBossBar} specified by this key.
* <ul>
@ -568,35 +569,35 @@ declare namespace org {
* </ul>
* e.g. bossbars created using the bossbar command
*/
public removeBossBar(key: org.bukkit.NamespacedKey): boolean;
removeBossBar(key: org.bukkit.NamespacedKey): boolean;
/**
* Gets an entity on the server by its UUID
*/
public getEntity(uuid: any): org.bukkit.entity.Entity;
getEntity(uuid: any): org.bukkit.entity.Entity;
/**
* Get the advancement specified by this key.
*/
public getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement;
getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement;
/**
* Get an iterator through all advancements. Advancements cannot be removed
* from this iterator,
*/
public advancementIterator(): any;
advancementIterator(): any;
/**
* Creates a new {@link BlockData} instance for the specified Material, with
* all properties initialized to unspecified defaults.
*/
public createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData;
createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData;
/**
* Creates a new {@link BlockData} instance for the specified Material, with
* all properties initialized to unspecified defaults.
*/
public createBlockData(material: org.bukkit.Material, consumer: any): org.bukkit.block.data.BlockData;
createBlockData(material: org.bukkit.Material, consumer: any): org.bukkit.block.data.BlockData;
/**
* Creates a new {@link BlockData} instance with material and properties
* parsed from provided data.
*/
public createBlockData(data: string): org.bukkit.block.data.BlockData;
createBlockData(data: string): org.bukkit.block.data.BlockData;
/**
* Creates a new {@link BlockData} instance for the specified Material, with
* all properties initialized to unspecified defaults, except for those
@ -605,7 +606,7 @@ declare namespace org {
* If <code>material</code> is specified, then the data string must not also
* contain the material.
*/
public createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData;
createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData;
/**
* Gets a tag which has already been defined within the server. Plugins are
* suggested to use the concrete tags in {@link Tag} rather than this method
@ -618,7 +619,7 @@ declare namespace org {
* Server implementations are allowed to handle only the registries
* indicated in {@link Tag}.
*/
public getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: any): org.bukkit.Tag;
getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: any): org.bukkit.Tag;
/**
* Gets a all tags which have been defined within the server.
* <br>
@ -627,11 +628,11 @@ declare namespace org {
* <br>
* No guarantees are made about the mutability of the returned iterator.
*/
public getTags(registry: string, clazz: any): any;
getTags(registry: string, clazz: any): any;
/**
* Gets the specified {@link LootTable}.
*/
public getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable;
getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable;
/**
* Selects entities using the given Vanilla selector.
* <br>
@ -645,8 +646,8 @@ declare namespace org {
* '@' selectors, but this method should not check such permissions from the
* sender.
*/
public selectEntities(sender: org.bukkit.command.CommandSender, selector: string): any[] /*java.util.List*/;
public getUnsafe(): org.bukkit.UnsafeValues;
selectEntities(sender: org.bukkit.command.CommandSender, selector: string): any[] /*java.util.List*/;
getUnsafe(): org.bukkit.UnsafeValues;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class SkullType {
// @ts-ignore
class SkullType {
public static SKELETON: org.bukkit.SkullType;
public static WITHER: org.bukkit.SkullType;
public static ZOMBIE: org.bukkit.SkullType;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Sound {
// @ts-ignore
class Sound {
public static AMBIENT_CAVE: any;
public static AMBIENT_UNDERWATER_ENTER: any;
public static AMBIENT_UNDERWATER_EXIT: any;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class SoundCategory {
// @ts-ignore
class SoundCategory {
public static MASTER: org.bukkit.SoundCategory;
public static MUSIC: org.bukkit.SoundCategory;
public static RECORDS: org.bukkit.SoundCategory;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Statistic {
class Type {
// @ts-ignore
class Type {
public static UNTYPED: org.bukkit.Statistic.Type;
public static ITEM: org.bukkit.Statistic.Type;
public static BLOCK: org.bukkit.Statistic.Type;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Statistic {
// @ts-ignore
class Statistic implements org.bukkit.Keyed {
public static DAMAGE_DEALT: org.bukkit.Statistic;
public static DAMAGE_TAKEN: org.bukkit.Statistic;
public static DEATHS: org.bukkit.Statistic;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class StructureType {
// @ts-ignore
class StructureType {
public static MINESHAFT: org.bukkit.StructureType;
public static VILLAGE: org.bukkit.StructureType;
public static NETHER_FORTRESS: org.bukkit.StructureType;

View File

@ -1,70 +1,71 @@
declare namespace org {
namespace bukkit {
class Tag {
public static REGISTRY_BLOCKS: string;
public static WOOL: org.bukkit.Tag;
public static PLANKS: org.bukkit.Tag;
public static STONE_BRICKS: org.bukkit.Tag;
public static WOODEN_BUTTONS: org.bukkit.Tag;
public static BUTTONS: org.bukkit.Tag;
public static CARPETS: org.bukkit.Tag;
public static WOODEN_DOORS: org.bukkit.Tag;
public static WOODEN_STAIRS: org.bukkit.Tag;
public static WOODEN_SLABS: org.bukkit.Tag;
public static WOODEN_FENCES: org.bukkit.Tag;
public static WOODEN_PRESSURE_PLATES: org.bukkit.Tag;
public static WOODEN_TRAPDOORS: org.bukkit.Tag;
public static DOORS: org.bukkit.Tag;
public static SAPLINGS: org.bukkit.Tag;
public static LOGS: org.bukkit.Tag;
public static DARK_OAK_LOGS: org.bukkit.Tag;
public static OAK_LOGS: org.bukkit.Tag;
public static BIRCH_LOGS: org.bukkit.Tag;
public static ACACIA_LOGS: org.bukkit.Tag;
public static JUNGLE_LOGS: org.bukkit.Tag;
public static SPRUCE_LOGS: org.bukkit.Tag;
public static BANNERS: org.bukkit.Tag;
public static SAND: org.bukkit.Tag;
public static STAIRS: org.bukkit.Tag;
public static SLABS: org.bukkit.Tag;
public static WALLS: org.bukkit.Tag;
public static ANVIL: org.bukkit.Tag;
public static RAILS: org.bukkit.Tag;
public static LEAVES: org.bukkit.Tag;
public static TRAPDOORS: org.bukkit.Tag;
public static FLOWER_POTS: org.bukkit.Tag;
public static SMALL_FLOWERS: org.bukkit.Tag;
public static BEDS: org.bukkit.Tag;
public static FENCES: org.bukkit.Tag;
public static ENDERMAN_HOLDABLE: org.bukkit.Tag;
public static ICE: org.bukkit.Tag;
public static VALID_SPAWN: org.bukkit.Tag;
public static IMPERMEABLE: org.bukkit.Tag;
public static UNDERWATER_BONEMEALS: org.bukkit.Tag;
public static CORAL_BLOCKS: org.bukkit.Tag;
public static WALL_CORALS: org.bukkit.Tag;
public static CORAL_PLANTS: org.bukkit.Tag;
public static CORALS: org.bukkit.Tag;
public static BAMBOO_PLANTABLE_ON: org.bukkit.Tag;
public static DIRT_LIKE: org.bukkit.Tag;
public static STANDING_SIGNS: org.bukkit.Tag;
public static WALL_SIGNS: org.bukkit.Tag;
public static SIGNS: org.bukkit.Tag;
public static REGISTRY_ITEMS: string;
public static ITEMS_BANNERS: org.bukkit.Tag;
public static ITEMS_BOATS: org.bukkit.Tag;
public static ITEMS_FISHES: org.bukkit.Tag;
public static ITEMS_MUSIC_DISCS: org.bukkit.Tag;
public static ITEMS_COALS: org.bukkit.Tag;
public static ITEMS_ARROWS: org.bukkit.Tag;
// @ts-ignore
interface Tag extends org.bukkit.Keyed {
REGISTRY_BLOCKS: string;
WOOL: org.bukkit.Tag;
PLANKS: org.bukkit.Tag;
STONE_BRICKS: org.bukkit.Tag;
WOODEN_BUTTONS: org.bukkit.Tag;
BUTTONS: org.bukkit.Tag;
CARPETS: org.bukkit.Tag;
WOODEN_DOORS: org.bukkit.Tag;
WOODEN_STAIRS: org.bukkit.Tag;
WOODEN_SLABS: org.bukkit.Tag;
WOODEN_FENCES: org.bukkit.Tag;
WOODEN_PRESSURE_PLATES: org.bukkit.Tag;
WOODEN_TRAPDOORS: org.bukkit.Tag;
DOORS: org.bukkit.Tag;
SAPLINGS: org.bukkit.Tag;
LOGS: org.bukkit.Tag;
DARK_OAK_LOGS: org.bukkit.Tag;
OAK_LOGS: org.bukkit.Tag;
BIRCH_LOGS: org.bukkit.Tag;
ACACIA_LOGS: org.bukkit.Tag;
JUNGLE_LOGS: org.bukkit.Tag;
SPRUCE_LOGS: org.bukkit.Tag;
BANNERS: org.bukkit.Tag;
SAND: org.bukkit.Tag;
STAIRS: org.bukkit.Tag;
SLABS: org.bukkit.Tag;
WALLS: org.bukkit.Tag;
ANVIL: org.bukkit.Tag;
RAILS: org.bukkit.Tag;
LEAVES: org.bukkit.Tag;
TRAPDOORS: org.bukkit.Tag;
FLOWER_POTS: org.bukkit.Tag;
SMALL_FLOWERS: org.bukkit.Tag;
BEDS: org.bukkit.Tag;
FENCES: org.bukkit.Tag;
ENDERMAN_HOLDABLE: org.bukkit.Tag;
ICE: org.bukkit.Tag;
VALID_SPAWN: org.bukkit.Tag;
IMPERMEABLE: org.bukkit.Tag;
UNDERWATER_BONEMEALS: org.bukkit.Tag;
CORAL_BLOCKS: org.bukkit.Tag;
WALL_CORALS: org.bukkit.Tag;
CORAL_PLANTS: org.bukkit.Tag;
CORALS: org.bukkit.Tag;
BAMBOO_PLANTABLE_ON: org.bukkit.Tag;
DIRT_LIKE: org.bukkit.Tag;
STANDING_SIGNS: org.bukkit.Tag;
WALL_SIGNS: org.bukkit.Tag;
SIGNS: org.bukkit.Tag;
REGISTRY_ITEMS: string;
ITEMS_BANNERS: org.bukkit.Tag;
ITEMS_BOATS: org.bukkit.Tag;
ITEMS_FISHES: org.bukkit.Tag;
ITEMS_MUSIC_DISCS: org.bukkit.Tag;
ITEMS_COALS: org.bukkit.Tag;
ITEMS_ARROWS: org.bukkit.Tag;
/**
* Returns whether or not this tag has an entry for the specified item.
*/
public isTagged(item: org.bukkit.Keyed): boolean;
isTagged(item: org.bukkit.Keyed): boolean;
/**
* Gets an immutable set of all tagged items.
*/
public getValues(): any[] /*java.util.Set*/;
getValues(): any[] /*java.util.Set*/;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class TreeSpecies {
// @ts-ignore
class TreeSpecies {
public static GENERIC: org.bukkit.TreeSpecies;
public static REDWOOD: org.bukkit.TreeSpecies;
public static BIRCH: org.bukkit.TreeSpecies;

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class TreeType {
// @ts-ignore
class TreeType {
public static TREE: org.bukkit.TreeType;
public static BIG_TREE: org.bukkit.TreeType;
public static REDWOOD: org.bukkit.TreeType;

View File

@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
class UndefinedNullability {
// @ts-ignore
interface UndefinedNullability {
/**
* Human readable description of the circumstances, in which the type is
* nullable.
*/
public value(): string;
value(): string;
}
}
}

View File

@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
class UnsafeValues {
public toLegacy(material: org.bukkit.Material): org.bukkit.Material;
public fromLegacy(material: org.bukkit.Material): org.bukkit.Material;
public fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material;
public fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material;
public fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData;
public getMaterial(material: string, version: number): org.bukkit.Material;
public getDataVersion(): number;
public modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack;
public checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void;
public processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[];
// @ts-ignore
interface UnsafeValues {
toLegacy(material: org.bukkit.Material): org.bukkit.Material;
fromLegacy(material: org.bukkit.Material): org.bukkit.Material;
fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material;
fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material;
fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData;
getMaterial(material: string, version: number): org.bukkit.Material;
getDataVersion(): number;
modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack;
checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void;
processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[];
/**
* Load an advancement represented by the specified string into the server.
* The advancement format is governed by Minecraft and has no specified
@ -24,7 +25,7 @@ declare namespace org {
* <br>
* Callers should be prepared for {@link Exception} to be thrown.
*/
public loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement;
loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement;
/**
* Delete an advancement which was loaded and saved by
* {@link #loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)}.
@ -33,7 +34,7 @@ declare namespace org {
* should be accompanied by a call to {@link Server#reloadData()} in order
* to fully remove it from the running instance.
*/
public removeAdvancement(key: org.bukkit.NamespacedKey): boolean;
removeAdvancement(key: org.bukkit.NamespacedKey): boolean;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class Utility {
// @ts-ignore
interface Utility {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace Warning {
class WarningState {
// @ts-ignore
class WarningState {
public static ON: org.bukkit.Warning.WarningState;
public static OFF: org.bukkit.Warning.WarningState;
public static DEFAULT: org.bukkit.Warning.WarningState;

View File

@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
class Warning {
// @ts-ignore
interface Warning {
/**
* This sets if the deprecation warnings when registering events gets
* printed when the setting is in the default state.
*/
public value(): boolean;
value(): boolean;
/**
* This can provide detailed information on why the event is deprecated.
*/
public reason(): string;
reason(): string;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class WeatherType {
// @ts-ignore
class WeatherType {
public static DOWNFALL: org.bukkit.WeatherType;
public static CLEAR: org.bukkit.WeatherType;
public static values(): org.bukkit.WeatherType[];

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace World {
class Environment {
// @ts-ignore
class Environment {
public static NORMAL: org.bukkit.World.Environment;
public static NETHER: org.bukkit.World.Environment;
public static THE_END: org.bukkit.World.Environment;

View File

@ -1,55 +1,56 @@
declare namespace org {
namespace bukkit {
class World {
// @ts-ignore
interface World extends org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.metadata.Metadatable {
/**
* Gets the {@link Block} at the given coordinates
*/
public getBlockAt(x: number, y: number, z: number): org.bukkit.block.Block;
getBlockAt(x: number, y: number, z: number): org.bukkit.block.Block;
/**
* Gets the {@link Block} at the given {@link Location}
*/
public getBlockAt(location: org.bukkit.Location): org.bukkit.block.Block;
getBlockAt(location: org.bukkit.Location): org.bukkit.block.Block;
/**
* Gets the y coordinate of the lowest block at this position such that the
* block and all blocks above it are transparent for lighting purposes.
*/
public getHighestBlockYAt(x: number, z: number): number;
getHighestBlockYAt(x: number, z: number): number;
/**
* Gets the y coordinate of the lowest block at the given {@link Location}
* such that the block and all blocks above it are transparent for lighting
* purposes.
*/
public getHighestBlockYAt(location: org.bukkit.Location): number;
getHighestBlockYAt(location: org.bukkit.Location): number;
/**
* Gets the lowest block at the given coordinates such that the block and
* all blocks above it are transparent for lighting purposes.
*/
public getHighestBlockAt(x: number, z: number): org.bukkit.block.Block;
getHighestBlockAt(x: number, z: number): org.bukkit.block.Block;
/**
* Gets the lowest block at the given {@link Location} such that the block
* and all blocks above it are transparent for lighting purposes.
*/
public getHighestBlockAt(location: org.bukkit.Location): org.bukkit.block.Block;
getHighestBlockAt(location: org.bukkit.Location): org.bukkit.block.Block;
/**
* Gets the {@link Chunk} at the given coordinates
*/
public getChunkAt(x: number, z: number): org.bukkit.Chunk;
getChunkAt(x: number, z: number): org.bukkit.Chunk;
/**
* Gets the {@link Chunk} at the given {@link Location}
*/
public getChunkAt(location: org.bukkit.Location): org.bukkit.Chunk;
getChunkAt(location: org.bukkit.Location): org.bukkit.Chunk;
/**
* Gets the {@link Chunk} that contains the given {@link Block}
*/
public getChunkAt(block: org.bukkit.block.Block): org.bukkit.Chunk;
getChunkAt(block: org.bukkit.block.Block): org.bukkit.Chunk;
/**
* Checks if the specified {@link Chunk} is loaded
*/
public isChunkLoaded(chunk: org.bukkit.Chunk): boolean;
isChunkLoaded(chunk: org.bukkit.Chunk): boolean;
/**
* Gets an array of all loaded {@link Chunk}s
*/
public getLoadedChunks(): org.bukkit.Chunk[];
getLoadedChunks(): org.bukkit.Chunk[];
/**
* Loads the specified {@link Chunk}.
* <p>
@ -57,20 +58,20 @@ declare namespace org {
* unload methods is manually called. Callers are advised to instead use
* getChunkAt which will only temporarily load the requested chunk.</b>
*/
public loadChunk(chunk: org.bukkit.Chunk): void;
loadChunk(chunk: org.bukkit.Chunk): void;
/**
* Checks if the {@link Chunk} at the specified coordinates is loaded
*/
public isChunkLoaded(x: number, z: number): boolean;
isChunkLoaded(x: number, z: number): boolean;
/**
* Checks if the {@link Chunk} at the specified coordinates is generated
*/
public isChunkGenerated(x: number, z: number): boolean;
isChunkGenerated(x: number, z: number): boolean;
/**
* Checks if the {@link Chunk} at the specified coordinates is loaded and
* in use by one or more players
*/
public isChunkInUse(x: number, z: number): boolean;
isChunkInUse(x: number, z: number): boolean;
/**
* Loads the {@link Chunk} at the specified coordinates.
* <p>
@ -83,7 +84,7 @@ declare namespace org {
* This method is analogous to {@link #loadChunk(int, int, boolean)} where
* generate is true.
*/
public loadChunk(x: number, z: number): void;
loadChunk(x: number, z: number): void;
/**
* Loads the {@link Chunk} at the specified coordinates.
* <p>
@ -91,59 +92,59 @@ declare namespace org {
* unload methods is manually called. Callers are advised to instead use
* getChunkAt which will only temporarily load the requested chunk.</b>
*/
public loadChunk(x: number, z: number, generate: boolean): boolean;
loadChunk(x: number, z: number, generate: boolean): boolean;
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
* <p>
* This method is analogous to {@link #unloadChunk(int, int, boolean)}
* where save is true.
*/
public unloadChunk(chunk: org.bukkit.Chunk): boolean;
unloadChunk(chunk: org.bukkit.Chunk): boolean;
/**
* Safely unloads and saves the {@link Chunk} at the specified coordinates
* <p>
* This method is analogous to {@link #unloadChunk(int, int, boolean)}
* where save is true.
*/
public unloadChunk(x: number, z: number): boolean;
unloadChunk(x: number, z: number): boolean;
/**
* Safely unloads and optionally saves the {@link Chunk} at the specified
* coordinates.
*/
public unloadChunk(x: number, z: number, save: boolean): boolean;
unloadChunk(x: number, z: number, save: boolean): boolean;
/**
* Safely queues the {@link Chunk} at the specified coordinates for
* unloading.
*/
public unloadChunkRequest(x: number, z: number): boolean;
unloadChunkRequest(x: number, z: number): boolean;
/**
* Regenerates the {@link Chunk} at the specified coordinates
*/
public regenerateChunk(x: number, z: number): boolean;
regenerateChunk(x: number, z: number): boolean;
/**
* Resends the {@link Chunk} to all clients
*/
public refreshChunk(x: number, z: number): boolean;
refreshChunk(x: number, z: number): boolean;
/**
* Gets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*/
public isChunkForceLoaded(x: number, z: number): boolean;
isChunkForceLoaded(x: number, z: number): boolean;
/**
* Sets whether the chunk at the specified chunk coordinates is force
* loaded.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*/
public setChunkForceLoaded(x: number, z: number, forced: boolean): void;
setChunkForceLoaded(x: number, z: number, forced: boolean): void;
/**
* Returns all force loaded chunks in this world.
* <p>
* A force loaded chunk will not be unloaded due to lack of player activity.
*/
public getForceLoadedChunks(): any[] /*java.util.Collection*/;
getForceLoadedChunks(): any[] /*java.util.Collection*/;
/**
* Adds a plugin ticket for the specified chunk, loading the chunk if it is
* not already loaded.
@ -153,7 +154,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public addPluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean;
addPluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean;
/**
* Removes the specified plugin's ticket for the specified chunk
* <p>
@ -162,7 +163,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public removePluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean;
removePluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean;
/**
* Removes all plugin tickets for the specified plugin
* <p>
@ -171,7 +172,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public removePluginChunkTickets(plugin: org.bukkit.plugin.Plugin): void;
removePluginChunkTickets(plugin: org.bukkit.plugin.Plugin): void;
/**
* Retrieves a collection specifying which plugins have tickets for the
* specified chunk. This collection is not updated when plugin tickets are
@ -182,7 +183,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public getPluginChunkTickets(x: number, z: number): any[] /*java.util.Collection*/;
getPluginChunkTickets(x: number, z: number): any[] /*java.util.Collection*/;
/**
* Returns a map of which plugins have tickets for what chunks. The returned
* map is not updated when plugin tickets are added or removed to chunks. If
@ -193,70 +194,70 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
* </p>
*/
public getPluginChunkTickets(): Map<any, any> /*java.util.Map*/;
getPluginChunkTickets(): Map<any, any> /*java.util.Map*/;
/**
* Drops an item at the specified {@link Location}
*/
public dropItem(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item;
dropItem(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item;
/**
* Drops an item at the specified {@link Location} with a random offset
*/
public dropItemNaturally(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item;
dropItemNaturally(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item;
/**
* Creates an {@link Arrow} entity at the given {@link Location}
*/
public spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number): org.bukkit.entity.Arrow;
spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number): org.bukkit.entity.Arrow;
/**
* Creates an arrow entity of the given class at the given {@link Location}
*/
public spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number, clazz: any): org.bukkit.entity.AbstractArrow;
spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number, clazz: any): org.bukkit.entity.AbstractArrow;
/**
* Creates a tree at the given {@link Location}
*/
public generateTree(location: org.bukkit.Location, type: org.bukkit.TreeType): boolean;
generateTree(location: org.bukkit.Location, type: org.bukkit.TreeType): boolean;
/**
* Creates a tree at the given {@link Location}
*/
public generateTree(loc: org.bukkit.Location, type: org.bukkit.TreeType, delegate: org.bukkit.BlockChangeDelegate): boolean;
generateTree(loc: org.bukkit.Location, type: org.bukkit.TreeType, delegate: org.bukkit.BlockChangeDelegate): boolean;
/**
* Creates a entity at the given {@link Location}
*/
public spawnEntity(loc: org.bukkit.Location, type: org.bukkit.entity.EntityType): org.bukkit.entity.Entity;
spawnEntity(loc: org.bukkit.Location, type: org.bukkit.entity.EntityType): org.bukkit.entity.Entity;
/**
* Strikes lightning at the given {@link Location}
*/
public strikeLightning(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike;
strikeLightning(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike;
/**
* Strikes lightning at the given {@link Location} without doing damage
*/
public strikeLightningEffect(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike;
strikeLightningEffect(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike;
/**
* Get a list of all entities in this World
*/
public getEntities(): any[] /*java.util.List*/;
getEntities(): any[] /*java.util.List*/;
/**
* Get a list of all living entities in this World
*/
public getLivingEntities(): any[] /*java.util.List*/;
getLivingEntities(): any[] /*java.util.List*/;
/**
* Get a collection of all entities in this World matching the given
* class/interface
*/
public getEntitiesByClass(classes: any): any[] /*java.util.Collection*/;
getEntitiesByClass(classes: any): any[] /*java.util.Collection*/;
/**
* Get a collection of all entities in this World matching the given
* class/interface
*/
public getEntitiesByClass(cls: any): any[] /*java.util.Collection*/;
getEntitiesByClass(cls: any): any[] /*java.util.Collection*/;
/**
* Get a collection of all entities in this World matching any of the
* given classes/interfaces
*/
public getEntitiesByClasses(classes: any): any[] /*java.util.Collection*/;
getEntitiesByClasses(classes: any): any[] /*java.util.Collection*/;
/**
* Get a list of all players in this World
*/
public getPlayers(): any[] /*java.util.List*/;
getPlayers(): any[] /*java.util.List*/;
/**
* Returns a list of entities within a bounding box centered around a
* Location.
@ -265,7 +266,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the size of the
* search bounding box.
*/
public getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number): any[] /*java.util.Collection*/;
getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number): any[] /*java.util.Collection*/;
/**
* Returns a list of entities within a bounding box centered around a
* Location.
@ -274,7 +275,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the size of the
* search bounding box.
*/
public getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number, filter: any): any[] /*java.util.Collection*/;
getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number, filter: any): any[] /*java.util.Collection*/;
/**
* Returns a list of entities within the given bounding box.
* <p>
@ -282,7 +283,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the size of the
* search bounding box.
*/
public getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox): any[] /*java.util.Collection*/;
getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox): any[] /*java.util.Collection*/;
/**
* Returns a list of entities within the given bounding box.
* <p>
@ -290,7 +291,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the size of the
* search bounding box.
*/
public getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox, filter: any): any[] /*java.util.Collection*/;
getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox, filter: any): any[] /*java.util.Collection*/;
/**
* Performs a ray trace that checks for entity collisions.
* <p>
@ -298,7 +299,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the maximum
* distance.
*/
public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult;
rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for entity collisions.
* <p>
@ -306,7 +307,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the maximum
* distance.
*/
public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number): org.bukkit.util.RayTraceResult;
rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for entity collisions.
* <p>
@ -314,7 +315,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the maximum
* distance.
*/
public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, filter: any): org.bukkit.util.RayTraceResult;
rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, filter: any): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for entity collisions.
* <p>
@ -322,7 +323,7 @@ declare namespace org {
* implementations may impose artificial restrictions on the maximum
* distance.
*/
public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number, filter: any): org.bukkit.util.RayTraceResult;
rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number, filter: any): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for block collisions using the blocks'
* precise collision shapes.
@ -333,7 +334,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult;
rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for block collisions using the blocks'
* precise collision shapes.
@ -343,7 +344,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for block collisions using the blocks'
* precise collision shapes.
@ -358,7 +359,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean): org.bukkit.util.RayTraceResult;
rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that checks for both block and entity collisions.
* <p>
@ -376,35 +377,35 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
public rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean, raySize: number, filter: any): org.bukkit.util.RayTraceResult;
rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean, raySize: number, filter: any): org.bukkit.util.RayTraceResult;
/**
* Gets the unique name of this world
*/
public getName(): string;
getName(): string;
/**
* Gets the Unique ID of this world
*/
public getUID(): any;
getUID(): any;
/**
* Gets the default spawn {@link Location} of this world
*/
public getSpawnLocation(): org.bukkit.Location;
getSpawnLocation(): org.bukkit.Location;
/**
* Sets the spawn location of the world.
* <br>
* The location provided must be equal to this world.
*/
public setSpawnLocation(location: org.bukkit.Location): boolean;
setSpawnLocation(location: org.bukkit.Location): boolean;
/**
* Sets the spawn location of the world
*/
public setSpawnLocation(x: number, y: number, z: number): boolean;
setSpawnLocation(x: number, y: number, z: number): boolean;
/**
* Gets the relative in-game time of this world.
* <p>
* The relative time is analogous to hours * 1000
*/
public getTime(): number;
getTime(): number;
/**
* Sets the relative in-game time on the server.
* <p>
@ -414,106 +415,106 @@ declare namespace org {
* will actually move the clock forward a day. If you require to rewind
* time, please see {@link #setFullTime(long)}
*/
public setTime(time: number): void;
setTime(time: number): void;
/**
* Gets the full in-game time on this world
*/
public getFullTime(): number;
getFullTime(): number;
/**
* Sets the in-game time on the server
* <p>
* Note that this sets the full time of the world, which may cause adverse
* effects such as breaking redstone clocks and any scheduled events
*/
public setFullTime(time: number): void;
setFullTime(time: number): void;
/**
* Returns whether the world has an ongoing storm.
*/
public hasStorm(): boolean;
hasStorm(): boolean;
/**
* Set whether there is a storm. A duration will be set for the new
* current conditions.
*/
public setStorm(hasStorm: boolean): void;
setStorm(hasStorm: boolean): void;
/**
* Get the remaining time in ticks of the current conditions.
*/
public getWeatherDuration(): number;
getWeatherDuration(): number;
/**
* Set the remaining time in ticks of the current conditions.
*/
public setWeatherDuration(duration: number): void;
setWeatherDuration(duration: number): void;
/**
* Returns whether there is thunder.
*/
public isThundering(): boolean;
isThundering(): boolean;
/**
* Set whether it is thundering.
*/
public setThundering(thundering: boolean): void;
setThundering(thundering: boolean): void;
/**
* Get the thundering duration.
*/
public getThunderDuration(): number;
getThunderDuration(): number;
/**
* Set the thundering duration.
*/
public setThunderDuration(duration: number): void;
setThunderDuration(duration: number): void;
/**
* Creates explosion at given coordinates with given power
*/
public createExplosion(x: number, y: number, z: number, power: number): boolean;
createExplosion(x: number, y: number, z: number, power: number): boolean;
/**
* Creates explosion at given coordinates with given power and optionally
* setting blocks on fire.
*/
public createExplosion(x: number, y: number, z: number, power: number, setFire: boolean): boolean;
createExplosion(x: number, y: number, z: number, power: number, setFire: boolean): boolean;
/**
* Creates explosion at given coordinates with given power and optionally
* setting blocks on fire or breaking blocks.
*/
public createExplosion(x: number, y: number, z: number, power: number, setFire: boolean, breakBlocks: boolean): boolean;
createExplosion(x: number, y: number, z: number, power: number, setFire: boolean, breakBlocks: boolean): boolean;
/**
* Creates explosion at given coordinates with given power
*/
public createExplosion(loc: org.bukkit.Location, power: number): boolean;
createExplosion(loc: org.bukkit.Location, power: number): boolean;
/**
* Creates explosion at given coordinates with given power and optionally
* setting blocks on fire.
*/
public createExplosion(loc: org.bukkit.Location, power: number, setFire: boolean): boolean;
createExplosion(loc: org.bukkit.Location, power: number, setFire: boolean): boolean;
/**
* Gets the {@link Environment} type of this world
*/
public getEnvironment(): org.bukkit.World.Environment;
getEnvironment(): org.bukkit.World.Environment;
/**
* Gets the Seed for this world.
*/
public getSeed(): number;
getSeed(): number;
/**
* Gets the current PVP setting for this world.
*/
public getPVP(): boolean;
getPVP(): boolean;
/**
* Sets the PVP setting for this world.
*/
public setPVP(pvp: boolean): void;
setPVP(pvp: boolean): void;
/**
* Gets the chunk generator for this world
*/
public getGenerator(): org.bukkit.generator.ChunkGenerator;
getGenerator(): org.bukkit.generator.ChunkGenerator;
/**
* Saves world to disk
*/
public save(): void;
save(): void;
/**
* Gets a list of all applied {@link BlockPopulator}s for this World
*/
public getPopulators(): any[] /*java.util.List*/;
getPopulators(): any[] /*java.util.List*/;
/**
* Spawn an entity of a specific class at the given {@link Location}
*/
public spawn(location: org.bukkit.Location, clazz: any): org.bukkit.entity.Entity;
spawn(location: org.bukkit.Location, clazz: any): org.bukkit.entity.Entity;
/**
* Spawn an entity of a specific class at the given {@link Location}, with
* the supplied function run before the entity is added to the world.
@ -522,7 +523,7 @@ declare namespace org {
* the world. Any operation involving such as teleporting the entity is undefined
* until after this function returns.
*/
public spawn(location: org.bukkit.Location, clazz: any, func: org.bukkit.util.Consumer): org.bukkit.entity.Entity;
spawn(location: org.bukkit.Location, clazz: any, func: org.bukkit.util.Consumer): org.bukkit.entity.Entity;
/**
* Spawn a {@link FallingBlock} entity at the given {@link Location} of
* the specified {@link Material}. The material dictates what is falling.
@ -531,7 +532,7 @@ declare namespace org {
* The Material must be a block type, check with {@link Material#isBlock()
* material.isBlock()}. The Material may not be air.
*/
public spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.material.MaterialData): org.bukkit.entity.FallingBlock;
spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.material.MaterialData): org.bukkit.entity.FallingBlock;
/**
* Spawn a {@link FallingBlock} entity at the given {@link Location} of
* the specified {@link Material}. The material dictates what is falling.
@ -540,7 +541,7 @@ declare namespace org {
* The Material must be a block type, check with {@link Material#isBlock()
* material.isBlock()}. The Material may not be air.
*/
public spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.block.data.BlockData): org.bukkit.entity.FallingBlock;
spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.block.data.BlockData): org.bukkit.entity.FallingBlock;
/**
* Spawn a {@link FallingBlock} entity at the given {@link Location} of the
* specified {@link Material}. The material dictates what is falling.
@ -549,51 +550,51 @@ declare namespace org {
* The Material must be a block type, check with {@link Material#isBlock()
* material.isBlock()}. The Material may not be air.
*/
public spawnFallingBlock(location: org.bukkit.Location, material: org.bukkit.Material, data: number): org.bukkit.entity.FallingBlock;
spawnFallingBlock(location: org.bukkit.Location, material: org.bukkit.Material, data: number): org.bukkit.entity.FallingBlock;
/**
* Plays an effect to all players within a default radius around a given
* location.
*/
public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void;
playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void;
/**
* Plays an effect to all players within a given radius around a location.
*/
public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number, radius: number): void;
playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number, radius: number): void;
/**
* Plays an effect to all players within a default radius around a given
* location.
*/
public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void;
playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void;
/**
* Plays an effect to all players within a given radius around a location.
*/
public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any, radius: number): void;
playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any, radius: number): void;
/**
* Get empty chunk snapshot (equivalent to all air blocks), optionally
* including valid biome data. Used for representing an ungenerated chunk,
* or for fetching only biome data without loading a chunk.
*/
public getEmptyChunkSnapshot(x: number, z: number, includeBiome: boolean, includeBiomeTemp: boolean): org.bukkit.ChunkSnapshot;
getEmptyChunkSnapshot(x: number, z: number, includeBiome: boolean, includeBiomeTemp: boolean): org.bukkit.ChunkSnapshot;
/**
* Sets the spawn flags for this.
*/
public setSpawnFlags(allowMonsters: boolean, allowAnimals: boolean): void;
setSpawnFlags(allowMonsters: boolean, allowAnimals: boolean): void;
/**
* Gets whether animals can spawn in this world.
*/
public getAllowAnimals(): boolean;
getAllowAnimals(): boolean;
/**
* Gets whether monsters can spawn in this world.
*/
public getAllowMonsters(): boolean;
getAllowMonsters(): boolean;
/**
* Gets the biome for the given block coordinates.
*/
public getBiome(x: number, z: number): org.bukkit.block.Biome;
getBiome(x: number, z: number): org.bukkit.block.Biome;
/**
* Sets the biome for the given block coordinates
*/
public setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void;
setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void;
/**
* Gets the temperature for the given block coordinates.
* <p>
@ -603,64 +604,64 @@ declare namespace org {
* This method will return the raw temperature without adjusting for block
* height effects.
*/
public getTemperature(x: number, z: number): number;
getTemperature(x: number, z: number): number;
/**
* Gets the humidity for the given block coordinates.
* <p>
* It is safe to run this method when the block does not exist, it will
* not create the block.
*/
public getHumidity(x: number, z: number): number;
getHumidity(x: number, z: number): number;
/**
* Gets the maximum height of this world.
* <p>
* If the max height is 100, there are only blocks from y=0 to y=99.
*/
public getMaxHeight(): number;
getMaxHeight(): number;
/**
* Gets the sea level for this world.
* <p>
* This is often half of {@link #getMaxHeight()}
*/
public getSeaLevel(): number;
getSeaLevel(): number;
/**
* Gets whether the world's spawn area should be kept loaded into memory
* or not.
*/
public getKeepSpawnInMemory(): boolean;
getKeepSpawnInMemory(): boolean;
/**
* Sets whether the world's spawn area should be kept loaded into memory
* or not.
*/
public setKeepSpawnInMemory(keepLoaded: boolean): void;
setKeepSpawnInMemory(keepLoaded: boolean): void;
/**
* Gets whether or not the world will automatically save
*/
public isAutoSave(): boolean;
isAutoSave(): boolean;
/**
* Sets whether or not the world will automatically save
*/
public setAutoSave(value: boolean): void;
setAutoSave(value: boolean): void;
/**
* Sets the Difficulty of the world.
*/
public setDifficulty(difficulty: org.bukkit.Difficulty): void;
setDifficulty(difficulty: org.bukkit.Difficulty): void;
/**
* Gets the Difficulty of the world.
*/
public getDifficulty(): org.bukkit.Difficulty;
getDifficulty(): org.bukkit.Difficulty;
/**
* Gets the folder of this world on disk.
*/
public getWorldFolder(): any;
getWorldFolder(): any;
/**
* Gets the type of this world.
*/
public getWorldType(): org.bukkit.WorldType;
getWorldType(): org.bukkit.WorldType;
/**
* Gets whether or not structures are being generated.
*/
public canGenerateStructures(): boolean;
canGenerateStructures(): boolean;
/**
* Gets the world's ticks per animal spawns value
* <p>
@ -683,7 +684,7 @@ declare namespace org {
* <p>
* Minecraft default: 400.
*/
public getTicksPerAnimalSpawns(): number;
getTicksPerAnimalSpawns(): number;
/**
* Sets the world's ticks per animal spawns value
* <p>
@ -706,7 +707,7 @@ declare namespace org {
* <p>
* Minecraft default: 400.
*/
public setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void;
setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void;
/**
* Gets the world's ticks per monster spawns value
* <p>
@ -729,7 +730,7 @@ declare namespace org {
* <p>
* Minecraft default: 1.
*/
public getTicksPerMonsterSpawns(): number;
getTicksPerMonsterSpawns(): number;
/**
* Sets the world's ticks per monster spawns value
* <p>
@ -752,12 +753,12 @@ declare namespace org {
* <p>
* Minecraft default: 1.
*/
public setTicksPerMonsterSpawns(ticksPerMonsterSpawns: number): void;
setTicksPerMonsterSpawns(ticksPerMonsterSpawns: number): void;
/**
* Gets limit for number of monsters that can spawn in a chunk in this
* world
*/
public getMonsterSpawnLimit(): number;
getMonsterSpawnLimit(): number;
/**
* Sets the limit for number of monsters that can spawn in a chunk in this
* world
@ -765,12 +766,12 @@ declare namespace org {
* <b>Note:</b> If set to a negative number the world will use the
* server-wide spawn limit instead.
*/
public setMonsterSpawnLimit(limit: number): void;
setMonsterSpawnLimit(limit: number): void;
/**
* Gets the limit for number of animals that can spawn in a chunk in this
* world
*/
public getAnimalSpawnLimit(): number;
getAnimalSpawnLimit(): number;
/**
* Sets the limit for number of animals that can spawn in a chunk in this
* world
@ -778,12 +779,12 @@ declare namespace org {
* <b>Note:</b> If set to a negative number the world will use the
* server-wide spawn limit instead.
*/
public setAnimalSpawnLimit(limit: number): void;
setAnimalSpawnLimit(limit: number): void;
/**
* Gets the limit for number of water animals that can spawn in a chunk in
* this world
*/
public getWaterAnimalSpawnLimit(): number;
getWaterAnimalSpawnLimit(): number;
/**
* Sets the limit for number of water animals that can spawn in a chunk in
* this world
@ -791,12 +792,12 @@ declare namespace org {
* <b>Note:</b> If set to a negative number the world will use the
* server-wide spawn limit instead.
*/
public setWaterAnimalSpawnLimit(limit: number): void;
setWaterAnimalSpawnLimit(limit: number): void;
/**
* Gets the limit for number of ambient mobs that can spawn in a chunk in
* this world
*/
public getAmbientSpawnLimit(): number;
getAmbientSpawnLimit(): number;
/**
* Sets the limit for number of ambient mobs that can spawn in a chunk in
* this world
@ -804,13 +805,13 @@ declare namespace org {
* <b>Note:</b> If set to a negative number the world will use the
* server-wide spawn limit instead.
*/
public setAmbientSpawnLimit(limit: number): void;
setAmbientSpawnLimit(limit: number): void;
/**
* Play a Sound at the provided Location in the World
* <p>
* This function will fail silently if Location or Sound are null.
*/
public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void;
playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void;
/**
* Play a Sound at the provided Location in the World.
* <p>
@ -818,13 +819,13 @@ declare namespace org {
* sound will be heard by the players if their clients do not have the
* respective sound for the value passed.
*/
public playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void;
playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void;
/**
* Play a Sound at the provided Location in the World.
* <p>
* This function will fail silently if Location or Sound are null.
*/
public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void;
playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void;
/**
* Play a Sound at the provided Location in the World.
* <p>
@ -832,17 +833,17 @@ declare namespace org {
* will be heard by the players if their clients do not have the respective
* sound for the value passed.
*/
public playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void;
playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void;
/**
* Get an array containing the names of all the {@link GameRule}s.
*/
public getGameRules(): any;
getGameRules(): any;
/**
* Gets the current state of the specified rule
* <p>
* Will return null if rule passed is null
*/
public getGameRuleValue(rule: string): string;
getGameRuleValue(rule: string): string;
/**
* Set the specified gamerule to specified value.
* <p>
@ -851,118 +852,118 @@ declare namespace org {
* <p>
* If rule is null, the function will return false.
*/
public setGameRuleValue(rule: string, value: string): boolean;
setGameRuleValue(rule: string, value: string): boolean;
/**
* Checks if string is a valid game rule
*/
public isGameRule(rule: string): boolean;
isGameRule(rule: string): boolean;
/**
* Get the current value for a given {@link GameRule}.
*/
public getGameRuleValue(rule: org.bukkit.GameRule): any;
getGameRuleValue(rule: org.bukkit.GameRule): any;
/**
* Get the default value for a given {@link GameRule}. This value is not
* guaranteed to match the current value.
*/
public getGameRuleDefault(rule: org.bukkit.GameRule): any;
getGameRuleDefault(rule: org.bukkit.GameRule): any;
/**
* Set the given {@link GameRule}'s new value.
*/
public setGameRule(rule: org.bukkit.GameRule, newValue: any): boolean;
setGameRule(rule: org.bukkit.GameRule, newValue: any): boolean;
/**
* Gets the world border for this world.
*/
public getWorldBorder(): org.bukkit.WorldBorder;
getWorldBorder(): org.bukkit.WorldBorder;
/**
* Spawns the particle (the number of times specified by count)
* at the target location.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void;
spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void;
/**
* Spawns the particle (the number of times specified by count)
* at the target location. The position of each particle will be
* randomized positively and negatively by the offset parameters
* on each axis.
*/
public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void;
spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void;
/**
* Find the closest nearby structure of a given {@link StructureType}.
* Finding unexplored structures can, and will, block if the world is
@ -980,7 +981,7 @@ declare namespace org {
* unexplored structures. This is because it will keep looking further and
* further out in order to find the structure.
*/
public locateNearestStructure(origin: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.Location;
locateNearestStructure(origin: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.Location;
}
}
}

View File

@ -1,70 +1,71 @@
declare namespace org {
namespace bukkit {
class WorldBorder {
// @ts-ignore
interface WorldBorder {
/**
* Resets the border to default values.
*/
public reset(): void;
reset(): void;
/**
* Gets the current side length of the border.
*/
public getSize(): number;
getSize(): number;
/**
* Sets the border to a square region with the specified side length in blocks.
*/
public setSize(newSize: number): void;
setSize(newSize: number): void;
/**
* Sets the border to a square region with the specified side length in blocks.
*/
public setSize(newSize: number, seconds: number): void;
setSize(newSize: number, seconds: number): void;
/**
* Gets the current border center.
*/
public getCenter(): org.bukkit.Location;
getCenter(): org.bukkit.Location;
/**
* Sets the new border center.
*/
public setCenter(x: number, z: number): void;
setCenter(x: number, z: number): void;
/**
* Sets the new border center.
*/
public setCenter(location: org.bukkit.Location): void;
setCenter(location: org.bukkit.Location): void;
/**
* Gets the current border damage buffer.
*/
public getDamageBuffer(): number;
getDamageBuffer(): number;
/**
* Sets the amount of blocks a player may safely be outside the border before taking damage.
*/
public setDamageBuffer(blocks: number): void;
setDamageBuffer(blocks: number): void;
/**
* Gets the current border damage amount.
*/
public getDamageAmount(): number;
getDamageAmount(): number;
/**
* Sets the amount of damage a player takes when outside the border plus the border buffer.
*/
public setDamageAmount(damage: number): void;
setDamageAmount(damage: number): void;
/**
* Gets the current border warning time in seconds.
*/
public getWarningTime(): number;
getWarningTime(): number;
/**
* Sets the warning time that causes the screen to be tinted red when a contracting border will reach the player within the specified time.
*/
public setWarningTime(seconds: number): void;
setWarningTime(seconds: number): void;
/**
* Gets the current border warning distance.
*/
public getWarningDistance(): number;
getWarningDistance(): number;
/**
* Sets the warning distance that causes the screen to be tinted red when the player is within the specified number of blocks from the border.
*/
public setWarningDistance(distance: number): void;
setWarningDistance(distance: number): void;
/**
* Check if the specified location is inside this border.
*/
public isInside(location: org.bukkit.Location): boolean;
isInside(location: org.bukkit.Location): boolean;
}
}
}

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class WorldCreator {
// @ts-ignore
class WorldCreator {
/**
* Creates an empty WorldCreationOptions for the given world name
*/

View File

@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
class WorldType {
// @ts-ignore
class WorldType {
public static NORMAL: org.bukkit.WorldType;
public static FLAT: org.bukkit.WorldType;
public static VERSION_1_1: org.bukkit.WorldType;

View File

@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace advancement {
class Advancement {
// @ts-ignore
interface Advancement extends org.bukkit.Keyed {
/**
* Get all the criteria present in this advancement.
*/
public getCriteria(): any[] /*java.util.Collection*/;
getCriteria(): any[] /*java.util.Collection*/;
}
}
}

View File

@ -1,35 +1,36 @@
declare namespace org {
namespace bukkit {
namespace advancement {
class AdvancementProgress {
// @ts-ignore
interface AdvancementProgress {
/**
* The advancement this progress is concerning.
*/
public getAdvancement(): org.bukkit.advancement.Advancement;
getAdvancement(): org.bukkit.advancement.Advancement;
/**
* Check if all criteria for this advancement have been met.
*/
public isDone(): boolean;
isDone(): boolean;
/**
* Mark the specified criteria as awarded at the current time.
*/
public awardCriteria(criteria: string): boolean;
awardCriteria(criteria: string): boolean;
/**
* Mark the specified criteria as uncompleted.
*/
public revokeCriteria(criteria: string): boolean;
revokeCriteria(criteria: string): boolean;
/**
* Get the date the specified criteria was awarded.
*/
public getDateAwarded(criteria: string): any /*java.util.Date*/;
getDateAwarded(criteria: string): any /*java.util.Date*/;
/**
* Get the criteria which have not been awarded.
*/
public getRemainingCriteria(): any[] /*java.util.Collection*/;
getRemainingCriteria(): any[] /*java.util.Collection*/;
/**
* Gets the criteria which have been awarded.
*/
public getAwardedCriteria(): any[] /*java.util.Collection*/;
getAwardedCriteria(): any[] /*java.util.Collection*/;
}
}
}

View File

@ -1,12 +1,13 @@
declare namespace org {
namespace bukkit {
namespace attribute {
class Attributable {
// @ts-ignore
interface Attributable {
/**
* Gets the specified attribute instance from the object. This instance will
* be backed directly to the object and any changes will be visible at once.
*/
public getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance;
getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace attribute {
class Attribute {
// @ts-ignore
class Attribute {
public static GENERIC_MAX_HEALTH: org.bukkit.attribute.Attribute;
public static GENERIC_FOLLOW_RANGE: org.bukkit.attribute.Attribute;
public static GENERIC_KNOCKBACK_RESISTANCE: org.bukkit.attribute.Attribute;

View File

@ -1,40 +1,41 @@
declare namespace org {
namespace bukkit {
namespace attribute {
class AttributeInstance {
// @ts-ignore
interface AttributeInstance {
/**
* The attribute pertaining to this instance.
*/
public getAttribute(): org.bukkit.attribute.Attribute;
getAttribute(): org.bukkit.attribute.Attribute;
/**
* Base value of this instance before modifiers are applied.
*/
public getBaseValue(): number;
getBaseValue(): number;
/**
* Set the base value of this instance.
*/
public setBaseValue(value: number): void;
setBaseValue(value: number): void;
/**
* Get all modifiers present on this instance.
*/
public getModifiers(): any[] /*java.util.Collection*/;
getModifiers(): any[] /*java.util.Collection*/;
/**
* Add a modifier to this instance.
*/
public addModifier(modifier: org.bukkit.attribute.AttributeModifier): void;
addModifier(modifier: org.bukkit.attribute.AttributeModifier): void;
/**
* Remove a modifier from this instance.
*/
public removeModifier(modifier: org.bukkit.attribute.AttributeModifier): void;
removeModifier(modifier: org.bukkit.attribute.AttributeModifier): void;
/**
* Get the value of this instance after all associated modifiers have been
* applied.
*/
public getValue(): number;
getValue(): number;
/**
* Gets the default value of the Attribute attached to this instance.
*/
public getDefaultValue(): number;
getDefaultValue(): number;
}
}
}

View File

@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace attribute {
namespace AttributeModifier {
class Operation {
// @ts-ignore
class Operation {
public static ADD_NUMBER: org.bukkit.attribute.AttributeModifier.Operation;
public static ADD_SCALAR: org.bukkit.attribute.AttributeModifier.Operation;
public static MULTIPLY_SCALAR_1: org.bukkit.attribute.AttributeModifier.Operation;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace attribute {
class AttributeModifier {
// @ts-ignore
class AttributeModifier implements org.bukkit.configuration.serialization.ConfigurationSerializable {
constructor(name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation)
constructor(uuid: any, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation)
constructor(uuid: any, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation, slot: org.bukkit.inventory.EquipmentSlot)

View File

@ -1,47 +1,48 @@
declare namespace org {
namespace bukkit {
namespace block {
class Banner {
// @ts-ignore
interface Banner extends org.bukkit.block.TileState {
/**
* Returns the base color for this banner
*/
public getBaseColor(): org.bukkit.DyeColor;
getBaseColor(): org.bukkit.DyeColor;
/**
* Sets the base color for this banner.
* <b>Only valid for shield pseudo banners, otherwise base depends on block
* type</b>
*/
public setBaseColor(color: org.bukkit.DyeColor): void;
setBaseColor(color: org.bukkit.DyeColor): void;
/**
* Returns a list of patterns on this banner
*/
public getPatterns(): any[] /*java.util.List*/;
getPatterns(): any[] /*java.util.List*/;
/**
* Sets the patterns used on this banner
*/
public setPatterns(patterns: any[] /*java.util.List*/): void;
setPatterns(patterns: any[] /*java.util.List*/): void;
/**
* Adds a new pattern on top of the existing
* patterns
*/
public addPattern(pattern: org.bukkit.block.banner.Pattern): void;
addPattern(pattern: org.bukkit.block.banner.Pattern): void;
/**
* Returns the pattern at the specified index
*/
public getPattern(i: number): org.bukkit.block.banner.Pattern;
getPattern(i: number): org.bukkit.block.banner.Pattern;
/**
* Removes the pattern at the specified index
*/
public removePattern(i: number): org.bukkit.block.banner.Pattern;
removePattern(i: number): org.bukkit.block.banner.Pattern;
/**
* Sets the pattern at the specified index
*/
public setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void;
setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void;
/**
* Returns the number of patterns on this
* banner
*/
public numberOfPatterns(): number;
numberOfPatterns(): number;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Barrel {
// @ts-ignore
interface Barrel extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
}
}
}

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;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Bed {
// @ts-ignore
interface Bed extends org.bukkit.block.TileState, org.bukkit.material.Colorable {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Bell {
// @ts-ignore
interface Bell extends org.bukkit.block.TileState {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Biome {
// @ts-ignore
class Biome implements org.bukkit.Keyed {
public static OCEAN: org.bukkit.block.Biome;
public static PLAINS: org.bukkit.block.Biome;
public static DESERT: org.bukkit.block.Biome;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class BlastFurnace {
// @ts-ignore
interface BlastFurnace extends org.bukkit.block.Furnace {
}
}
}

View File

@ -1,25 +1,26 @@
declare namespace org {
namespace bukkit {
namespace block {
class Block {
// @ts-ignore
interface Block extends org.bukkit.metadata.Metadatable {
/**
* Gets the metadata for this block
*/
public getData(): number;
getData(): number;
/**
* Gets the complete block data for this block
*/
public getBlockData(): org.bukkit.block.data.BlockData;
getBlockData(): org.bukkit.block.data.BlockData;
/**
* Gets the block at the given offsets
*/
public getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block;
getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block;
/**
* Gets the block at the given face
* <p>
* This method is equal to getRelative(face, 1)
*/
public getRelative(face: org.bukkit.block.BlockFace): org.bukkit.block.Block;
getRelative(face: org.bukkit.block.BlockFace): org.bukkit.block.Block;
/**
* Gets the block at the given distance of the given face
* <p>
@ -31,63 +32,63 @@ declare namespace org {
* shower.setType(Material.WATER);
* </pre>
*/
public getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block;
getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block;
/**
* Gets the type of this block
*/
public getType(): org.bukkit.Material;
getType(): org.bukkit.Material;
/**
* Gets the light level between 0-15
*/
public getLightLevel(): number;
getLightLevel(): number;
/**
* Get the amount of light at this block from the sky.
* <p>
* Any light given from other sources (such as blocks like torches) will
* be ignored.
*/
public getLightFromSky(): number;
getLightFromSky(): number;
/**
* Get the amount of light at this block from nearby blocks.
* <p>
* Any light given from other sources (such as the sun) will be ignored.
*/
public getLightFromBlocks(): number;
getLightFromBlocks(): number;
/**
* Gets the world which contains this Block
*/
public getWorld(): org.bukkit.World;
getWorld(): org.bukkit.World;
/**
* Gets the x-coordinate of this block
*/
public getX(): number;
getX(): number;
/**
* Gets the y-coordinate of this block
*/
public getY(): number;
getY(): number;
/**
* Gets the z-coordinate of this block
*/
public getZ(): number;
getZ(): number;
/**
* Gets the Location of the block
*/
public getLocation(): org.bukkit.Location;
getLocation(): org.bukkit.Location;
/**
* Stores the location of the block in the provided Location object.
* <p>
* If the provided Location is null this method does nothing and returns
* null.
*/
public getLocation(loc: org.bukkit.Location): org.bukkit.Location;
getLocation(loc: org.bukkit.Location): org.bukkit.Location;
/**
* Gets the chunk which contains this block
*/
public getChunk(): org.bukkit.Chunk;
getChunk(): org.bukkit.Chunk;
/**
* Sets the complete data for this block
*/
public setBlockData(data: org.bukkit.block.data.BlockData): void;
setBlockData(data: org.bukkit.block.data.BlockData): void;
/**
* Sets the complete data for this block
* <br>
@ -103,11 +104,11 @@ declare namespace org {
* triggered at a later point. If this occurs, the resulting behavior is
* undefined.
*/
public setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void;
setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void;
/**
* Sets the type of this block
*/
public setType(type: org.bukkit.Material): void;
setType(type: org.bukkit.Material): void;
/**
* Sets the type of this block
* <br>
@ -123,7 +124,7 @@ declare namespace org {
* triggered at a later point. If this occurs, the resulting behavior is
* undefined.
*/
public setType(type: org.bukkit.Material, applyPhysics: boolean): void;
setType(type: org.bukkit.Material, applyPhysics: boolean): void;
/**
* Gets the face relation of this block compared to the given block.
* <p>
@ -136,7 +137,7 @@ declare namespace org {
* <br>
* If the given block is not connected to this block, null may be returned
*/
public getFace(block: org.bukkit.block.Block): org.bukkit.block.BlockFace;
getFace(block: org.bukkit.block.Block): org.bukkit.block.BlockFace;
/**
* Captures the current state of this block. You may then cast that state
* into any accepted type, such as Furnace or Sign.
@ -144,86 +145,86 @@ declare namespace org {
* The returned object will never be updated, and you are not guaranteed
* that (for example) a sign is still a sign after you capture its state.
*/
public getState(): org.bukkit.block.BlockState;
getState(): org.bukkit.block.BlockState;
/**
* Returns the biome that this block resides in
*/
public getBiome(): org.bukkit.block.Biome;
getBiome(): org.bukkit.block.Biome;
/**
* Sets the biome that this block resides in
*/
public setBiome(bio: org.bukkit.block.Biome): void;
setBiome(bio: org.bukkit.block.Biome): void;
/**
* Returns true if the block is being powered by Redstone.
*/
public isBlockPowered(): boolean;
isBlockPowered(): boolean;
/**
* Returns true if the block is being indirectly powered by Redstone.
*/
public isBlockIndirectlyPowered(): boolean;
isBlockIndirectlyPowered(): boolean;
/**
* Returns true if the block face is being powered by Redstone.
*/
public isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean;
isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean;
/**
* Returns true if the block face is being indirectly powered by Redstone.
*/
public isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean;
isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean;
/**
* Returns the redstone power being provided to this block face
*/
public getBlockPower(face: org.bukkit.block.BlockFace): number;
getBlockPower(face: org.bukkit.block.BlockFace): number;
/**
* Returns the redstone power being provided to this block
*/
public getBlockPower(): number;
getBlockPower(): number;
/**
* Checks if this block is empty.
* <p>
* A block is considered empty when {@link #getType()} returns {@link
* Material#AIR}.
*/
public isEmpty(): boolean;
isEmpty(): boolean;
/**
* Checks if this block is liquid.
* <p>
* A block is considered liquid when {@link #getType()} returns {@link
* Material#WATER} or {@link Material#LAVA}.
*/
public isLiquid(): boolean;
isLiquid(): boolean;
/**
* Gets the temperature of this block.
* <p>
* If the raw biome temperature without adjusting for height effects is
* required then please use {@link World#getTemperature(int, int)}.
*/
public getTemperature(): number;
getTemperature(): number;
/**
* Gets the humidity of the biome of this block
*/
public getHumidity(): number;
getHumidity(): number;
/**
* Returns the reaction of the block when moved by a piston
*/
public getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction;
getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction;
/**
* Breaks the block and spawns items as if a player had digged it
*/
public breakNaturally(): boolean;
breakNaturally(): boolean;
/**
* Breaks the block and spawns items as if a player had digged it with a
* specific tool
*/
public breakNaturally(tool: org.bukkit.inventory.ItemStack): boolean;
breakNaturally(tool: org.bukkit.inventory.ItemStack): boolean;
/**
* Returns a list of items which would drop by destroying this block
*/
public getDrops(): any[] /*java.util.Collection*/;
getDrops(): any[] /*java.util.Collection*/;
/**
* Returns a list of items which would drop by destroying this block with
* a specific tool
*/
public getDrops(tool: org.bukkit.inventory.ItemStack): any[] /*java.util.Collection*/;
getDrops(tool: org.bukkit.inventory.ItemStack): any[] /*java.util.Collection*/;
/**
* Checks if this block is passable.
* <p>
@ -234,12 +235,12 @@ declare namespace org {
* fence gates, trap doors, etc. are not because they still have parts that
* can be collided with.
*/
public isPassable(): boolean;
isPassable(): boolean;
/**
* Performs a ray trace that checks for collision with this specific block
* in its current state using its precise collision shape.
*/
public rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
/**
* Gets the approximate bounding box for this block.
* <p>
@ -250,7 +251,7 @@ declare namespace org {
* This method will return an empty bounding box if the geometric shape of
* the block is empty (such as air blocks).
*/
public getBoundingBox(): org.bukkit.util.BoundingBox;
getBoundingBox(): org.bukkit.util.BoundingBox;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class BlockFace {
// @ts-ignore
class BlockFace {
public static NORTH: org.bukkit.block.BlockFace;
public static EAST: org.bukkit.block.BlockFace;
public static SOUTH: org.bukkit.block.BlockFace;

View File

@ -1,49 +1,50 @@
declare namespace org {
namespace bukkit {
namespace block {
class BlockState {
// @ts-ignore
interface BlockState extends org.bukkit.metadata.Metadatable {
/**
* Gets the block represented by this block state.
*/
public getBlock(): org.bukkit.block.Block;
getBlock(): org.bukkit.block.Block;
/**
* Gets the metadata for this block state.
*/
public getData(): org.bukkit.material.MaterialData;
getData(): org.bukkit.material.MaterialData;
/**
* Gets the data for this block state.
*/
public getBlockData(): org.bukkit.block.data.BlockData;
getBlockData(): org.bukkit.block.data.BlockData;
/**
* Gets the type of this block state.
*/
public getType(): org.bukkit.Material;
getType(): org.bukkit.Material;
/**
* Gets the current light level of the block represented by this block state.
*/
public getLightLevel(): number;
getLightLevel(): number;
/**
* Gets the world which contains the block represented by this block state.
*/
public getWorld(): org.bukkit.World;
getWorld(): org.bukkit.World;
/**
* Gets the x-coordinate of this block state.
*/
public getX(): number;
getX(): number;
/**
* Gets the y-coordinate of this block state.
*/
public getY(): number;
getY(): number;
/**
* Gets the z-coordinate of this block state.
*/
public getZ(): number;
getZ(): number;
/**
* Gets the location of this block state.
* <p>
* If this block state is not placed the location's world will be null!
*/
public getLocation(): org.bukkit.Location;
getLocation(): org.bukkit.Location;
/**
* Stores the location of this block state in the provided Location object.
* <p>
@ -52,23 +53,23 @@ declare namespace org {
* <p>
* If this block state is not placed the location's world will be null!
*/
public getLocation(loc: org.bukkit.Location): org.bukkit.Location;
getLocation(loc: org.bukkit.Location): org.bukkit.Location;
/**
* Gets the chunk which contains the block represented by this block state.
*/
public getChunk(): org.bukkit.Chunk;
getChunk(): org.bukkit.Chunk;
/**
* Sets the metadata for this block state.
*/
public setData(data: org.bukkit.material.MaterialData): void;
setData(data: org.bukkit.material.MaterialData): void;
/**
* Sets the data for this block state.
*/
public setBlockData(data: org.bukkit.block.data.BlockData): void;
setBlockData(data: org.bukkit.block.data.BlockData): void;
/**
* Sets the type of this block state.
*/
public setType(type: org.bukkit.Material): void;
setType(type: org.bukkit.Material): void;
/**
* Attempts to update the block represented by this state, setting it to
* the new values as defined by this state.
@ -78,7 +79,7 @@ declare namespace org {
* type as it was when this state was taken. It will return false in this
* eventuality.
*/
public update(): boolean;
update(): boolean;
/**
* Attempts to update the block represented by this state, setting it to
* the new values as defined by this state.
@ -86,7 +87,7 @@ declare namespace org {
* This has the same effect as calling update(force, true). That is to
* say, this will trigger a physics update to surrounding blocks.
*/
public update(force: boolean): boolean;
update(force: boolean): boolean;
/**
* Attempts to update the block represented by this state, setting it to
* the new values as defined by this state.
@ -103,16 +104,16 @@ declare namespace org {
* If applyPhysics is true, it will trigger a physics update on
* surrounding blocks which could cause them to update or disappear.
*/
public update(force: boolean, applyPhysics: boolean): boolean;
public getRawData(): number;
public setRawData(data: number): void;
update(force: boolean, applyPhysics: boolean): boolean;
getRawData(): number;
setRawData(data: number): void;
/**
* Returns whether this state is placed in the world.
* <p>
* Some methods will not work if the block state isn't
* placed in the world.
*/
public isPlaced(): boolean;
isPlaced(): boolean;
}
}
}

View File

@ -1,25 +1,26 @@
declare namespace org {
namespace bukkit {
namespace block {
class BrewingStand {
// @ts-ignore
interface BrewingStand extends org.bukkit.block.Container {
/**
* How much time is left in the brewing cycle.
*/
public getBrewingTime(): number;
getBrewingTime(): number;
/**
* Set the time left before brewing completes.
*/
public setBrewingTime(brewTime: number): void;
setBrewingTime(brewTime: number): void;
/**
* Get the level of current fuel for brewing.
*/
public getFuelLevel(): number;
getFuelLevel(): number;
/**
* Set the level of current fuel for brewing.
*/
public setFuelLevel(level: number): void;
public getInventory(): org.bukkit.inventory.BrewerInventory;
public getSnapshotInventory(): org.bukkit.inventory.BrewerInventory;
setFuelLevel(level: number): void;
getInventory(): org.bukkit.inventory.BrewerInventory;
getSnapshotInventory(): org.bukkit.inventory.BrewerInventory;
}
}
}

View File

@ -1,30 +1,31 @@
declare namespace org {
namespace bukkit {
namespace block {
class Campfire {
public getSize(): number;
public getItem(index: number): org.bukkit.inventory.ItemStack;
public setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
// @ts-ignore
interface Campfire extends org.bukkit.block.TileState {
getSize(): number;
getItem(index: number): org.bukkit.inventory.ItemStack;
setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
/**
* Get cook time.
* This is the amount of time the item has been cooking for.
*/
public getCookTime(index: number): number;
getCookTime(index: number): number;
/**
* Set cook time.
* This is the amount of time the item has been cooking for.
*/
public setCookTime(index: number, cookTime: number): void;
setCookTime(index: number, cookTime: number): void;
/**
* Get cook time total.
* This is the amount of time the item is required to cook for.
*/
public getCookTimeTotal(index: number): number;
getCookTimeTotal(index: number): number;
/**
* Set cook time.
* This is the amount of time the item is required to cook for.
*/
public setCookTimeTotal(index: number, cookTimeTotal: number): void;
setCookTimeTotal(index: number, cookTimeTotal: number): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Chest {
// @ts-ignore
interface Chest extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
/**
* Gets the inventory of the chest block represented by this block state.
* <p>
@ -14,7 +15,7 @@ declare namespace org {
* If this block state is not placed this will return the captured
* inventory snapshot instead.
*/
public getBlockInventory(): org.bukkit.inventory.Inventory;
getBlockInventory(): org.bukkit.inventory.Inventory;
}
}
}

View File

@ -1,31 +1,32 @@
declare namespace org {
namespace bukkit {
namespace block {
class CommandBlock {
// @ts-ignore
interface CommandBlock extends org.bukkit.block.TileState {
/**
* Gets the command that this CommandBlock will run when powered.
* This will never return null. If the CommandBlock does not have a
* command, an empty String will be returned instead.
*/
public getCommand(): string;
getCommand(): string;
/**
* Sets the command that this CommandBlock will run when powered.
* Setting the command to null is the same as setting it to an empty
* String.
*/
public setCommand(command: string): void;
setCommand(command: string): void;
/**
* Gets the name of this CommandBlock. The name is used with commands
* that this CommandBlock executes. This name will never be null, and
* by default is "@".
*/
public getName(): string;
getName(): string;
/**
* Sets the name of this CommandBlock. The name is used with commands
* that this CommandBlock executes. Setting the name to null is the
* same as setting it to "@".
*/
public setName(name: string): void;
setName(name: string): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Comparator {
// @ts-ignore
interface Comparator extends org.bukkit.block.TileState {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Conduit {
// @ts-ignore
interface Conduit extends org.bukkit.block.TileState {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Container {
// @ts-ignore
interface Container extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.block.Lockable, org.bukkit.Nameable {
/**
* Gets the inventory of the block represented by this block state.
* <p>
@ -11,7 +12,7 @@ declare namespace org {
* If this block state is not placed this will return the captured inventory
* snapshot instead.
*/
public getInventory(): org.bukkit.inventory.Inventory;
getInventory(): org.bukkit.inventory.Inventory;
/**
* Gets the captured inventory snapshot of this container.
* <p>
@ -20,7 +21,7 @@ declare namespace org {
* this block state up until {@link #update(boolean, boolean)} has been
* called.
*/
public getSnapshotInventory(): org.bukkit.inventory.Inventory;
getSnapshotInventory(): org.bukkit.inventory.Inventory;
}
}
}

View File

@ -1,36 +1,37 @@
declare namespace org {
namespace bukkit {
namespace block {
class CreatureSpawner {
// @ts-ignore
interface CreatureSpawner extends org.bukkit.block.TileState {
/**
* Get the spawner's creature type.
*/
public getSpawnedType(): org.bukkit.entity.EntityType;
getSpawnedType(): org.bukkit.entity.EntityType;
/**
* Set the spawner's creature type.
*/
public setSpawnedType(creatureType: org.bukkit.entity.EntityType): void;
setSpawnedType(creatureType: org.bukkit.entity.EntityType): void;
/**
* Set the spawner mob type.
*/
public setCreatureTypeByName(creatureType: string): void;
setCreatureTypeByName(creatureType: string): void;
/**
* Get the spawner's creature type.
*/
public getCreatureTypeName(): string;
getCreatureTypeName(): string;
/**
* Get the spawner's delay.
* <br>
* This is the delay, in ticks, until the spawner will spawn its next mob.
*/
public getDelay(): number;
getDelay(): number;
/**
* Set the spawner's delay.
* <br>
* If set to -1, the spawn delay will be reset to a random value between
* {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}.
*/
public setDelay(delay: number): void;
setDelay(delay: number): void;
/**
* The minimum spawn delay amount (in ticks).
* <br>
@ -39,11 +40,11 @@ declare namespace org {
* and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}.
* Default value is 200 ticks.
*/
public getMinSpawnDelay(): number;
getMinSpawnDelay(): number;
/**
* Set the minimum spawn delay amount (in ticks).
*/
public setMinSpawnDelay(delay: number): void;
setMinSpawnDelay(delay: number): void;
/**
* The maximum spawn delay amount (in ticks).
* <br>
@ -55,24 +56,24 @@ declare namespace org {
* {@link #getMaxSpawnDelay()}.
* Default value is 800 ticks.
*/
public getMaxSpawnDelay(): number;
getMaxSpawnDelay(): number;
/**
* Set the maximum spawn delay amount (in ticks).
* <br>
* This value <b>must</b> be greater than 0, as well as greater than or
* equal to {@link #getMinSpawnDelay()}
*/
public setMaxSpawnDelay(delay: number): void;
setMaxSpawnDelay(delay: number): void;
/**
* Get how many mobs attempt to spawn.
* <br>
* Default value is 4.
*/
public getSpawnCount(): number;
getSpawnCount(): number;
/**
* Set how many mobs attempt to spawn.
*/
public setSpawnCount(spawnCount: number): void;
setSpawnCount(spawnCount: number): void;
/**
* Set the new maximum amount of similar entities that are allowed to be
* within spawning range of this spawner.
@ -82,14 +83,14 @@ declare namespace org {
* <br>
* Default value is 16.
*/
public getMaxNearbyEntities(): number;
getMaxNearbyEntities(): number;
/**
* Set the maximum number of similar entities that are allowed to be within
* spawning range of this spawner.
* <br>
* Similar entities are entities that are of the same {@link EntityType}
*/
public setMaxNearbyEntities(maxNearbyEntities: number): void;
setMaxNearbyEntities(maxNearbyEntities: number): void;
/**
* Get the maximum distance(squared) a player can be in order for this
* spawner to be active.
@ -99,7 +100,7 @@ declare namespace org {
* <br>
* Default value is 16.
*/
public getRequiredPlayerRange(): number;
getRequiredPlayerRange(): number;
/**
* Set the maximum distance (squared) a player can be in order for this
* spawner to be active.
@ -107,7 +108,7 @@ declare namespace org {
* Setting this value to less than or equal to 0 will make this spawner
* always active (given that there are players online).
*/
public setRequiredPlayerRange(requiredPlayerRange: number): void;
setRequiredPlayerRange(requiredPlayerRange: number): void;
/**
* Get the radius around which the spawner will attempt to spawn mobs in.
* <br>
@ -120,12 +121,12 @@ declare namespace org {
* <br>
* Default value is 4.
*/
public getSpawnRange(): number;
getSpawnRange(): number;
/**
* Set the new spawn range.
* <br>
*/
public setSpawnRange(spawnRange: number): void;
setSpawnRange(spawnRange: number): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class DaylightDetector {
// @ts-ignore
interface DaylightDetector extends org.bukkit.block.TileState {
}
}
}

View File

@ -1,21 +1,22 @@
declare namespace org {
namespace bukkit {
namespace block {
class Dispenser {
// @ts-ignore
interface Dispenser extends org.bukkit.block.Container, org.bukkit.Nameable, org.bukkit.loot.Lootable {
/**
* Gets the BlockProjectileSource object for the dispenser.
* <p>
* If the block represented by this state is no longer a dispenser, this
* will return null.
*/
public getBlockProjectileSource(): org.bukkit.projectiles.BlockProjectileSource;
getBlockProjectileSource(): org.bukkit.projectiles.BlockProjectileSource;
/**
* Attempts to dispense the contents of the dispenser.
* <p>
* If the block represented by this state is no longer a dispenser, this
* will return false.
*/
public dispense(): boolean;
dispense(): boolean;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class DoubleChest {
// @ts-ignore
class DoubleChest implements org.bukkit.inventory.InventoryHolder {
constructor(chest: org.bukkit.inventory.DoubleChestInventory)
public getInventory(): org.bukkit.inventory.Inventory;
public getLeftSide(): org.bukkit.inventory.InventoryHolder;

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Dropper {
// @ts-ignore
interface Dropper extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
/**
* Tries to drop a randomly selected item from the dropper's inventory,
* following the normal behavior of a dropper.
@ -20,7 +21,7 @@ declare namespace org {
* If the block represented by this state is no longer a dropper, this will
* do nothing.
*/
public drop(): void;
drop(): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class EnchantingTable {
// @ts-ignore
interface EnchantingTable extends org.bukkit.block.TileState, org.bukkit.Nameable {
}
}
}

View File

@ -1,45 +1,46 @@
declare namespace org {
namespace bukkit {
namespace block {
class EndGateway {
// @ts-ignore
interface EndGateway extends org.bukkit.block.TileState {
/**
* Gets the location that entities are teleported to when
* entering the gateway portal.
* <p>
* If this block state is not placed the location's world will be null.
*/
public getExitLocation(): org.bukkit.Location;
getExitLocation(): org.bukkit.Location;
/**
* Sets the exit location that entities are teleported to when
* they enter the gateway portal.
* <p>
* If this block state is not placed the location's world has to be null.
*/
public setExitLocation(location: org.bukkit.Location): void;
setExitLocation(location: org.bukkit.Location): void;
/**
* Gets whether this gateway will teleport entities directly to
* the exit location instead of finding a nearby location.
*/
public isExactTeleport(): boolean;
isExactTeleport(): boolean;
/**
* Sets whether this gateway will teleport entities directly to
* the exit location instead of finding a nearby location.
*/
public setExactTeleport(exact: boolean): void;
setExactTeleport(exact: boolean): void;
/**
* Gets the age in ticks of the gateway.
* <br>
* If the age is less than 200 ticks a magenta beam will be emitted, whilst
* if it is a multiple of 2400 ticks a purple beam will be emitted.
*/
public getAge(): number;
getAge(): number;
/**
* Sets the age in ticks of the gateway.
* <br>
* If the age is less than 200 ticks a magenta beam will be emitted, whilst
* if it is a multiple of 2400 ticks a purple beam will be emitted.
*/
public setAge(age: number): void;
setAge(age: number): void;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class EnderChest {
// @ts-ignore
interface EnderChest extends org.bukkit.block.TileState {
}
}
}

View File

@ -1,17 +1,18 @@
declare namespace org {
namespace bukkit {
namespace block {
class FlowerPot {
// @ts-ignore
interface FlowerPot extends org.bukkit.block.BlockState {
/**
* Gets the item present in this flower pot.
*/
public getContents(): org.bukkit.material.MaterialData;
getContents(): org.bukkit.material.MaterialData;
/**
* Sets the item present in this flower pot.
* NOTE: The Vanilla Minecraft client will currently not refresh this until
* a block update is triggered.
*/
public setContents(item: org.bukkit.material.MaterialData): void;
setContents(item: org.bukkit.material.MaterialData): void;
}
}
}

View File

@ -1,39 +1,40 @@
declare namespace org {
namespace bukkit {
namespace block {
class Furnace {
// @ts-ignore
interface Furnace extends org.bukkit.block.Container {
/**
* Get burn time.
*/
public getBurnTime(): number;
getBurnTime(): number;
/**
* Set burn time.
* A burn time greater than 0 will cause this block to be lit, whilst a time
* less than 0 will extinguish it.
*/
public setBurnTime(burnTime: number): void;
setBurnTime(burnTime: number): void;
/**
* Get cook time.
* This is the amount of time the item has been cooking for.
*/
public getCookTime(): number;
getCookTime(): number;
/**
* Set cook time.
* This is the amount of time the item has been cooking for.
*/
public setCookTime(cookTime: number): void;
setCookTime(cookTime: number): void;
/**
* Get cook time total.
* This is the amount of time the item is required to cook for.
*/
public getCookTimeTotal(): number;
getCookTimeTotal(): number;
/**
* Set cook time.
* This is the amount of time the item is required to cook for.
*/
public setCookTimeTotal(cookTimeTotal: number): void;
public getInventory(): org.bukkit.inventory.FurnaceInventory;
public getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory;
setCookTimeTotal(cookTimeTotal: number): void;
getInventory(): org.bukkit.inventory.FurnaceInventory;
getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory;
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Hopper {
// @ts-ignore
interface Hopper extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
}
}
}

View File

@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
class Jigsaw {
// @ts-ignore
interface Jigsaw extends org.bukkit.block.TileState {
}
}
}

Some files were not shown because too many files have changed in this diff Show More