From c153f9babbe3ea382bbad1be8783dad92cf94b03 Mon Sep 17 00:00:00 2001
From: MiaoWoo
* 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.
*
* 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.
*
* Saving the ban entry of an unbanned player will cause the player to be
* banned once again.
*/
- public save(): void;
+ save(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts b/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts
index e60db8eb..8d508846 100644
--- a/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts
@@ -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[];
diff --git a/packages/bukkit/src/typings/org.bukkit.BanList.ts b/packages/bukkit/src/typings/org.bukkit.BanList.ts
index f39ffd03..bedd04f5 100644
--- a/packages/bukkit/src/typings/org.bukkit.BanList.ts
+++ b/packages/bukkit/src/typings/org.bukkit.BanList.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts b/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts
index 9bf0fed0..0c8f824e 100644
--- a/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts
+++ b/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.Bukkit.ts b/packages/bukkit/src/typings/org.bukkit.Bukkit.ts
index 48666d40..b4dbe3c9 100644
--- a/packages/bukkit/src/typings/org.bukkit.Bukkit.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Bukkit.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
- class Bukkit {
+ // @ts-ignore
+ class Bukkit {
/**
* Gets the current {@link Server} singleton
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.ChatColor.ts b/packages/bukkit/src/typings/org.bukkit.ChatColor.ts
index f60d98d6..3237a2ef 100644
--- a/packages/bukkit/src/typings/org.bukkit.ChatColor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.ChatColor.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Chunk.ts b/packages/bukkit/src/typings/org.bukkit.Chunk.ts
index 3a76b589..e6168ec6 100644
--- a/packages/bukkit/src/typings/org.bukkit.Chunk.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Chunk.ts
@@ -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.
*
* 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.
*
* 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.
*
@@ -89,7 +90,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
*
* 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 *
* 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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts b/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts index 3b0bca8d..cd57e45c 100644 --- a/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts @@ -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. diff --git a/packages/bukkit/src/typings/org.bukkit.Particle.ts b/packages/bukkit/src/typings/org.bukkit.Particle.ts index fea219d7..5e0cd6e9 100644 --- a/packages/bukkit/src/typings/org.bukkit.Particle.ts +++ b/packages/bukkit/src/typings/org.bukkit.Particle.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.PortalType.ts b/packages/bukkit/src/typings/org.bukkit.PortalType.ts index 4c4e3828..e5907a90 100644 --- a/packages/bukkit/src/typings/org.bukkit.PortalType.ts +++ b/packages/bukkit/src/typings/org.bukkit.PortalType.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts b/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts index f6f160c7..511df1dc 100644 --- a/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts +++ b/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.Registry.ts b/packages/bukkit/src/typings/org.bukkit.Registry.ts index 272a7628..d509418d 100644 --- a/packages/bukkit/src/typings/org.bukkit.Registry.ts +++ b/packages/bukkit/src/typings/org.bukkit.Registry.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Rotation.ts b/packages/bukkit/src/typings/org.bukkit.Rotation.ts index 7e898ea0..dfa46e1d 100644 --- a/packages/bukkit/src/typings/org.bukkit.Rotation.ts +++ b/packages/bukkit/src/typings/org.bukkit.Rotation.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts b/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts index 908b04b3..2635dae5 100644 --- a/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts +++ b/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.Server.ts b/packages/bukkit/src/typings/org.bukkit.Server.ts index f148029c..20ec6d28 100644 --- a/packages/bukkit/src/typings/org.bukkit.Server.ts +++ b/packages/bukkit/src/typings/org.bukkit.Server.ts @@ -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. *
* 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. *
* 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. *
@@ -130,7 +131,7 @@ declare namespace org { *
* Minecraft default: 400. */ - public getTicksPerAnimalSpawns(): number; + getTicksPerAnimalSpawns(): number; /** * Gets the default ticks per monster spawns value. *
@@ -148,17 +149,17 @@ declare namespace org { *
* Minecraft default: 1. */ - public getTicksPerMonsterSpawns(): number; + getTicksPerMonsterSpawns(): number; /** * Gets a player object by the given username. *
* 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
* 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 does not
* preclude 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.
*
* 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.
*
* 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.
*
* 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.
*
@@ -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.
*/
- 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.
*
@@ -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.
*
@@ -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.
*/
- 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
*
* 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
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
@@ -162,7 +163,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
*
@@ -171,7 +172,7 @@ declare namespace org {
* but each chunk can have multiple plugin tickets.
*
@@ -544,7 +545,7 @@ declare namespace org {
*
* e.g. bossbars created using the bossbar command
*/
- public getBossBars(): any;
+ getBossBars(): any;
/**
* Gets the {@link KeyedBossBar} specified by this key.
*
@@ -556,7 +557,7 @@ declare namespace org {
*
* 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.
*
@@ -568,35 +569,35 @@ declare namespace org {
*
* 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 material
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.
*
@@ -627,11 +628,11 @@ declare namespace org {
*
* 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.
*
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.SkullType.ts b/packages/bukkit/src/typings/org.bukkit.SkullType.ts
index 495048e1..1746bb99 100644
--- a/packages/bukkit/src/typings/org.bukkit.SkullType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.SkullType.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Sound.ts b/packages/bukkit/src/typings/org.bukkit.Sound.ts
index 738eb6a9..7bc49fa7 100644
--- a/packages/bukkit/src/typings/org.bukkit.Sound.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Sound.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts b/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts
index 29510402..a94a3ac3 100644
--- a/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts b/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts
index 55ee8bea..5247806a 100644
--- a/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Statistic.ts b/packages/bukkit/src/typings/org.bukkit.Statistic.ts
index af4d7ac4..8d65357d 100644
--- a/packages/bukkit/src/typings/org.bukkit.Statistic.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Statistic.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.StructureType.ts b/packages/bukkit/src/typings/org.bukkit.StructureType.ts
index d4f7720f..837fc9b8 100644
--- a/packages/bukkit/src/typings/org.bukkit.StructureType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.StructureType.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Tag.ts b/packages/bukkit/src/typings/org.bukkit.Tag.ts
index 539eee64..636c2287 100644
--- a/packages/bukkit/src/typings/org.bukkit.Tag.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Tag.ts
@@ -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*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts b/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts
index f9a8256f..d66d5fd4 100644
--- a/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts
+++ b/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.TreeType.ts b/packages/bukkit/src/typings/org.bukkit.TreeType.ts
index 11bf432f..a7d493e1 100644
--- a/packages/bukkit/src/typings/org.bukkit.TreeType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.TreeType.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts b/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts
index 1192daee..41b26b47 100644
--- a/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts
+++ b/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts b/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts
index 8d5286e2..7fd1cbcd 100644
--- a/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts
+++ b/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts
@@ -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 {
*
* 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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.Utility.ts b/packages/bukkit/src/typings/org.bukkit.Utility.ts
index 099a00f4..fe85dd93 100644
--- a/packages/bukkit/src/typings/org.bukkit.Utility.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Utility.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
- class Utility {
+ // @ts-ignore
+ interface Utility {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts b/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts
index db281745..7420791e 100644
--- a/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.Warning.ts b/packages/bukkit/src/typings/org.bukkit.Warning.ts
index e00ec5cd..631537bb 100644
--- a/packages/bukkit/src/typings/org.bukkit.Warning.ts
+++ b/packages/bukkit/src/typings/org.bukkit.Warning.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.WeatherType.ts b/packages/bukkit/src/typings/org.bukkit.WeatherType.ts
index 069bcfe3..30fb9f31 100644
--- a/packages/bukkit/src/typings/org.bukkit.WeatherType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.WeatherType.ts
@@ -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[];
diff --git a/packages/bukkit/src/typings/org.bukkit.World.Environment.ts b/packages/bukkit/src/typings/org.bukkit.World.Environment.ts
index 032fba0c..34c84b1f 100644
--- a/packages/bukkit/src/typings/org.bukkit.World.Environment.ts
+++ b/packages/bukkit/src/typings/org.bukkit.World.Environment.ts
@@ -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;
diff --git a/packages/bukkit/src/typings/org.bukkit.World.ts b/packages/bukkit/src/typings/org.bukkit.World.ts
index 6eca5500..6c2f82a6 100644
--- a/packages/bukkit/src/typings/org.bukkit.World.ts
+++ b/packages/bukkit/src/typings/org.bukkit.World.ts
@@ -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}.
*
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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.
*
* 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.
*
* The relative time is analogous to hours * 1000 */ - public getTime(): number; + getTime(): number; /** * Sets the relative in-game time on the server. *
@@ -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 *
* 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. *
@@ -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. *
* 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. *
* 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. *
* 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 *
@@ -683,7 +684,7 @@ declare namespace org { *
* Minecraft default: 400. */ - public getTicksPerAnimalSpawns(): number; + getTicksPerAnimalSpawns(): number; /** * Sets the world's ticks per animal spawns value *
@@ -706,7 +707,7 @@ declare namespace org { *
* Minecraft default: 400. */ - public setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void; + setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void; /** * Gets the world's ticks per monster spawns value *
@@ -729,7 +730,7 @@ declare namespace org { *
* Minecraft default: 1. */ - public getTicksPerMonsterSpawns(): number; + getTicksPerMonsterSpawns(): number; /** * Sets the world's ticks per monster spawns value *
@@ -752,12 +753,12 @@ declare namespace org { *
* 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 { * Note: 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 { * Note: 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 { * Note: 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 { * Note: 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 *
* 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. *
@@ -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. *
* 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. *
@@ -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 *
* Will return null if rule passed is null */ - public getGameRuleValue(rule: string): string; + getGameRuleValue(rule: string): string; /** * Set the specified gamerule to specified value. *
@@ -851,118 +852,118 @@ declare namespace org { *
* 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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts b/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts index ee108634..fef52694 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts b/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts index dcc282b3..f4751402 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class WorldCreator { + // @ts-ignore + class WorldCreator { /** * Creates an empty WorldCreationOptions for the given world name */ diff --git a/packages/bukkit/src/typings/org.bukkit.WorldType.ts b/packages/bukkit/src/typings/org.bukkit.WorldType.ts index 68cc4461..8062f6b3 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldType.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldType.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts b/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts index e023d735..b588d17b 100644 --- a/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts +++ b/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts @@ -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*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts b/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts index f5aa7014..8352cd2e 100644 --- a/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts +++ b/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts @@ -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*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts b/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts index fa669d69..d9a2ce16 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts b/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts index dd92bcd7..8ba27e5e 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts index 77060f66..e89e1e4e 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts index 61999ee6..98684bed 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts index 2b84cb35..757eaf55 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts @@ -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) diff --git a/packages/bukkit/src/typings/org.bukkit.block.Banner.ts b/packages/bukkit/src/typings/org.bukkit.block.Banner.ts index 93366948..0118ed86 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Banner.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Banner.ts @@ -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. * Only valid for shield pseudo banners, otherwise base depends on block * type */ - 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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts b/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts index f554db78..87410264 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts @@ -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 { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts b/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts index 0280130d..c3dff8c3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts @@ -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. *
* 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 >= 4 for this effect to be active. */ - public setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void; + setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Bed.ts b/packages/bukkit/src/typings/org.bukkit.block.Bed.ts index d203c731..7f394b8a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Bed.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Bed.ts @@ -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 { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Bell.ts b/packages/bukkit/src/typings/org.bukkit.block.Bell.ts index 15847982..32d9bf1e 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Bell.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Bell.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Bell { + // @ts-ignore + interface Bell extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Biome.ts b/packages/bukkit/src/typings/org.bukkit.block.Biome.ts index ac8c63a6..5dc6865a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Biome.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Biome.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts b/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts index ae31a19a..f602ee76 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class BlastFurnace { + // @ts-ignore + interface BlastFurnace extends org.bukkit.block.Furnace { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Block.ts b/packages/bukkit/src/typings/org.bukkit.block.Block.ts index 19f605ff..fa35d456 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Block.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Block.ts @@ -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 *
* 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 *
@@ -31,63 +32,63 @@ declare namespace org { * shower.setType(Material.WATER); * */ - 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. *
* 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. *
* 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. *
* 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
*
@@ -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
*
@@ -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.
*
@@ -136,7 +137,7 @@ declare namespace org {
*
* 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.
*
* A block is considered empty when {@link #getType()} returns {@link * Material#AIR}. */ - public isEmpty(): boolean; + isEmpty(): boolean; /** * Checks if this block is liquid. *
* 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. *
* 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. *
@@ -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. *
@@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts b/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts index b3a4bc61..a478f5b7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts b/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts index c24f6b83..faec95b1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts @@ -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. *
* 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. *
@@ -52,23 +53,23 @@ declare namespace org { *
* 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. *
* Some methods will not work if the block state isn't * placed in the world. */ - public isPlaced(): boolean; + isPlaced(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts b/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts index a5fafb86..51875bde 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts b/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts index c8d47298..d2ff85d3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Chest.ts b/packages/bukkit/src/typings/org.bukkit.block.Chest.ts index fac3dd97..5b0e02cb 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Chest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Chest.ts @@ -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. *
@@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts index 3f0bfbad..1f99af25 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts index f6c39980..49874ea7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Comparator { + // @ts-ignore + interface Comparator extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts b/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts index 29627022..b14c65a9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Conduit { + // @ts-ignore + interface Conduit extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Container.ts b/packages/bukkit/src/typings/org.bukkit.block.Container.ts index 613f55e2..37154fbe 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Container.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Container.ts @@ -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. *
@@ -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. *
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts b/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts
index 6f77ed32..0bbb23d9 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts
@@ -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.
*
* This is the delay, in ticks, until the spawner will spawn its next mob.
*/
- public getDelay(): number;
+ getDelay(): number;
/**
* Set the spawner's delay.
*
* 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).
*
@@ -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).
*
@@ -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).
*
* This value must 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.
*
* 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 {
*
* 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.
*
* 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 {
*
* 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.
*
@@ -120,12 +121,12 @@ declare namespace org {
*
* Default value is 4.
*/
- public getSpawnRange(): number;
+ getSpawnRange(): number;
/**
* Set the new spawn range.
*
*/
- public setSpawnRange(spawnRange: number): void;
+ setSpawnRange(spawnRange: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts b/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts
index d740f043..867d37f9 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
- class DaylightDetector {
+ // @ts-ignore
+ interface DaylightDetector extends org.bukkit.block.TileState {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts
index f76d64f4..ed2fc5d5 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts
@@ -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.
*
* 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. *
* If the block represented by this state is no longer a dispenser, this * will return false. */ - public dispense(): boolean; + dispense(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts b/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts index 177f3c44..218fdf02 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts @@ -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; diff --git a/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts b/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts index 0b0e7ef1..1e3c128d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts @@ -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; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts b/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts index 6e59690c..ac13f091 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts @@ -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 { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts b/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts index 3418fbcc..541b1bc4 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts @@ -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. *
* 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. *
* 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.
*
* 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.
*
* 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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts
index e3496408..b20bb10a 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
- class EnderChest {
+ // @ts-ignore
+ interface EnderChest extends org.bukkit.block.TileState {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts b/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts
index f16259ce..dab41382 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts
index 1139b8a9..ebfaa131 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts
@@ -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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts
index 7a23712c..8f507567 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts
@@ -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 {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts b/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts
index 3bb694c5..b8749689 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
- class Jigsaw {
+ // @ts-ignore
+ interface Jigsaw extends org.bukkit.block.TileState {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts b/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts
index 546f3c01..b7a3c2d5 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts
@@ -1,34 +1,35 @@
declare namespace org {
namespace bukkit {
namespace block {
- class Jukebox {
+ // @ts-ignore
+ interface Jukebox extends org.bukkit.block.TileState {
/**
* Gets the record inserted into the jukebox.
*/
- public getPlaying(): org.bukkit.Material;
+ getPlaying(): org.bukkit.Material;
/**
* Sets the record being played.
*/
- public setPlaying(record: org.bukkit.Material): void;
+ setPlaying(record: org.bukkit.Material): void;
/**
* Gets the record item inserted into the jukebox.
*/
- public getRecord(): org.bukkit.inventory.ItemStack;
+ getRecord(): org.bukkit.inventory.ItemStack;
/**
* Sets the record being played.
*/
- public setRecord(record: org.bukkit.inventory.ItemStack): void;
+ setRecord(record: org.bukkit.inventory.ItemStack): void;
/**
* Checks if the jukebox is playing a record.
*/
- public isPlaying(): boolean;
+ isPlaying(): boolean;
/**
* Stops the jukebox playing and ejects the current record.
*
* If the block represented by this state is no longer a jukebox, this will * do nothing and return false. */ - public eject(): boolean; + eject(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts b/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts index f07e2c8a..7bd462ad 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts @@ -1,19 +1,20 @@ declare namespace org { namespace bukkit { namespace block { - class Lectern { + // @ts-ignore + interface Lectern extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder { /** * Get the current lectern page. */ - public getPage(): number; + getPage(): number; /** * Set the current lectern page. * If the page is greater than the number of pages of the book currently in * the inventory, then behavior is undefined. */ - public setPage(page: number): void; - public getInventory(): org.bukkit.inventory.Inventory; - public getSnapshotInventory(): org.bukkit.inventory.Inventory; + setPage(page: number): void; + getInventory(): org.bukkit.inventory.Inventory; + getSnapshotInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts b/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts index e1460582..46ffc918 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { namespace block { - class Lockable { + // @ts-ignore + interface Lockable { /** * Checks if the container has a valid (non empty) key. */ - public isLocked(): boolean; + isLocked(): boolean; /** * Gets the key needed to access the container. */ - public getLock(): string; + getLock(): string; /** * Sets the key required to access this container. Set to null (or empty * string) to remove key. */ - public setLock(key: string): void; + setLock(key: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts index e4bb8611..c13bab41 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts @@ -1,44 +1,45 @@ declare namespace org { namespace bukkit { namespace block { - class NoteBlock { + // @ts-ignore + interface NoteBlock extends org.bukkit.block.BlockState { /** * Gets the note. */ - public getNote(): org.bukkit.Note; + getNote(): org.bukkit.Note; /** * Gets the note. */ - public getRawNote(): number; + getRawNote(): number; /** * Set the note. */ - public setNote(note: org.bukkit.Note): void; + setNote(note: org.bukkit.Note): void; /** * Set the note. */ - public setRawNote(note: number): void; + setRawNote(note: number): void; /** * Attempts to play the note at the block. *
* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(): boolean; + play(): boolean; /** * Plays an arbitrary note with an arbitrary instrument at the block. *
* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(instrument: number, note: number): boolean; + play(instrument: number, note: number): boolean; /** * Plays an arbitrary note with an arbitrary instrument at the block. *
* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(instrument: org.bukkit.Instrument, note: org.bukkit.Note): boolean; + play(instrument: org.bukkit.Instrument, note: org.bukkit.Note): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts b/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts index 17f87ae7..1abaea15 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class PistonMoveReaction { + // @ts-ignore + class PistonMoveReaction { public static MOVE: org.bukkit.block.PistonMoveReaction; public static BREAK: org.bukkit.block.PistonMoveReaction; public static BLOCK: org.bukkit.block.PistonMoveReaction; diff --git a/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts b/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts index 881a4be2..604e0d28 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace block { - class ShulkerBox { + // @ts-ignore + interface ShulkerBox extends org.bukkit.block.Container, org.bukkit.loot.Lootable { /** * Get the {@link DyeColor} corresponding to this ShulkerBox */ - public getColor(): org.bukkit.DyeColor; + getColor(): org.bukkit.DyeColor; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Sign.ts b/packages/bukkit/src/typings/org.bukkit.block.Sign.ts index 07c9169e..98b62e27 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Sign.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Sign.ts @@ -1,24 +1,25 @@ declare namespace org { namespace bukkit { namespace block { - class Sign { + // @ts-ignore + interface Sign extends org.bukkit.block.TileState, org.bukkit.material.Colorable { /** * Gets all the lines of text currently on this sign. */ - public getLines(): any; + getLines(): any; /** * Gets the line of text at the specified index. *
* For example, getLine(0) will return the first line of text. */ - public getLine(index: number): string; + getLine(index: number): string; /** * Sets the line of text at the specified index. *
* For example, setLine(0, "Line One") will set the first line of text to
* "Line One".
*/
- public setLine(index: number, line: string): void;
+ setLine(index: number, line: string): void;
/**
* Marks whether this sign can be edited by players.
*
@@ -26,7 +27,7 @@ declare namespace org {
* a placed sign is manipulated during the BlockPlaceEvent. Behaviour
* outside of this event is undefined.
*/
- public isEditable(): boolean;
+ isEditable(): boolean;
/**
* Marks whether this sign can be edited by players.
*
@@ -34,7 +35,7 @@ declare namespace org {
* a placed sign is manipulated during the BlockPlaceEvent. Behaviour
* outside of this event is undefined.
*/
- public setEditable(editable: boolean): void;
+ setEditable(editable: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Skull.ts b/packages/bukkit/src/typings/org.bukkit.block.Skull.ts
index 9c0095d4..83ba37b0 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Skull.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Skull.ts
@@ -1,50 +1,51 @@
declare namespace org {
namespace bukkit {
namespace block {
- class Skull {
+ // @ts-ignore
+ interface Skull extends org.bukkit.block.TileState {
/**
* Checks to see if the skull has an owner
*/
- public hasOwner(): boolean;
+ hasOwner(): boolean;
/**
* Gets the owner of the skull, if one exists
*/
- public getOwner(): string;
+ getOwner(): string;
/**
* Sets the owner of the skull
*
* Involves a potentially blocking web request to acquire the profile data for
* the provided name.
*/
- public setOwner(name: string): boolean;
+ setOwner(name: string): boolean;
/**
* Get the player which owns the skull. This player may appear as the
* texture depending on skull type.
*/
- public getOwningPlayer(): org.bukkit.OfflinePlayer;
+ getOwningPlayer(): org.bukkit.OfflinePlayer;
/**
* Set the player which owns the skull. This player may appear as the
* texture depending on skull type.
*/
- public setOwningPlayer(player: org.bukkit.OfflinePlayer): void;
+ setOwningPlayer(player: org.bukkit.OfflinePlayer): void;
/**
* Gets the rotation of the skull in the world (or facing direction if this
* is a wall mounted skull).
*/
- public getRotation(): org.bukkit.block.BlockFace;
+ getRotation(): org.bukkit.block.BlockFace;
/**
* Sets the rotation of the skull in the world (or facing direction if this
* is a wall mounted skull).
*/
- public setRotation(rotation: org.bukkit.block.BlockFace): void;
+ setRotation(rotation: org.bukkit.block.BlockFace): void;
/**
* Gets the type of skull
*/
- public getSkullType(): org.bukkit.SkullType;
+ getSkullType(): org.bukkit.SkullType;
/**
* Sets the type of skull
*/
- public setSkullType(skullType: org.bukkit.SkullType): void;
+ setSkullType(skullType: org.bukkit.SkullType): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts b/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts
index f1a1f589..ce919169 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
- class Smoker {
+ // @ts-ignore
+ interface Smoker extends org.bukkit.block.Furnace {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.Structure.ts b/packages/bukkit/src/typings/org.bukkit.block.Structure.ts
index ea4fa3de..0675932c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.Structure.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.Structure.ts
@@ -1,78 +1,79 @@
declare namespace org {
namespace bukkit {
namespace block {
- class Structure {
+ // @ts-ignore
+ interface Structure extends org.bukkit.block.TileState {
/**
* The name of this structure.
*/
- public getStructureName(): string;
+ getStructureName(): string;
/**
* Set the name of this structure. This is case-sensitive. The name of the
* structure in the {@link UsageMode#SAVE} structure block MUST match the
* name within the {@link UsageMode#CORNER} block or the size calculation
* will fail.
*/
- public setStructureName(name: string): void;
+ setStructureName(name: string): void;
/**
* Get the name of who created this structure.
*/
- public getAuthor(): string;
+ getAuthor(): string;
/**
* Set the name of whoever created this structure.
*/
- public setAuthor(author: string): void;
+ setAuthor(author: string): void;
/**
* Set the name of whoever created this structure using a
* {@link LivingEntity}.
*/
- public setAuthor(livingEntity: org.bukkit.entity.LivingEntity): void;
+ setAuthor(livingEntity: org.bukkit.entity.LivingEntity): void;
/**
* The relative position of the structure outline based on the position of
* the structure block. Maximum allowed distance is 32 blocks in any
* direction.
*/
- public getRelativePosition(): org.bukkit.util.BlockVector;
+ getRelativePosition(): org.bukkit.util.BlockVector;
/**
* Set the relative position from the structure block. Maximum allowed
* distance is 32 blocks in any direction.
*/
- public setRelativePosition(vector: org.bukkit.util.BlockVector): void;
+ setRelativePosition(vector: org.bukkit.util.BlockVector): void;
/**
* The distance to the opposite corner of this structure. The maximum
* structure size is 32x32x32. When a structure has successfully been
* calculated (i.e. it is within the maximum allowed distance) a white
* border surrounds the structure.
*/
- public getStructureSize(): org.bukkit.util.BlockVector;
+ getStructureSize(): org.bukkit.util.BlockVector;
/**
* Set the maximum size of this structure from the origin point. Maximum
* allowed size is 32x32x32.
*/
- public setStructureSize(vector: org.bukkit.util.BlockVector): void;
+ setStructureSize(vector: org.bukkit.util.BlockVector): void;
/**
* Sets the mirroring of the structure.
*/
- public setMirror(mirror: org.bukkit.block.structure.Mirror): void;
+ setMirror(mirror: org.bukkit.block.structure.Mirror): void;
/**
* How this structure is mirrored.
*/
- public getMirror(): org.bukkit.block.structure.Mirror;
+ getMirror(): org.bukkit.block.structure.Mirror;
/**
* Set how this structure is rotated.
*/
- public setRotation(rotation: org.bukkit.block.structure.StructureRotation): void;
+ setRotation(rotation: org.bukkit.block.structure.StructureRotation): void;
/**
* Get how this structure is rotated.
*/
- public getRotation(): org.bukkit.block.structure.StructureRotation;
+ getRotation(): org.bukkit.block.structure.StructureRotation;
/**
* Set the {@link UsageMode} of this structure block.
*/
- public setUsageMode(mode: org.bukkit.block.structure.UsageMode): void;
+ setUsageMode(mode: org.bukkit.block.structure.UsageMode): void;
/**
* Get the {@link UsageMode} of this structure block.
*/
- public getUsageMode(): org.bukkit.block.structure.UsageMode;
+ getUsageMode(): org.bukkit.block.structure.UsageMode;
/**
* While in {@link UsageMode#SAVE} mode, this will ignore any entities when
* saving the structure.
@@ -80,63 +81,63 @@ declare namespace org {
* While in {@link UsageMode#LOAD} mode this will ignore any entities that
* were saved to file.
*/
- public setIgnoreEntities(ignoreEntities: boolean): void;
+ setIgnoreEntities(ignoreEntities: boolean): void;
/**
* Get if this structure block should ignore entities.
*/
- public isIgnoreEntities(): boolean;
+ isIgnoreEntities(): boolean;
/**
* Set if the structure outline should show air blocks.
*/
- public setShowAir(showAir: boolean): void;
+ setShowAir(showAir: boolean): void;
/**
* Check if this structure block is currently showing all air blocks
*/
- public isShowAir(): boolean;
+ isShowAir(): boolean;
/**
* Set if this structure box should show the bounding box.
*/
- public setBoundingBoxVisible(showBoundingBox: boolean): void;
+ setBoundingBoxVisible(showBoundingBox: boolean): void;
/**
* Get if this structure block is currently showing the bounding box.
*/
- public isBoundingBoxVisible(): boolean;
+ isBoundingBoxVisible(): boolean;
/**
* Set the integrity of the structure. Integrity must be between 0.0 and 1.0
* Lower integrity values will result in more blocks being removed when
* loading a structure. Integrity and {@link #getSeed()} are used together
* to determine which blocks are randomly removed to mimic "decay."
*/
- public setIntegrity(integrity: number): void;
+ setIntegrity(integrity: number): void;
/**
* Get the integrity of this structure.
*/
- public getIntegrity(): number;
+ getIntegrity(): number;
/**
* The seed used to determine which blocks will be removed upon loading.
* {@link #getIntegrity()} and seed are used together to determine which
* blocks are randomly removed to mimic "decay."
*/
- public setSeed(seed: number): void;
+ setSeed(seed: number): void;
/**
* The seed used to determine how many blocks are removed upon loading of
* this structure.
*/
- public getSeed(): number;
+ getSeed(): number;
/**
* Only applicable while in {@link UsageMode#DATA}. Metadata are specific
* functions that can be applied to the structure location. Consult the
* Minecraft
* wiki for more information.
*/
- public setMetadata(metadata: string): void;
+ setMetadata(metadata: string): void;
/**
* Get the metadata function this structure block will perform when
* activated. Consult the
* Minecraft
* Wiki for more information.
*/
- public getMetadata(): string;
+ getMetadata(): string;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.TileState.ts b/packages/bukkit/src/typings/org.bukkit.block.TileState.ts
index 78920cfe..6a37b63a 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.TileState.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.TileState.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace block {
- class TileState {
+ // @ts-ignore
+ interface TileState extends org.bukkit.block.BlockState, org.bukkit.persistence.PersistentDataHolder {
/**
* Returns a custom tag container capable of storing tags on the object.
* Note that the tags stored on this container are all stored under their
@@ -14,7 +15,7 @@ declare namespace org {
* content will only be applied to the actual tile entity after one of the
* {@link #update()} methods is called.
*/
- public getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
+ getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts b/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts
index 8fa284c7..5045b5bc 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace banner {
- class Pattern {
+ // @ts-ignore
+ class Pattern implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Creates a new pattern from the specified color and
* pattern type
diff --git a/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts b/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts
index 6a1c8069..ddc2c20e 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace banner {
- class PatternType {
+ // @ts-ignore
+ class PatternType {
public static BASE: org.bukkit.block.banner.PatternType;
public static SQUARE_BOTTOM_LEFT: org.bukkit.block.banner.PatternType;
public static SQUARE_BOTTOM_RIGHT: org.bukkit.block.banner.PatternType;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts
index 0744a9d5..288e1b4b 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Ageable {
+ // @ts-ignore
+ interface Ageable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'age' property.
*/
- public getAge(): number;
+ getAge(): number;
/**
* Sets the value of the 'age' property.
*/
- public setAge(age: number): void;
+ setAge(age: number): void;
/**
* Gets the maximum allowed value of the 'age' property.
*/
- public getMaximumAge(): number;
+ getMaximumAge(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts
index 7f0ecf03..dd2384ed 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class AnaloguePowerable {
+ // @ts-ignore
+ interface AnaloguePowerable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'power' property.
*/
- public getPower(): number;
+ getPower(): number;
/**
* Sets the value of the 'power' property.
*/
- public setPower(power: number): void;
+ setPower(power: number): void;
/**
* Gets the maximum allowed value of the 'power' property.
*/
- public getMaximumPower(): number;
+ getMaximumPower(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts
index dbc80a66..6b1b69c2 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Attachable {
+ // @ts-ignore
+ interface Attachable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'attached' property.
*/
- public isAttached(): boolean;
+ isAttached(): boolean;
/**
* Sets the value of the 'attached' property.
*/
- public setAttached(attached: boolean): void;
+ setAttached(attached: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts
index febf8ee8..9eb46103 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace Bisected {
- class Half {
+ // @ts-ignore
+ class Half {
public static TOP: org.bukkit.block.data.Bisected.Half;
public static BOTTOM: org.bukkit.block.data.Bisected.Half;
public static values(): org.bukkit.block.data.Bisected.Half[];
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts
index 30938613..5ffeee3b 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Bisected {
+ // @ts-ignore
+ interface Bisected extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'half' property.
*/
- public getHalf(): org.bukkit.block.data.Bisected.Half;
+ getHalf(): org.bukkit.block.data.Bisected.Half;
/**
* Sets the value of the 'half' property.
*/
- public setHalf(half: org.bukkit.block.data.Bisected.Half): void;
+ setHalf(half: org.bukkit.block.data.Bisected.Half): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts b/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts
index 8231f481..7e303d9c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts
@@ -2,17 +2,18 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class BlockData {
+ // @ts-ignore
+ interface BlockData {
/**
* Get the Material represented by this block data.
*/
- public getMaterial(): org.bukkit.Material;
+ getMaterial(): org.bukkit.Material;
/**
* Gets a string, which when passed into a method such as
* {@link Server#createBlockData(java.lang.String)} will unambiguously
* recreate this instance.
*/
- public getAsString(): string;
+ getAsString(): string;
/**
* Gets a string, which when passed into a method such as
* {@link Server#createBlockData(java.lang.String)} will recreate this or a
@@ -34,7 +35,7 @@ declare namespace org {
* dataString.equals(data.getAsString()); // This is equivalent to the above, "getAsString(false)"
* }
*/
- public getAsString(hideUnspecified: boolean): string;
+ getAsString(hideUnspecified: boolean): string;
/**
* Merges all explicitly set states from the given data with this BlockData.
*
@@ -44,7 +45,7 @@ declare namespace org {
*
* Note also that the block types must match identically.
*/
- public merge(data: org.bukkit.block.data.BlockData): org.bukkit.block.data.BlockData;
+ merge(data: org.bukkit.block.data.BlockData): org.bukkit.block.data.BlockData;
/**
* Checks if the specified BlockData matches this block data.
*
@@ -57,11 +58,11 @@ declare namespace org {
* Note that these semantics mean that a.matches(b) may not be the same
* as b.matches(a)
*/
- public matches(data: org.bukkit.block.data.BlockData): boolean;
+ matches(data: org.bukkit.block.data.BlockData): boolean;
/**
* Returns a copy of this BlockData.
*/
- public clone(): org.bukkit.block.data.BlockData;
+ clone(): org.bukkit.block.data.BlockData;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts
index 62e35a29..88b4b600 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Directional {
+ // @ts-ignore
+ interface Directional extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'facing' property.
*/
- public getFacing(): org.bukkit.block.BlockFace;
+ getFacing(): org.bukkit.block.BlockFace;
/**
* Sets the value of the 'facing' property.
*/
- public setFacing(facing: org.bukkit.block.BlockFace): void;
+ setFacing(facing: org.bukkit.block.BlockFace): void;
/**
* Gets the faces which are applicable to this block.
*/
- public getFaces(): any[] /*java.util.Set*/;
+ getFaces(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts
index 97ef169f..5cf9b43a 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Levelled {
+ // @ts-ignore
+ interface Levelled extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'level' property.
*/
- public getLevel(): number;
+ getLevel(): number;
/**
* Sets the value of the 'level' property.
*/
- public setLevel(level: number): void;
+ setLevel(level: number): void;
/**
* Gets the maximum allowed value of the 'level' property.
*/
- public getMaximumLevel(): number;
+ getMaximumLevel(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts
index fc2727dd..9540f1ca 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Lightable {
+ // @ts-ignore
+ interface Lightable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'lit' property.
*/
- public isLit(): boolean;
+ isLit(): boolean;
/**
* Sets the value of the 'lit' property.
*/
- public setLit(lit: boolean): void;
+ setLit(lit: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts b/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts
index 97e176f1..cbfaefb2 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts
@@ -2,23 +2,24 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class MultipleFacing {
+ // @ts-ignore
+ interface MultipleFacing extends org.bukkit.block.data.BlockData {
/**
* Checks if this block has the specified face enabled.
*/
- public hasFace(face: org.bukkit.block.BlockFace): boolean;
+ hasFace(face: org.bukkit.block.BlockFace): boolean;
/**
* Set whether this block has the specified face enabled.
*/
- public setFace(face: org.bukkit.block.BlockFace, has: boolean): void;
+ setFace(face: org.bukkit.block.BlockFace, has: boolean): void;
/**
* Get all of the faces which are enabled on this block.
*/
- public getFaces(): any[] /*java.util.Set*/;
+ getFaces(): any[] /*java.util.Set*/;
/**
* Gets all of this faces which may be set on this block.
*/
- public getAllowedFaces(): any[] /*java.util.Set*/;
+ getAllowedFaces(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts
index c9fc2487..bf006e57 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Openable {
+ // @ts-ignore
+ interface Openable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'open' property.
*/
- public isOpen(): boolean;
+ isOpen(): boolean;
/**
* Sets the value of the 'open' property.
*/
- public setOpen(open: boolean): void;
+ setOpen(open: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts
index 23006e38..90672681 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Orientable {
+ // @ts-ignore
+ interface Orientable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'axis' property.
*/
- public getAxis(): org.bukkit.Axis;
+ getAxis(): org.bukkit.Axis;
/**
* Sets the value of the 'axis' property.
*/
- public setAxis(axis: org.bukkit.Axis): void;
+ setAxis(axis: org.bukkit.Axis): void;
/**
* Gets the axes which are applicable to this block.
*/
- public getAxes(): any[] /*java.util.Set*/;
+ getAxes(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts
index e1ee08ad..a3c0d50a 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Powerable {
+ // @ts-ignore
+ interface Powerable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'powered' property.
*/
- public isPowered(): boolean;
+ isPowered(): boolean;
/**
* Sets the value of the 'powered' property.
*/
- public setPowered(powered: boolean): void;
+ setPowered(powered: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts
index 9302a7b3..7a6c4a2c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace Rail {
- class Shape {
+ // @ts-ignore
+ class Shape {
public static NORTH_SOUTH: org.bukkit.block.data.Rail.Shape;
public static EAST_WEST: org.bukkit.block.data.Rail.Shape;
public static ASCENDING_EAST: org.bukkit.block.data.Rail.Shape;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts
index d229b68b..16f7c4cf 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Rail {
+ // @ts-ignore
+ interface Rail extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'shape' property.
*/
- public getShape(): org.bukkit.block.data.Rail.Shape;
+ getShape(): org.bukkit.block.data.Rail.Shape;
/**
* Sets the value of the 'shape' property.
*/
- public setShape(shape: org.bukkit.block.data.Rail.Shape): void;
+ setShape(shape: org.bukkit.block.data.Rail.Shape): void;
/**
* Gets the shapes which are applicable to this block.
*/
- public getShapes(): any[] /*java.util.Set*/;
+ getShapes(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts
index 5eefae0d..79281db1 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Rotatable {
+ // @ts-ignore
+ interface Rotatable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'rotation' property.
*/
- public getRotation(): org.bukkit.block.BlockFace;
+ getRotation(): org.bukkit.block.BlockFace;
/**
* Sets the value of the 'rotation' property.
*/
- public setRotation(rotation: org.bukkit.block.BlockFace): void;
+ setRotation(rotation: org.bukkit.block.BlockFace): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts
index 37cd74f6..ef7bec90 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Snowable {
+ // @ts-ignore
+ interface Snowable extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'snowy' property.
*/
- public isSnowy(): boolean;
+ isSnowy(): boolean;
/**
* Sets the value of the 'snowy' property.
*/
- public setSnowy(snowy: boolean): void;
+ setSnowy(snowy: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts
index fae11e9e..a9028229 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts
@@ -2,15 +2,16 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace data {
- class Waterlogged {
+ // @ts-ignore
+ interface Waterlogged extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'waterlogged' property.
*/
- public isWaterlogged(): boolean;
+ isWaterlogged(): boolean;
/**
* Sets the value of the 'waterlogged' property.
*/
- public setWaterlogged(waterlogged: boolean): void;
+ setWaterlogged(waterlogged: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts
index 1cc44916..029aecb6 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Bamboo {
- class Leaves {
+ // @ts-ignore
+ class Leaves {
public static NONE: org.bukkit.block.data.type.Bamboo.Leaves;
public static SMALL: org.bukkit.block.data.type.Bamboo.Leaves;
public static LARGE: org.bukkit.block.data.type.Bamboo.Leaves;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts
index da35cc7e..ab5bb77c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Bamboo {
+ // @ts-ignore
+ interface Bamboo extends org.bukkit.block.data.Ageable, org.bukkit.block.data.type.Sapling {
/**
* Gets the value of the 'leaves' property.
*/
- public getLeaves(): org.bukkit.block.data.type.Bamboo.Leaves;
+ getLeaves(): org.bukkit.block.data.type.Bamboo.Leaves;
/**
* Sets the value of the 'leaves' property.
*/
- public setLeaves(leaves: org.bukkit.block.data.type.Bamboo.Leaves): void;
+ setLeaves(leaves: org.bukkit.block.data.type.Bamboo.Leaves): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts
index 03620c86..6a3470ae 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Bed {
- class Part {
+ // @ts-ignore
+ class Part {
public static HEAD: org.bukkit.block.data.type.Bed.Part;
public static FOOT: org.bukkit.block.data.type.Bed.Part;
public static values(): org.bukkit.block.data.type.Bed.Part[];
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts
index 974361b5..37192435 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts
@@ -3,19 +3,20 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Bed {
+ // @ts-ignore
+ interface Bed extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'part' property.
*/
- public getPart(): org.bukkit.block.data.type.Bed.Part;
+ getPart(): org.bukkit.block.data.type.Bed.Part;
/**
* Sets the value of the 'part' property.
*/
- public setPart(part: org.bukkit.block.data.type.Bed.Part): void;
+ setPart(part: org.bukkit.block.data.type.Bed.Part): void;
/**
* Gets the value of the 'occupied' property.
*/
- public isOccupied(): boolean;
+ isOccupied(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts
index 330e8ebe..7dcbf624 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Bell {
- class Attachment {
+ // @ts-ignore
+ class Attachment {
public static FLOOR: org.bukkit.block.data.type.Bell.Attachment;
public static CEILING: org.bukkit.block.data.type.Bell.Attachment;
public static SINGLE_WALL: org.bukkit.block.data.type.Bell.Attachment;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts
index 37dc5a24..68434bbb 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Bell {
+ // @ts-ignore
+ interface Bell extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'attachment' property.
*/
- public getAttachment(): org.bukkit.block.data.type.Bell.Attachment;
+ getAttachment(): org.bukkit.block.data.type.Bell.Attachment;
/**
* Sets the value of the 'attachment' property.
*/
- public setAttachment(attachment: org.bukkit.block.data.type.Bell.Attachment): void;
+ setAttachment(attachment: org.bukkit.block.data.type.Bell.Attachment): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts
index 3580c1ca..fe061781 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts
@@ -3,23 +3,24 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class BrewingStand {
+ // @ts-ignore
+ interface BrewingStand extends org.bukkit.block.data.BlockData {
/**
* Checks if the stand has the following bottle
*/
- public hasBottle(bottle: number): boolean;
+ hasBottle(bottle: number): boolean;
/**
* Set whether the stand has this bottle present.
*/
- public setBottle(bottle: number, has: boolean): void;
+ setBottle(bottle: number, has: boolean): void;
/**
* Get the indexes of all the bottles present on this block.
*/
- public getBottles(): any[] /*java.util.Set*/;
+ getBottles(): any[] /*java.util.Set*/;
/**
* Get the maximum amount of bottles present on this stand.
*/
- public getMaximumBottles(): number;
+ getMaximumBottles(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts
index 1f693ec4..ea339357 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class BubbleColumn {
+ // @ts-ignore
+ interface BubbleColumn extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'drag' property.
*/
- public isDrag(): boolean;
+ isDrag(): boolean;
/**
* Sets the value of the 'drag' property.
*/
- public setDrag(drag: boolean): void;
+ setDrag(drag: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts
index 4c27a7cb..f810b6d9 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts
@@ -3,19 +3,20 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Cake {
+ // @ts-ignore
+ interface Cake extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'bites' property.
*/
- public getBites(): number;
+ getBites(): number;
/**
* Sets the value of the 'bites' property.
*/
- public setBites(bites: number): void;
+ setBites(bites: number): void;
/**
* Gets the maximum allowed value of the 'bites' property.
*/
- public getMaximumBites(): number;
+ getMaximumBites(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts
index e5916996..dd944ac4 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Campfire {
+ // @ts-ignore
+ interface Campfire extends org.bukkit.block.data.Lightable, org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'signal_fire' property.
*/
- public isSignalFire(): boolean;
+ isSignalFire(): boolean;
/**
* Sets the value of the 'signal_fire' property.
*/
- public setSignalFire(signalFire: boolean): void;
+ setSignalFire(signalFire: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts
index 75f1aa09..ec91972a 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Chest {
- class Type {
+ // @ts-ignore
+ class Type {
public static SINGLE: org.bukkit.block.data.type.Chest.Type;
public static LEFT: org.bukkit.block.data.type.Chest.Type;
public static RIGHT: org.bukkit.block.data.type.Chest.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts
index 45e7246a..ee189ed8 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Chest {
+ // @ts-ignore
+ interface Chest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'type' property.
*/
- public getType(): org.bukkit.block.data.type.Chest.Type;
+ getType(): org.bukkit.block.data.type.Chest.Type;
/**
* Sets the value of the 'type' property.
*/
- public setType(type: org.bukkit.block.data.type.Chest.Type): void;
+ setType(type: org.bukkit.block.data.type.Chest.Type): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts
index 2efe8882..e582202e 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Cocoa {
+ // @ts-ignore
+ interface Cocoa extends org.bukkit.block.data.Ageable, org.bukkit.block.data.Directional {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts
index 562e1006..83cba77b 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class CommandBlock {
+ // @ts-ignore
+ interface CommandBlock extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'conditional' property.
*/
- public isConditional(): boolean;
+ isConditional(): boolean;
/**
* Sets the value of the 'conditional' property.
*/
- public setConditional(conditional: boolean): void;
+ setConditional(conditional: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts
index e0b212c7..5a7decf3 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Comparator {
- class Mode {
+ // @ts-ignore
+ class Mode {
public static COMPARE: org.bukkit.block.data.type.Comparator.Mode;
public static SUBTRACT: org.bukkit.block.data.type.Comparator.Mode;
public static values(): org.bukkit.block.data.type.Comparator.Mode[];
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts
index d6f9a603..22b458cf 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Comparator {
+ // @ts-ignore
+ interface Comparator extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'mode' property.
*/
- public getMode(): org.bukkit.block.data.type.Comparator.Mode;
+ getMode(): org.bukkit.block.data.type.Comparator.Mode;
/**
* Sets the value of the 'mode' property.
*/
- public setMode(mode: org.bukkit.block.data.type.Comparator.Mode): void;
+ setMode(mode: org.bukkit.block.data.type.Comparator.Mode): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts
index 3785414e..435e9be1 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class CoralWallFan {
+ // @ts-ignore
+ interface CoralWallFan extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts
index 3330a8fd..17b83034 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class DaylightDetector {
+ // @ts-ignore
+ interface DaylightDetector extends org.bukkit.block.data.AnaloguePowerable {
/**
* Gets the value of the 'inverted' property.
*/
- public isInverted(): boolean;
+ isInverted(): boolean;
/**
* Sets the value of the 'inverted' property.
*/
- public setInverted(inverted: boolean): void;
+ setInverted(inverted: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts
index 979df898..1612fcf1 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Dispenser {
+ // @ts-ignore
+ interface Dispenser extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'triggered' property.
*/
- public isTriggered(): boolean;
+ isTriggered(): boolean;
/**
* Sets the value of the 'triggered' property.
*/
- public setTriggered(triggered: boolean): void;
+ setTriggered(triggered: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts
index 22239c42..84d5f6c3 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Door {
- class Hinge {
+ // @ts-ignore
+ class Hinge {
public static LEFT: org.bukkit.block.data.type.Door.Hinge;
public static RIGHT: org.bukkit.block.data.type.Door.Hinge;
public static values(): org.bukkit.block.data.type.Door.Hinge[];
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts
index 6e78f351..f478e986 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Door {
+ // @ts-ignore
+ interface Door extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'hinge' property.
*/
- public getHinge(): org.bukkit.block.data.type.Door.Hinge;
+ getHinge(): org.bukkit.block.data.type.Door.Hinge;
/**
* Sets the value of the 'hinge' property.
*/
- public setHinge(hinge: org.bukkit.block.data.type.Door.Hinge): void;
+ setHinge(hinge: org.bukkit.block.data.type.Door.Hinge): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts
index 9d128bdd..81921289 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class EndPortalFrame {
+ // @ts-ignore
+ interface EndPortalFrame extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'eye' property.
*/
- public hasEye(): boolean;
+ hasEye(): boolean;
/**
* Sets the value of the 'eye' property.
*/
- public setEye(eye: boolean): void;
+ setEye(eye: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts
index 97775649..d9e40884 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class EnderChest {
+ // @ts-ignore
+ interface EnderChest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts
index 9e65196c..4b239d23 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts
@@ -3,19 +3,20 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Farmland {
+ // @ts-ignore
+ interface Farmland extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'moisture' property.
*/
- public getMoisture(): number;
+ getMoisture(): number;
/**
* Sets the value of the 'moisture' property.
*/
- public setMoisture(moisture: number): void;
+ setMoisture(moisture: number): void;
/**
* Gets the maximum allowed value of the 'moisture' property.
*/
- public getMaximumMoisture(): number;
+ getMaximumMoisture(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts
index 70e16f48..6e8292f7 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Fence {
+ // @ts-ignore
+ interface Fence extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts
index 8e024049..e6c54f57 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Fire {
+ // @ts-ignore
+ interface Fire extends org.bukkit.block.data.Ageable, org.bukkit.block.data.MultipleFacing {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts
index 0cd9c7e8..3dcaf6b7 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Furnace {
+ // @ts-ignore
+ interface Furnace extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts
index af922fef..bb9fbd84 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Gate {
+ // @ts-ignore
+ interface Gate extends org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'in_wall' property.
*/
- public isInWall(): boolean;
+ isInWall(): boolean;
/**
* Sets the value of the 'in_wall' property.
*/
- public setInWall(inWall: boolean): void;
+ setInWall(inWall: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts
index 6266a241..8f7b794e 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class GlassPane {
+ // @ts-ignore
+ interface GlassPane extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts
index b0522b72..4c308561 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Hopper {
+ // @ts-ignore
+ interface Hopper extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'enabled' property.
*/
- public isEnabled(): boolean;
+ isEnabled(): boolean;
/**
* Sets the value of the 'enabled' property.
*/
- public setEnabled(enabled: boolean): void;
+ setEnabled(enabled: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts
index c1731588..47976147 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts
@@ -3,11 +3,12 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Jukebox {
+ // @ts-ignore
+ interface Jukebox extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'has_record' property.
*/
- public hasRecord(): boolean;
+ hasRecord(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts
index b61d876c..a974dea9 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Ladder {
+ // @ts-ignore
+ interface Ladder extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts
index d7c301c0..5e6cec88 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Lantern {
+ // @ts-ignore
+ interface Lantern {
/**
* Gets the value of the 'hanging' property.
*/
- public isHanging(): boolean;
+ isHanging(): boolean;
/**
* Sets the value of the 'hanging' property.
*/
- public setHanging(hanging: boolean): void;
+ setHanging(hanging: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts
index ec508bc1..51ac3647 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts
@@ -3,23 +3,24 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Leaves {
+ // @ts-ignore
+ interface Leaves extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'persistent' property.
*/
- public isPersistent(): boolean;
+ isPersistent(): boolean;
/**
* Sets the value of the 'persistent' property.
*/
- public setPersistent(persistent: boolean): void;
+ setPersistent(persistent: boolean): void;
/**
* Gets the value of the 'distance' property.
*/
- public getDistance(): number;
+ getDistance(): number;
/**
* Sets the value of the 'distance' property.
*/
- public setDistance(distance: number): void;
+ setDistance(distance: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts
index 788aa2b8..48eb126c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts
@@ -3,11 +3,12 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Lectern {
+ // @ts-ignore
+ interface Lectern extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'has_book' property.
*/
- public hasBook(): boolean;
+ hasBook(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts
index d12a5d82..c20d16e1 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts
@@ -3,23 +3,24 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class NoteBlock {
+ // @ts-ignore
+ interface NoteBlock extends org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'instrument' property.
*/
- public getInstrument(): org.bukkit.Instrument;
+ getInstrument(): org.bukkit.Instrument;
/**
* Sets the value of the 'instrument' property.
*/
- public setInstrument(instrument: org.bukkit.Instrument): void;
+ setInstrument(instrument: org.bukkit.Instrument): void;
/**
* Gets the value of the 'note' property.
*/
- public getNote(): org.bukkit.Note;
+ getNote(): org.bukkit.Note;
/**
* Sets the value of the 'note' property.
*/
- public setNote(note: org.bukkit.Note): void;
+ setNote(note: org.bukkit.Note): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts
index 42a6c167..d1fc78e7 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Observer {
+ // @ts-ignore
+ interface Observer extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts
index 100dd73d..55852813 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Piston {
+ // @ts-ignore
+ interface Piston extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'extended' property.
*/
- public isExtended(): boolean;
+ isExtended(): boolean;
/**
* Sets the value of the 'extended' property.
*/
- public setExtended(extended: boolean): void;
+ setExtended(extended: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts
index 61be80de..d01b2769 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class PistonHead {
+ // @ts-ignore
+ interface PistonHead extends org.bukkit.block.data.type.TechnicalPiston {
/**
* Gets the value of the 'short' property.
*/
- public isShort(): boolean;
+ isShort(): boolean;
/**
* Sets the value of the 'short' property.
*/
- public setShort(_short: boolean): void;
+ setShort(_short: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts
index 73992dae..65a4963b 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class RedstoneRail {
+ // @ts-ignore
+ interface RedstoneRail extends org.bukkit.block.data.Powerable, org.bukkit.block.data.Rail {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts
index 641a442a..dbccd575 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class RedstoneWallTorch {
+ // @ts-ignore
+ interface RedstoneWallTorch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts
index 6fd6ddc5..c4b078d8 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace RedstoneWire {
- class Connection {
+ // @ts-ignore
+ class Connection {
public static UP: org.bukkit.block.data.type.RedstoneWire.Connection;
public static SIDE: org.bukkit.block.data.type.RedstoneWire.Connection;
public static NONE: org.bukkit.block.data.type.RedstoneWire.Connection;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts
index 07bb0820..9477a561 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts
@@ -3,19 +3,20 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class RedstoneWire {
+ // @ts-ignore
+ interface RedstoneWire extends org.bukkit.block.data.AnaloguePowerable {
/**
* Checks the type of connection on the specified face.
*/
- public getFace(face: org.bukkit.block.BlockFace): org.bukkit.block.data.type.RedstoneWire.Connection;
+ getFace(face: org.bukkit.block.BlockFace): org.bukkit.block.data.type.RedstoneWire.Connection;
/**
* Sets the type of connection on the specified face.
*/
- public setFace(face: org.bukkit.block.BlockFace, connection: org.bukkit.block.data.type.RedstoneWire.Connection): void;
+ setFace(face: org.bukkit.block.BlockFace, connection: org.bukkit.block.data.type.RedstoneWire.Connection): void;
/**
* Gets all of this faces which may be set on this block.
*/
- public getAllowedFaces(): any[] /*java.util.Set*/;
+ getAllowedFaces(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts
index 8c945cb8..99bda3e6 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts
@@ -3,31 +3,32 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Repeater {
+ // @ts-ignore
+ interface Repeater extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'delay' property.
*/
- public getDelay(): number;
+ getDelay(): number;
/**
* Sets the value of the 'delay' property.
*/
- public setDelay(delay: number): void;
+ setDelay(delay: number): void;
/**
* Gets the minimum allowed value of the 'delay' property.
*/
- public getMinimumDelay(): number;
+ getMinimumDelay(): number;
/**
* Gets the maximum allowed value of the 'delay' property.
*/
- public getMaximumDelay(): number;
+ getMaximumDelay(): number;
/**
* Gets the value of the 'locked' property.
*/
- public isLocked(): boolean;
+ isLocked(): boolean;
/**
* Sets the value of the 'locked' property.
*/
- public setLocked(locked: boolean): void;
+ setLocked(locked: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts
index f0e48c86..838312f7 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts
@@ -3,19 +3,20 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Sapling {
+ // @ts-ignore
+ interface Sapling extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'stage' property.
*/
- public getStage(): number;
+ getStage(): number;
/**
* Sets the value of the 'stage' property.
*/
- public setStage(stage: number): void;
+ setStage(stage: number): void;
/**
* Gets the maximum allowed value of the 'stage' property.
*/
- public getMaximumStage(): number;
+ getMaximumStage(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts
index 9bb97bcb..9e57f215 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts
@@ -3,27 +3,28 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Scaffolding {
+ // @ts-ignore
+ interface Scaffolding extends org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'bottom' property.
*/
- public isBottom(): boolean;
+ isBottom(): boolean;
/**
* Sets the value of the 'bottom' property.
*/
- public setBottom(bottom: boolean): void;
+ setBottom(bottom: boolean): void;
/**
* Gets the value of the 'distance' property.
*/
- public getDistance(): number;
+ getDistance(): number;
/**
* Sets the value of the 'distance' property.
*/
- public setDistance(distance: number): void;
+ setDistance(distance: number): void;
/**
* Gets the maximum allowed value of the 'distance' property.
*/
- public getMaximumDistance(): number;
+ getMaximumDistance(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts
index ad2143de..7badead9 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts
@@ -3,23 +3,24 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class SeaPickle {
+ // @ts-ignore
+ interface SeaPickle extends org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'pickles' property.
*/
- public getPickles(): number;
+ getPickles(): number;
/**
* Sets the value of the 'pickles' property.
*/
- public setPickles(pickles: number): void;
+ setPickles(pickles: number): void;
/**
* Gets the minimum allowed value of the 'pickles' property.
*/
- public getMinimumPickles(): number;
+ getMinimumPickles(): number;
/**
* Gets the maximum allowed value of the 'pickles' property.
*/
- public getMaximumPickles(): number;
+ getMaximumPickles(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts
index 7b651f04..ba27875f 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Sign {
+ // @ts-ignore
+ interface Sign extends org.bukkit.block.data.Rotatable, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts
index 6ff11646..14e6fb5d 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Slab {
- class Type {
+ // @ts-ignore
+ class Type {
public static TOP: org.bukkit.block.data.type.Slab.Type;
public static BOTTOM: org.bukkit.block.data.type.Slab.Type;
public static DOUBLE: org.bukkit.block.data.type.Slab.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts
index a0588606..c7bb900c 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Slab {
+ // @ts-ignore
+ interface Slab extends org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'type' property.
*/
- public getType(): org.bukkit.block.data.type.Slab.Type;
+ getType(): org.bukkit.block.data.type.Slab.Type;
/**
* Sets the value of the 'type' property.
*/
- public setType(type: org.bukkit.block.data.type.Slab.Type): void;
+ setType(type: org.bukkit.block.data.type.Slab.Type): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts
index d3517a40..353d3cec 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts
@@ -3,23 +3,24 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Snow {
+ // @ts-ignore
+ interface Snow extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'layers' property.
*/
- public getLayers(): number;
+ getLayers(): number;
/**
* Sets the value of the 'layers' property.
*/
- public setLayers(layers: number): void;
+ setLayers(layers: number): void;
/**
* Gets the minimum allowed value of the 'layers' property.
*/
- public getMinimumLayers(): number;
+ getMinimumLayers(): number;
/**
* Gets the maximum allowed value of the 'layers' property.
*/
- public getMaximumLayers(): number;
+ getMaximumLayers(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts
index 5c0193ed..f6b8c221 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Stairs {
- class Shape {
+ // @ts-ignore
+ class Shape {
public static STRAIGHT: org.bukkit.block.data.type.Stairs.Shape;
public static INNER_LEFT: org.bukkit.block.data.type.Stairs.Shape;
public static INNER_RIGHT: org.bukkit.block.data.type.Stairs.Shape;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts
index 16ade43e..3f725494 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Stairs {
+ // @ts-ignore
+ interface Stairs extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
/**
* Gets the value of the 'shape' property.
*/
- public getShape(): org.bukkit.block.data.type.Stairs.Shape;
+ getShape(): org.bukkit.block.data.type.Stairs.Shape;
/**
* Sets the value of the 'shape' property.
*/
- public setShape(shape: org.bukkit.block.data.type.Stairs.Shape): void;
+ setShape(shape: org.bukkit.block.data.type.Stairs.Shape): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts
index 82841477..814d73f6 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace StructureBlock {
- class Mode {
+ // @ts-ignore
+ class Mode {
public static SAVE: org.bukkit.block.data.type.StructureBlock.Mode;
public static LOAD: org.bukkit.block.data.type.StructureBlock.Mode;
public static CORNER: org.bukkit.block.data.type.StructureBlock.Mode;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts
index ee0ce590..c06008ff 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class StructureBlock {
+ // @ts-ignore
+ interface StructureBlock extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'mode' property.
*/
- public getMode(): org.bukkit.block.data.type.StructureBlock.Mode;
+ getMode(): org.bukkit.block.data.type.StructureBlock.Mode;
/**
* Sets the value of the 'mode' property.
*/
- public setMode(mode: org.bukkit.block.data.type.StructureBlock.Mode): void;
+ setMode(mode: org.bukkit.block.data.type.StructureBlock.Mode): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts
index 63d85b9f..d0c34406 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace Switch {
- class Face {
+ // @ts-ignore
+ class Face {
public static FLOOR: org.bukkit.block.data.type.Switch.Face;
public static WALL: org.bukkit.block.data.type.Switch.Face;
public static CEILING: org.bukkit.block.data.type.Switch.Face;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts
index 2bdf62f0..ce1a7b0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Switch {
+ // @ts-ignore
+ interface Switch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'face' property.
*/
- public getFace(): org.bukkit.block.data.type.Switch.Face;
+ getFace(): org.bukkit.block.data.type.Switch.Face;
/**
* Sets the value of the 'face' property.
*/
- public setFace(face: org.bukkit.block.data.type.Switch.Face): void;
+ setFace(face: org.bukkit.block.data.type.Switch.Face): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts
index 08188c47..70f6f002 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class TNT {
+ // @ts-ignore
+ interface TNT extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'unstable' property.
*/
- public isUnstable(): boolean;
+ isUnstable(): boolean;
/**
* Sets the value of the 'unstable' property.
*/
- public setUnstable(unstable: boolean): void;
+ setUnstable(unstable: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts
index 5b834334..70a062ff 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace data {
namespace type {
namespace TechnicalPiston {
- class Type {
+ // @ts-ignore
+ class Type {
public static NORMAL: org.bukkit.block.data.type.TechnicalPiston.Type;
public static STICKY: org.bukkit.block.data.type.TechnicalPiston.Type;
public static values(): org.bukkit.block.data.type.TechnicalPiston.Type[];
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts
index 18f3cec4..a02c228b 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class TechnicalPiston {
+ // @ts-ignore
+ interface TechnicalPiston extends org.bukkit.block.data.Directional {
/**
* Gets the value of the 'type' property.
*/
- public getType(): org.bukkit.block.data.type.TechnicalPiston.Type;
+ getType(): org.bukkit.block.data.type.TechnicalPiston.Type;
/**
* Sets the value of the 'type' property.
*/
- public setType(type: org.bukkit.block.data.type.TechnicalPiston.Type): void;
+ setType(type: org.bukkit.block.data.type.TechnicalPiston.Type): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts
index b342ba2a..957e7991 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class TrapDoor {
+ // @ts-ignore
+ interface TrapDoor extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts
index 4fa4755f..f4906e0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts
@@ -3,15 +3,16 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class Tripwire {
+ // @ts-ignore
+ interface Tripwire extends org.bukkit.block.data.Attachable, org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Powerable {
/**
* Gets the value of the 'disarmed' property.
*/
- public isDisarmed(): boolean;
+ isDisarmed(): boolean;
/**
* Sets the value of the 'disarmed' property.
*/
- public setDisarmed(disarmed: boolean): void;
+ setDisarmed(disarmed: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts
index 8aa54845..1c4b058d 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class TripwireHook {
+ // @ts-ignore
+ interface TripwireHook extends org.bukkit.block.data.Attachable, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts
index 9da8b221..b343a0a0 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts
@@ -3,35 +3,36 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class TurtleEgg {
+ // @ts-ignore
+ interface TurtleEgg extends org.bukkit.block.data.BlockData {
/**
* Gets the value of the 'eggs' property.
*/
- public getEggs(): number;
+ getEggs(): number;
/**
* Sets the value of the 'eggs' property.
*/
- public setEggs(eggs: number): void;
+ setEggs(eggs: number): void;
/**
* Gets the minimum allowed value of the 'eggs' property.
*/
- public getMinimumEggs(): number;
+ getMinimumEggs(): number;
/**
* Gets the maximum allowed value of the 'eggs' property.
*/
- public getMaximumEggs(): number;
+ getMaximumEggs(): number;
/**
* Gets the value of the 'hatch' property.
*/
- public getHatch(): number;
+ getHatch(): number;
/**
* Sets the value of the 'hatch' property.
*/
- public setHatch(hatch: number): void;
+ setHatch(hatch: number): void;
/**
* Gets the maximum allowed value of the 'hatch' property.
*/
- public getMaximumHatch(): number;
+ getMaximumHatch(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts
index 02d0fc71..81cee2be 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace block {
namespace data {
namespace type {
- class WallSign {
+ // @ts-ignore
+ interface WallSign extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts
index cc18ce2b..4a2376c1 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace structure {
- class Mirror {
+ // @ts-ignore
+ class Mirror {
public static NONE: org.bukkit.block.structure.Mirror;
public static LEFT_RIGHT: org.bukkit.block.structure.Mirror;
public static FRONT_BACK: org.bukkit.block.structure.Mirror;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts
index a6d124c9..6c484841 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace structure {
- class StructureRotation {
+ // @ts-ignore
+ class StructureRotation {
public static NONE: org.bukkit.block.structure.StructureRotation;
public static CLOCKWISE_90: org.bukkit.block.structure.StructureRotation;
public static CLOCKWISE_180: org.bukkit.block.structure.StructureRotation;
diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts
index d8a4c37e..ad7618dc 100644
--- a/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts
+++ b/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace block {
namespace structure {
- class UsageMode {
+ // @ts-ignore
+ class UsageMode {
public static SAVE: org.bukkit.block.structure.UsageMode;
public static LOAD: org.bukkit.block.structure.UsageMode;
public static CORNER: org.bukkit.block.structure.UsageMode;
diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts
index 83ab70ee..72b4a8b6 100644
--- a/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace boss {
- class BarColor {
+ // @ts-ignore
+ class BarColor {
public static PINK: org.bukkit.boss.BarColor;
public static BLUE: org.bukkit.boss.BarColor;
public static RED: org.bukkit.boss.BarColor;
diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts
index 8f3bd52d..bf5e21d3 100644
--- a/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts
+++ b/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace boss {
- class BarFlag {
+ // @ts-ignore
+ class BarFlag {
public static DARKEN_SKY: org.bukkit.boss.BarFlag;
public static PLAY_BOSS_MUSIC: org.bukkit.boss.BarFlag;
public static CREATE_FOG: org.bukkit.boss.BarFlag;
diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts
index 8273acdd..d58938c7 100644
--- a/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace boss {
- class BarStyle {
+ // @ts-ignore
+ class BarStyle {
public static SOLID: org.bukkit.boss.BarStyle;
public static SEGMENTED_6: org.bukkit.boss.BarStyle;
public static SEGMENTED_10: org.bukkit.boss.BarStyle;
diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts b/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts
index 342dbb14..cab6fe04 100644
--- a/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts
+++ b/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts
@@ -1,85 +1,86 @@
declare namespace org {
namespace bukkit {
namespace boss {
- class BossBar {
+ // @ts-ignore
+ interface BossBar {
/**
* Returns the title of this boss bar
*/
- public getTitle(): string;
+ getTitle(): string;
/**
* Sets the title of this boss bar
*/
- public setTitle(title: string): void;
+ setTitle(title: string): void;
/**
* Returns the color of this boss bar
*/
- public getColor(): org.bukkit.boss.BarColor;
+ getColor(): org.bukkit.boss.BarColor;
/**
* Sets the color of this boss bar.
*/
- public setColor(color: org.bukkit.boss.BarColor): void;
+ setColor(color: org.bukkit.boss.BarColor): void;
/**
* Returns the style of this boss bar
*/
- public getStyle(): org.bukkit.boss.BarStyle;
+ getStyle(): org.bukkit.boss.BarStyle;
/**
* Sets the bar style of this boss bar
*/
- public setStyle(style: org.bukkit.boss.BarStyle): void;
+ setStyle(style: org.bukkit.boss.BarStyle): void;
/**
* Remove an existing flag on this boss bar
*/
- public removeFlag(flag: org.bukkit.boss.BarFlag): void;
+ removeFlag(flag: org.bukkit.boss.BarFlag): void;
/**
* Add an optional flag to this boss bar
*/
- public addFlag(flag: org.bukkit.boss.BarFlag): void;
+ addFlag(flag: org.bukkit.boss.BarFlag): void;
/**
* Returns whether this boss bar as the passed flag set
*/
- public hasFlag(flag: org.bukkit.boss.BarFlag): boolean;
+ hasFlag(flag: org.bukkit.boss.BarFlag): boolean;
/**
* Sets the progress of the bar. Values should be between 0.0 (empty) and
* 1.0 (full)
*/
- public setProgress(progress: number): void;
+ setProgress(progress: number): void;
/**
* Returns the progress of the bar between 0.0 and 1.0
*/
- public getProgress(): number;
+ getProgress(): number;
/**
* Adds the player to this boss bar causing it to display on their screen.
*/
- public addPlayer(player: org.bukkit.entity.Player): void;
+ addPlayer(player: org.bukkit.entity.Player): void;
/**
* Removes the player from this boss bar causing it to be removed from their
* screen.
*/
- public removePlayer(player: org.bukkit.entity.Player): void;
+ removePlayer(player: org.bukkit.entity.Player): void;
/**
* Removes all players from this boss bar
*/
- public removeAll(): void;
+ removeAll(): void;
/**
* Returns all players viewing this boss bar
*/
- public getPlayers(): any[] /*java.util.List*/;
+ getPlayers(): any[] /*java.util.List*/;
/**
* Set if the boss bar is displayed to attached players.
*/
- public setVisible(visible: boolean): void;
+ setVisible(visible: boolean): void;
/**
* Return if the boss bar is displayed to attached players.
*/
- public isVisible(): boolean;
+ isVisible(): boolean;
/**
* Shows the previously hidden boss bar to all attached players
*/
- public show(): void;
+ show(): void;
/**
* Hides this boss bar from all attached players
*/
- public hide(): void;
+ hide(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts b/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts
index 65b640d6..add6d544 100644
--- a/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts
+++ b/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace boss {
- class KeyedBossBar {
+ // @ts-ignore
+ interface KeyedBossBar extends org.bukkit.boss.BossBar, org.bukkit.Keyed {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts
index 04215a2e..0a6fc4b9 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace command {
- class BlockCommandSender {
+ // @ts-ignore
+ interface BlockCommandSender extends org.bukkit.command.CommandSender {
/**
* Returns the block this command sender belongs to
*/
- public getBlock(): org.bukkit.block.Block;
+ getBlock(): org.bukkit.block.Block;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.Command.ts b/packages/bukkit/src/typings/org.bukkit.command.Command.ts
index a4b1be89..b4a904a0 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.Command.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.Command.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace command {
+ // @ts-ignore
abstract class Command {
constructor(name: string)
constructor(name: string, description: string, usageMessage: string, aliases: any[] /*java.util.List*/)
diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts
index 1c5f47d4..4f0c718e 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class CommandException {
+ // @ts-ignore
+ class CommandException {
/**
* Creates a new instance of CommandException
without detail
* message.
diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts
index 57a8e4fe..f28f5e88 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts
@@ -1,14 +1,15 @@
declare namespace org {
namespace bukkit {
namespace command {
- class CommandExecutor {
+ // @ts-ignore
+ interface CommandExecutor {
/**
* Executes the given command, returning its success.
*
* If false is returned, then the "usage" plugin.yml entry for this command
* (if defined) will be sent to the player.
*/
- public onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean;
+ onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts
index 6d20c644..5a43fda6 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class CommandMap {
+ // @ts-ignore
+ interface CommandMap {
/**
* Registers all the commands belonging to a certain plugin.
*
@@ -13,7 +14,7 @@ declare namespace org {
* registered
*
*/
- public registerAll(fallbackPrefix: string, commands: any[] /*java.util.List*/): void;
+ registerAll(fallbackPrefix: string, commands: any[] /*java.util.List*/): void;
/**
* Registers a command. Returns true on success; false if name is already
* taken and fallback had to be used.
@@ -26,7 +27,7 @@ declare namespace org {
* registered
*
*/
- public register(label: string, fallbackPrefix: string, command: org.bukkit.command.Command): boolean;
+ register(label: string, fallbackPrefix: string, command: org.bukkit.command.Command): boolean;
/**
* Registers a command. Returns true on success; false if name is already
* taken and fallback had to be used.
@@ -39,31 +40,31 @@ declare namespace org {
* registered
*
*/
- public register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean;
+ register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean;
/**
* Looks for the requested command and executes it if found.
*/
- public dispatch(sender: org.bukkit.command.CommandSender, cmdLine: string): boolean;
+ dispatch(sender: org.bukkit.command.CommandSender, cmdLine: string): boolean;
/**
* Clears all registered commands.
*/
- public clearCommands(): void;
+ clearCommands(): void;
/**
* Gets the command registered to the specified name
*/
- public getCommand(name: string): org.bukkit.command.Command;
+ getCommand(name: string): org.bukkit.command.Command;
/**
* Looks for the requested command and executes an appropriate
* tab-completer if found. This method will also tab-complete partial
* commands.
*/
- public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): any[] /*java.util.List*/;
+ tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): any[] /*java.util.List*/;
/**
* Looks for the requested command and executes an appropriate
* tab-completer if found. This method will also tab-complete partial
* commands.
*/
- public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): any[] /*java.util.List*/;
+ tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): any[] /*java.util.List*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts
index 327b3188..3a84549a 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts
@@ -1,23 +1,23 @@
declare namespace org {
namespace bukkit {
namespace command {
- class CommandSender {
+ interface CommandSender extends org.bukkit.permissions.Permissible {
/**
* Sends this sender a message
*/
- public sendMessage(message: string): void;
+ sendMessage(message: string): void;
/**
* Sends this sender multiple messages
*/
- public sendMessage(messages: string): void;
+ sendMessage(messages: string): void;
/**
* Returns the server instance that this command is running on
*/
- public getServer(): org.bukkit.Server;
+ getServer(): org.bukkit.Server;
/**
* Gets the name of this command sender
*/
- public getName(): string;
+ getName(): string;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts
index 05d9b110..8a049adc 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class ConsoleCommandSender {
+ // @ts-ignore
+ interface ConsoleCommandSender extends org.bukkit.command.CommandSender, org.bukkit.conversations.Conversable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts b/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts
index 79918f3d..89d9b79d 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class FormattedCommandAlias {
+ // @ts-ignore
+ class FormattedCommandAlias {
constructor(alias: string, formatStrings: string)
public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean;
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts b/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts
index 289f0f3a..9444e838 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class MultipleCommandAlias {
+ // @ts-ignore
+ class MultipleCommandAlias {
constructor(name: string, commands: org.bukkit.command.Command)
/**
* Gets the commands associated with the multi-command alias.
diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts
index 046034ea..db51dbff 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class PluginCommand {
+ // @ts-ignore
+ class PluginCommand implements org.bukkit.command.PluginIdentifiableCommand {
constructor(name: string, owner: org.bukkit.plugin.Plugin)
/**
* Executes the command, returning its success
diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts
index ab4b3294..4af2f3bd 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class PluginCommandYamlParser {
+ // @ts-ignore
+ class PluginCommandYamlParser {
constructor()
public static parse(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/;
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts
index ae0b5606..e3fe337d 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace command {
- class PluginIdentifiableCommand {
+ // @ts-ignore
+ interface PluginIdentifiableCommand {
/**
* Gets the owner of this PluginIdentifiableCommand.
*/
- public getPlugin(): org.bukkit.plugin.Plugin;
+ getPlugin(): org.bukkit.plugin.Plugin;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts
index 1d055cf5..47ac16af 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace command {
- class ProxiedCommandSender {
+ // @ts-ignore
+ interface ProxiedCommandSender extends org.bukkit.command.CommandSender {
/**
* Returns the CommandSender which triggered this proxied command
*/
- public getCaller(): org.bukkit.command.CommandSender;
+ getCaller(): org.bukkit.command.CommandSender;
/**
* Returns the CommandSender which is being used to call the command
*/
- public getCallee(): org.bukkit.command.CommandSender;
+ getCallee(): org.bukkit.command.CommandSender;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts
index dbc08078..82d50bc4 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class RemoteConsoleCommandSender {
+ // @ts-ignore
+ interface RemoteConsoleCommandSender extends org.bukkit.command.CommandSender {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts b/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts
index 8ba5894d..9f72782a 100644
--- a/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts
+++ b/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace command {
- class SimpleCommandMap {
+ // @ts-ignore
+ class SimpleCommandMap implements org.bukkit.command.CommandMap {
constructor(server: org.bukkit.Server)
protected knownCommands: Map
@@ -12,7 +13,7 @@ declare namespace org {
* If value is null, the value will be removed from the default
* Configuration source.
*/
- public addDefault(path: string, value: any): void;
+ addDefault(path: string, value: any): void;
/**
* Sets the default values of the given paths as provided.
*
@@ -20,7 +21,7 @@ declare namespace org {
* collection, then a new {@link MemoryConfiguration} will be created to
* hold the new default values.
*/
- public addDefaults(defaults: Map
@@ -33,14 +34,14 @@ declare namespace org {
* you require this, you should set the default source with {@link
* #setDefaults(org.bukkit.configuration.Configuration)}.
*/
- public addDefaults(defaults: org.bukkit.configuration.Configuration): void;
+ addDefaults(defaults: org.bukkit.configuration.Configuration): void;
/**
* Sets the source of all default values for this {@link Configuration}.
*
* If a previous source was set, or previous default values were defined,
* then they will not be copied to the new source.
*/
- public setDefaults(defaults: org.bukkit.configuration.Configuration): void;
+ setDefaults(defaults: org.bukkit.configuration.Configuration): void;
/**
* Gets the source {@link Configuration} for this configuration.
*
@@ -48,13 +49,13 @@ declare namespace org {
* a {@link MemoryConfiguration} will be returned. If no source was set
* and no defaults were set, then this method will return null.
*/
- public getDefaults(): org.bukkit.configuration.Configuration;
+ getDefaults(): org.bukkit.configuration.Configuration;
/**
* Gets the {@link ConfigurationOptions} for this {@link Configuration}.
*
* All setters through this method are chainable.
*/
- public options(): org.bukkit.configuration.ConfigurationOptions;
+ options(): org.bukkit.configuration.ConfigurationOptions;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts
index 328702b1..dea11a5a 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class ConfigurationOptions {
+ // @ts-ignore
+ class ConfigurationOptions {
constructor(configuration: org.bukkit.configuration.Configuration)
/**
* Returns the {@link Configuration} that this object is responsible for.
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts
index 3538d61a..add6e6c4 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class ConfigurationSection {
+ // @ts-ignore
+ interface ConfigurationSection {
/**
* Gets a set containing all keys in this section.
*
@@ -12,7 +13,7 @@ declare namespace org {
* If deep is set to false, then this will contain only the keys of any
* direct children, and not their own children.
*/
- public getKeys(deep: boolean): any[] /*java.util.Set*/;
+ getKeys(deep: boolean): any[] /*java.util.Set*/;
/**
* Gets a Map containing all keys and their values for this section.
*
@@ -23,14 +24,14 @@ declare namespace org {
* If deep is set to false, then this will contain only the keys and
* values of any direct children, and not their own children.
*/
- public getValues(deep: boolean): Map
* If the value for the requested path does not exist but a default value
* has been specified, this will return true.
*/
- public contains(path: string): boolean;
+ contains(path: string): boolean;
/**
* Checks if this {@link ConfigurationSection} contains the given path.
*
@@ -41,7 +42,7 @@ declare namespace org {
* If a boolean parameter of false has been specified, true will only be
* returned if there is a set value for the specified path.
*/
- public contains(path: string, ignoreDefault: boolean): boolean;
+ contains(path: string, ignoreDefault: boolean): boolean;
/**
* Checks if this {@link ConfigurationSection} has a value set for the
* given path.
@@ -49,7 +50,7 @@ declare namespace org {
* If the value for the requested path does not exist but a default value
* has been specified, this will still return false.
*/
- public isSet(path: string): boolean;
+ isSet(path: string): boolean;
/**
* Gets the path of this {@link ConfigurationSection} from its root {@link
* Configuration}
@@ -63,7 +64,7 @@ declare namespace org {
* To retrieve the single name of this section, that is, the final part of
* the path returned by this method, you may use {@link #getName()}.
*/
- public getCurrentPath(): string;
+ getCurrentPath(): string;
/**
* Gets the name of this individual {@link ConfigurationSection}, in the
* path.
@@ -71,7 +72,7 @@ declare namespace org {
* This will always be the final part of {@link #getCurrentPath()}, unless
* the section is orphaned.
*/
- public getName(): string;
+ getName(): string;
/**
* Gets the root {@link Configuration} that contains this {@link
* ConfigurationSection}
@@ -82,7 +83,7 @@ declare namespace org {
* If the section is no longer contained within its root for any reason,
* such as being replaced with a different value, this may return null.
*/
- public getRoot(): org.bukkit.configuration.Configuration;
+ getRoot(): org.bukkit.configuration.Configuration;
/**
* Gets the parent {@link ConfigurationSection} that directly contains
* this {@link ConfigurationSection}.
@@ -92,7 +93,7 @@ declare namespace org {
* If the section is no longer contained within its parent for any reason,
* such as being replaced with a different value, this may return null.
*/
- public getParent(): org.bukkit.configuration.ConfigurationSection;
+ getParent(): org.bukkit.configuration.ConfigurationSection;
/**
* Gets the requested Object by path.
*
@@ -100,7 +101,7 @@ declare namespace org {
* this will return the default value. If the Object does not exist and no
* default value was specified, this will return null.
*/
- public get(path: string): any;
+ get(path: string): any;
/**
* Gets the requested Object by path, returning a default value if not
* found.
@@ -109,7 +110,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public get(path: string, def: any): any;
+ get(path: string, def: any): any;
/**
* Sets the specified path to the given value.
*
@@ -121,7 +122,7 @@ declare namespace org {
* you to store {@link Configuration}s or {@link ConfigurationSection}s,
* please use {@link #createSection(java.lang.String)} for that.
*/
- public set(path: string, value: any): void;
+ set(path: string, value: any): void;
/**
* Creates an empty {@link ConfigurationSection} at the specified path.
*
@@ -129,7 +130,7 @@ declare namespace org {
* the previous value was itself a {@link ConfigurationSection}, it will
* be orphaned.
*/
- public createSection(path: string): org.bukkit.configuration.ConfigurationSection;
+ createSection(path: string): org.bukkit.configuration.ConfigurationSection;
/**
* Creates a {@link ConfigurationSection} at the specified path, with
* specified values.
@@ -138,7 +139,7 @@ declare namespace org {
* the previous value was itself a {@link ConfigurationSection}, it will
* be orphaned.
*/
- public createSection(path: string, map: Map
@@ -146,7 +147,7 @@ declare namespace org {
* this will return the default value. If the String does not exist and no
* default value was specified, this will return null.
*/
- public getString(path: string): string;
+ getString(path: string): string;
/**
* Gets the requested String by path, returning a default value if not
* found.
@@ -155,7 +156,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getString(path: string, def: string): string;
+ getString(path: string, def: string): string;
/**
* Checks if the specified path is a String.
*
@@ -164,7 +165,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a String and return appropriately.
*/
- public isString(path: string): boolean;
+ isString(path: string): boolean;
/**
* Gets the requested int by path.
*
@@ -172,7 +173,7 @@ declare namespace org {
* will return the default value. If the int does not exist and no default
* value was specified, this will return 0.
*/
- public getInt(path: string): number;
+ getInt(path: string): number;
/**
* Gets the requested int by path, returning a default value if not found.
*
@@ -180,7 +181,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getInt(path: string, def: number): number;
+ getInt(path: string, def: number): number;
/**
* Checks if the specified path is an int.
*
@@ -189,7 +190,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a int and return appropriately.
*/
- public isInt(path: string): boolean;
+ isInt(path: string): boolean;
/**
* Gets the requested boolean by path.
*
@@ -197,7 +198,7 @@ declare namespace org {
* this will return the default value. If the boolean does not exist and
* no default value was specified, this will return false.
*/
- public getBoolean(path: string): boolean;
+ getBoolean(path: string): boolean;
/**
* Gets the requested boolean by path, returning a default value if not
* found.
@@ -206,7 +207,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getBoolean(path: string, def: boolean): boolean;
+ getBoolean(path: string, def: boolean): boolean;
/**
* Checks if the specified path is a boolean.
*
@@ -215,7 +216,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a boolean and return appropriately.
*/
- public isBoolean(path: string): boolean;
+ isBoolean(path: string): boolean;
/**
* Gets the requested double by path.
*
@@ -223,7 +224,7 @@ declare namespace org {
* this will return the default value. If the double does not exist and no
* default value was specified, this will return 0.
*/
- public getDouble(path: string): number;
+ getDouble(path: string): number;
/**
* Gets the requested double by path, returning a default value if not
* found.
@@ -232,7 +233,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getDouble(path: string, def: number): number;
+ getDouble(path: string, def: number): number;
/**
* Checks if the specified path is a double.
*
@@ -241,7 +242,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a double and return appropriately.
*/
- public isDouble(path: string): boolean;
+ isDouble(path: string): boolean;
/**
* Gets the requested long by path.
*
@@ -249,7 +250,7 @@ declare namespace org {
* will return the default value. If the long does not exist and no
* default value was specified, this will return 0.
*/
- public getLong(path: string): number;
+ getLong(path: string): number;
/**
* Gets the requested long by path, returning a default value if not
* found.
@@ -258,7 +259,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getLong(path: string, def: number): number;
+ getLong(path: string, def: number): number;
/**
* Checks if the specified path is a long.
*
@@ -267,7 +268,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a long and return appropriately.
*/
- public isLong(path: string): boolean;
+ isLong(path: string): boolean;
/**
* Gets the requested List by path.
*
@@ -275,7 +276,7 @@ declare namespace org {
* will return the default value. If the List does not exist and no
* default value was specified, this will return null.
*/
- public getList(path: string): any[] /*java.util.List*/;
+ getList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List by path, returning a default value if not
* found.
@@ -284,7 +285,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getList(path: string, def: any[] /*java.util.List*/): any[] /*java.util.List*/;
+ getList(path: string, def: any[] /*java.util.List*/): any[] /*java.util.List*/;
/**
* Checks if the specified path is a List.
*
@@ -293,7 +294,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a List and return appropriately.
*/
- public isList(path: string): boolean;
+ isList(path: string): boolean;
/**
* Gets the requested List of String by path.
*
@@ -304,7 +305,7 @@ declare namespace org {
* This method will attempt to cast any values into a String if possible,
* but may miss any values out if they are not compatible.
*/
- public getStringList(path: string): any[] /*java.util.List*/;
+ getStringList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Integer by path.
*
@@ -315,7 +316,7 @@ declare namespace org {
* This method will attempt to cast any values into a Integer if possible,
* but may miss any values out if they are not compatible.
*/
- public getIntegerList(path: string): any[] /*java.util.List*/;
+ getIntegerList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Boolean by path.
*
@@ -326,7 +327,7 @@ declare namespace org {
* This method will attempt to cast any values into a Boolean if possible,
* but may miss any values out if they are not compatible.
*/
- public getBooleanList(path: string): any[] /*java.util.List*/;
+ getBooleanList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Double by path.
*
@@ -337,7 +338,7 @@ declare namespace org {
* This method will attempt to cast any values into a Double if possible,
* but may miss any values out if they are not compatible.
*/
- public getDoubleList(path: string): any[] /*java.util.List*/;
+ getDoubleList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Float by path.
*
@@ -348,7 +349,7 @@ declare namespace org {
* This method will attempt to cast any values into a Float if possible,
* but may miss any values out if they are not compatible.
*/
- public getFloatList(path: string): any[] /*java.util.List*/;
+ getFloatList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Long by path.
*
@@ -359,7 +360,7 @@ declare namespace org {
* This method will attempt to cast any values into a Long if possible,
* but may miss any values out if they are not compatible.
*/
- public getLongList(path: string): any[] /*java.util.List*/;
+ getLongList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Byte by path.
*
@@ -370,7 +371,7 @@ declare namespace org {
* This method will attempt to cast any values into a Byte if possible,
* but may miss any values out if they are not compatible.
*/
- public getByteList(path: string): any[] /*java.util.List*/;
+ getByteList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Character by path.
*
@@ -381,7 +382,7 @@ declare namespace org {
* This method will attempt to cast any values into a Character if
* possible, but may miss any values out if they are not compatible.
*/
- public getCharacterList(path: string): any[] /*java.util.List*/;
+ getCharacterList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Short by path.
*
@@ -392,7 +393,7 @@ declare namespace org {
* This method will attempt to cast any values into a Short if possible,
* but may miss any values out if they are not compatible.
*/
- public getShortList(path: string): any[] /*java.util.List*/;
+ getShortList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested List of Maps by path.
*
@@ -403,7 +404,7 @@ declare namespace org {
* This method will attempt to cast any values into a Map if possible, but
* may miss any values out if they are not compatible.
*/
- public getMapList(path: string): any[] /*java.util.List*/;
+ getMapList(path: string): any[] /*java.util.List*/;
/**
* Gets the requested object at the given path.
* If the Object does not exist but a default value has been specified, this
@@ -415,7 +416,7 @@ declare namespace org {
* Objects to Strings. However, #getObject(path, Boolean.class) is
* equivalent to {@link #getBoolean(String) #getBoolean(path)} for example.
*/
- public getObject(path: string, clazz: any): any;
+ getObject(path: string, clazz: any): any;
/**
* Gets the requested object at the given path, returning a default value if
* not found
@@ -430,7 +431,7 @@ declare namespace org {
* Boolean.class, def) is equivalent to {@link #getBoolean(String, boolean) #getBoolean(path,
* def)} for example.
*/
- public getObject(path: string, clazz: any, def: any): any;
+ getObject(path: string, clazz: any, def: any): any;
/**
* Gets the requested {@link ConfigurationSerializable} object at the given
* path.
@@ -438,7 +439,7 @@ declare namespace org {
* will return the default value. If the Object does not exist and no
* default value was specified, this will return null.
*/
- public getSerializable(path: string, clazz: any): org.bukkit.configuration.serialization.ConfigurationSerializable;
+ getSerializable(path: string, clazz: any): org.bukkit.configuration.serialization.ConfigurationSerializable;
/**
* Gets the requested {@link ConfigurationSerializable} object at the given
* path, returning a default value if not found
@@ -446,7 +447,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getSerializable(path: string, clazz: any, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable;
+ getSerializable(path: string, clazz: any, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable;
/**
* Gets the requested Vector by path.
*
@@ -454,7 +455,7 @@ declare namespace org {
* this will return the default value. If the Vector does not exist and no
* default value was specified, this will return null.
*/
- public getVector(path: string): org.bukkit.util.Vector;
+ getVector(path: string): org.bukkit.util.Vector;
/**
* Gets the requested {@link Vector} by path, returning a default value if
* not found.
@@ -463,7 +464,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector;
+ getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector;
/**
* Checks if the specified path is a Vector.
*
@@ -472,7 +473,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a Vector and return appropriately.
*/
- public isVector(path: string): boolean;
+ isVector(path: string): boolean;
/**
* Gets the requested OfflinePlayer by path.
*
@@ -481,7 +482,7 @@ declare namespace org {
* does not exist and no default value was specified, this will return
* null.
*/
- public getOfflinePlayer(path: string): org.bukkit.OfflinePlayer;
+ getOfflinePlayer(path: string): org.bukkit.OfflinePlayer;
/**
* Gets the requested {@link OfflinePlayer} by path, returning a default
* value if not found.
@@ -490,7 +491,7 @@ declare namespace org {
* will returned regardless of if a default has been identified in the
* root {@link Configuration}.
*/
- public getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer;
+ getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer;
/**
* Checks if the specified path is an OfflinePlayer.
*
@@ -499,7 +500,7 @@ declare namespace org {
* not exist but a default value has been specified, this will check if
* that default value is a OfflinePlayer and return appropriately.
*/
- public isOfflinePlayer(path: string): boolean;
+ isOfflinePlayer(path: string): boolean;
/**
* Gets the requested ItemStack by path.
*
@@ -507,7 +508,7 @@ declare namespace org {
* this will return the default value. If the ItemStack does not exist and
* no default value was specified, this will return null.
*/
- public getItemStack(path: string): org.bukkit.inventory.ItemStack;
+ getItemStack(path: string): org.bukkit.inventory.ItemStack;
/**
* Gets the requested {@link ItemStack} by path, returning a default value
* if not found.
@@ -516,7 +517,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack;
+ getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack;
/**
* Checks if the specified path is an ItemStack.
*
@@ -525,7 +526,7 @@ declare namespace org {
* exist but a default value has been specified, this will check if that
* default value is a ItemStack and return appropriately.
*/
- public isItemStack(path: string): boolean;
+ isItemStack(path: string): boolean;
/**
* Gets the requested Color by path.
*
@@ -533,7 +534,7 @@ declare namespace org {
* this will return the default value. If the Color does not exist and no
* default value was specified, this will return null.
*/
- public getColor(path: string): org.bukkit.Color;
+ getColor(path: string): org.bukkit.Color;
/**
* Gets the requested {@link Color} by path, returning a default value if
* not found.
@@ -542,7 +543,7 @@ declare namespace org {
* returned regardless of if a default has been identified in the root
* {@link Configuration}.
*/
- public getColor(path: string, def: org.bukkit.Color): org.bukkit.Color;
+ getColor(path: string, def: org.bukkit.Color): org.bukkit.Color;
/**
* Checks if the specified path is a Color.
*
@@ -551,7 +552,7 @@ declare namespace org {
* but a default value has been specified, this will check if that default
* value is a Color and return appropriately.
*/
- public isColor(path: string): boolean;
+ isColor(path: string): boolean;
/**
* Gets the requested ConfigurationSection by path.
*
@@ -560,7 +561,7 @@ declare namespace org {
* ConfigurationSection does not exist and no default value was specified,
* this will return null.
*/
- public getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection;
+ getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection;
/**
* Checks if the specified path is a ConfigurationSection.
*
@@ -570,7 +571,7 @@ declare namespace org {
* if that default value is a ConfigurationSection and return
* appropriately.
*/
- public isConfigurationSection(path: string): boolean;
+ isConfigurationSection(path: string): boolean;
/**
* Gets the equivalent {@link ConfigurationSection} from the default
* {@link Configuration} defined in {@link #getRoot()}.
@@ -579,7 +580,7 @@ declare namespace org {
* value for this path, or the value at this path is not a {@link
* ConfigurationSection} then this will return null.
*/
- public getDefaultSection(): org.bukkit.configuration.ConfigurationSection;
+ getDefaultSection(): org.bukkit.configuration.ConfigurationSection;
/**
* Sets the default value in the root at the given path as provided.
*
@@ -594,7 +595,7 @@ declare namespace org {
* this will create a new section at the path, replacing anything that may
* have existed there previously.
*/
- public addDefault(path: string, value: any): void;
+ addDefault(path: string, value: any): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts b/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts
index b614c335..b5f095d7 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class InvalidConfigurationException {
+ // @ts-ignore
+ class InvalidConfigurationException {
/**
* Creates a new instance of InvalidConfigurationException without a
* message or cause.
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts
index ac419ac5..9151aa9c 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class MemoryConfiguration {
+ // @ts-ignore
+ class MemoryConfiguration implements org.bukkit.configuration.Configuration {
/**
* Creates an empty {@link MemoryConfiguration} with no default values.
*/
@@ -18,7 +19,6 @@ declare namespace org {
public setDefaults(defaults: org.bukkit.configuration.Configuration): void;
public getDefaults(): org.bukkit.configuration.Configuration;
public getParent(): org.bukkit.configuration.ConfigurationSection;
- public options(): org.bukkit.configuration.MemoryConfigurationOptions;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts
index 81795842..a656c4d7 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class MemoryConfigurationOptions {
+ // @ts-ignore
+ class MemoryConfigurationOptions {
constructor(configuration: org.bukkit.configuration.MemoryConfiguration)
public configuration(): org.bukkit.configuration.MemoryConfiguration;
public copyDefaults(value: boolean): org.bukkit.configuration.MemoryConfigurationOptions;
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts
index 4a25c85b..5edab5e0 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace configuration {
- class MemorySection {
+ // @ts-ignore
+ class MemorySection implements org.bukkit.configuration.ConfigurationSection {
/**
* Creates an empty MemorySection for use as a root {@link Configuration}
* section.
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts
index 8e4296d1..a75404f4 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts
@@ -2,6 +2,7 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
+ // @ts-ignore
abstract class FileConfiguration {
/**
* Creates an empty {@link FileConfiguration} with no default values.
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts
index 5e44c219..b60206a2 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
- class FileConfigurationOptions {
+ // @ts-ignore
+ class FileConfigurationOptions {
constructor(configuration: org.bukkit.configuration.MemoryConfiguration)
public configuration(): org.bukkit.configuration.file.FileConfiguration;
public copyDefaults(value: boolean): org.bukkit.configuration.file.FileConfigurationOptions;
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts
index bebaa1ed..7434a029 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
- class YamlConfiguration {
+ // @ts-ignore
+ class YamlConfiguration {
constructor()
protected static COMMENT_PREFIX: string;
protected static BLANK_CONFIG: string;
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts
index 51c4f378..1fecea79 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
- class YamlConfigurationOptions {
+ // @ts-ignore
+ class YamlConfigurationOptions {
constructor(configuration: org.bukkit.configuration.file.YamlConfiguration)
public configuration(): org.bukkit.configuration.file.YamlConfiguration;
public copyDefaults(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions;
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts
index 652fbca1..b94659c4 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
- class YamlConstructor {
+ // @ts-ignore
+ class YamlConstructor {
constructor()
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts
index b8e47900..c6b8eb7b 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace file {
- class YamlRepresenter {
+ // @ts-ignore
+ class YamlRepresenter {
constructor()
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts
index 0d654a5c..f77320ca 100644
--- a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts
@@ -2,14 +2,15 @@ declare namespace org {
namespace bukkit {
namespace configuration {
namespace serialization {
- class ConfigurationSerializable {
+ // @ts-ignore
+ interface ConfigurationSerializable {
/**
* Creates a Map representation of this class.
*
* This class must provide a method to restore this class, as defined in
* the {@link ConfigurationSerializable} interface javadocs.
*/
- public serialize(): Map
* This name MUST be unique. We recommend using names such as
* "MyPluginThing" instead of "Thing".
*/
- public value(): string;
+ value(): string;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts
index c3a418e4..f8c558d2 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace conversations {
+ // @ts-ignore
abstract class BooleanPrompt {
constructor()
protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts
index 878b1628..3cb6623a 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts
@@ -1,33 +1,34 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class Conversable {
+ // @ts-ignore
+ interface Conversable {
/**
* Tests to see of a Conversable object is actively engaged in a
* conversation.
*/
- public isConversing(): boolean;
+ isConversing(): boolean;
/**
* Accepts input into the active conversation. If no conversation is in
* progress, this method does nothing.
*/
- public acceptConversationInput(input: string): void;
+ acceptConversationInput(input: string): void;
/**
* Enters into a dialog with a Conversation object.
*/
- public beginConversation(conversation: org.bukkit.conversations.Conversation): boolean;
+ beginConversation(conversation: org.bukkit.conversations.Conversation): boolean;
/**
* Abandons an active conversation.
*/
- public abandonConversation(conversation: org.bukkit.conversations.Conversation): void;
+ abandonConversation(conversation: org.bukkit.conversations.Conversation): void;
/**
* Abandons an active conversation.
*/
- public abandonConversation(conversation: org.bukkit.conversations.Conversation, details: org.bukkit.conversations.ConversationAbandonedEvent): void;
+ abandonConversation(conversation: org.bukkit.conversations.Conversation, details: org.bukkit.conversations.ConversationAbandonedEvent): void;
/**
* Sends this sender a message raw
*/
- public sendRawMessage(message: string): void;
+ sendRawMessage(message: string): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts
index f42f3c91..eda94ea6 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace conversations {
namespace Conversation {
- class ConversationState {
+ // @ts-ignore
+ class ConversationState {
public static UNSTARTED: org.bukkit.conversations.Conversation.ConversationState;
public static STARTED: org.bukkit.conversations.Conversation.ConversationState;
public static ABANDONED: org.bukkit.conversations.Conversation.ConversationState;
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts
index 923574fc..f9af77ce 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class Conversation {
+ // @ts-ignore
+ class Conversation {
/**
* Initializes a new Conversation.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts
index b2d0b6f8..5a829951 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class ConversationAbandonedEvent {
+ // @ts-ignore
+ class ConversationAbandonedEvent {
constructor(conversation: org.bukkit.conversations.Conversation)
constructor(conversation: org.bukkit.conversations.Conversation, canceller: org.bukkit.conversations.ConversationCanceller)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts
index ce9984ba..e698d6cf 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class ConversationAbandonedListener {
+ // @ts-ignore
+ interface ConversationAbandonedListener {
/**
* Called whenever a {@link Conversation} is abandoned.
*/
- public conversationAbandoned(abandonedEvent: org.bukkit.conversations.ConversationAbandonedEvent): void;
+ conversationAbandoned(abandonedEvent: org.bukkit.conversations.ConversationAbandonedEvent): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts
index 3fd090d0..e4d0baec 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts
@@ -1,22 +1,23 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class ConversationCanceller {
+ // @ts-ignore
+ interface ConversationCanceller {
/**
* Sets the conversation this ConversationCanceller can optionally cancel.
*/
- public setConversation(conversation: org.bukkit.conversations.Conversation): void;
+ setConversation(conversation: org.bukkit.conversations.Conversation): void;
/**
* Cancels a conversation based on user input.
*/
- public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
+ cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
/**
* Allows the {@link ConversationFactory} to duplicate this
* ConversationCanceller when creating a new {@link Conversation}.
*
* Implementing this method should reset any internal object state.
*/
- public clone(): org.bukkit.conversations.ConversationCanceller;
+ clone(): org.bukkit.conversations.ConversationCanceller;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts
index 96e992bc..ce0f86d0 100644
--- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts
+++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace conversations {
- class ConversationContext {
+ // @ts-ignore
+ class ConversationContext {
constructor(plugin: org.bukkit.plugin.Plugin, forWhom: org.bukkit.conversations.Conversable, initialSessionData: Map
@@ -40,29 +41,29 @@ declare namespace org {
* Critical arrows generally occur when a player fully draws a bow before
* firing.
*/
- public isCritical(): boolean;
+ isCritical(): boolean;
/**
* Sets whether or not this arrow should be critical.
*/
- public setCritical(critical: boolean): void;
+ setCritical(critical: boolean): void;
/**
* Gets whether this arrow is in a block or not.
*
* Arrows in a block are motionless and may be picked up by players.
*/
- public isInBlock(): boolean;
+ isInBlock(): boolean;
/**
* Gets the block to which this arrow is attached.
*/
- public getAttachedBlock(): org.bukkit.block.Block;
+ getAttachedBlock(): org.bukkit.block.Block;
/**
* Gets the current pickup status of this arrow.
*/
- public getPickupStatus(): org.bukkit.entity.AbstractArrow.PickupStatus;
+ getPickupStatus(): org.bukkit.entity.AbstractArrow.PickupStatus;
/**
* Sets the current pickup status of this arrow.
*/
- public setPickupStatus(status: org.bukkit.entity.AbstractArrow.PickupStatus): void;
+ setPickupStatus(status: org.bukkit.entity.AbstractArrow.PickupStatus): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts
index 43201180..a78de381 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class AbstractHorse {
+ // @ts-ignore
+ interface AbstractHorse extends org.bukkit.entity.Animals, org.bukkit.entity.Vehicle, org.bukkit.inventory.InventoryHolder, org.bukkit.entity.Tameable {
/**
* Gets the horse's variant.
*
@@ -9,8 +10,8 @@ declare namespace org {
* Whether a horse is a regular horse, donkey, mule, or other kind of horse
* is determined using the variant.
*/
- public getVariant(): org.bukkit.entity.Horse.Variant;
- public setVariant(variant: org.bukkit.entity.Horse.Variant): void;
+ getVariant(): org.bukkit.entity.Horse.Variant;
+ setVariant(variant: org.bukkit.entity.Horse.Variant): void;
/**
* Gets the domestication level of this horse.
*
@@ -18,7 +19,7 @@ declare namespace org {
* becoming tame. As the domestication level gets closer to the max
* domestication level, the chance of the horse becoming tame increases.
*/
- public getDomestication(): number;
+ getDomestication(): number;
/**
* Sets the domestication level of this horse.
*
@@ -29,14 +30,14 @@ declare namespace org {
* the max domestication level of the horse, determined with
* {@link #getMaxDomestication()}
*/
- public setDomestication(level: number): void;
+ setDomestication(level: number): void;
/**
* Gets the maximum domestication level of this horse.
*
* The higher this level is, the longer it will likely take
* for the horse to be tamed.
*/
- public getMaxDomestication(): number;
+ getMaxDomestication(): number;
/**
* Sets the maximum domestication level of this horse.
*
@@ -46,14 +47,14 @@ declare namespace org {
*
* Maximum domestication must be greater than zero.
*/
- public setMaxDomestication(level: number): void;
+ setMaxDomestication(level: number): void;
/**
* Gets the jump strength of this horse.
*
* Jump strength defines how high the horse can jump. A higher jump strength
* increases how high a jump will go.
*/
- public getJumpStrength(): number;
+ getJumpStrength(): number;
/**
* Sets the jump strength of this horse.
*
@@ -62,8 +63,8 @@ declare namespace org {
* You cannot set a jump strength to a value below 0 or
* above 2.
*/
- public setJumpStrength(strength: number): void;
- public getInventory(): org.bukkit.inventory.AbstractHorseInventory;
+ setJumpStrength(strength: number): void;
+ getInventory(): org.bukkit.inventory.AbstractHorseInventory;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts
index 20b87365..1d666119 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class AbstractVillager {
+ // @ts-ignore
+ interface AbstractVillager extends org.bukkit.entity.Ageable, org.bukkit.entity.NPC, org.bukkit.inventory.InventoryHolder, org.bukkit.inventory.Merchant {
/**
* Gets this villager's inventory.
*
* This does not imply any persistence of state past the method call.
*/
- public isAwake(): boolean;
+ isAwake(): boolean;
/**
* This method modifies the current waking state of this bat.
*
* This does not prevent a bat from spontaneously awaking itself, or from
* reattaching itself to a block.
*/
- public setAwake(state: boolean): void;
+ setAwake(state: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts b/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts
index 2e8ced2e..7c72b2d8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Blaze {
+ // @ts-ignore
+ interface Blaze extends org.bukkit.entity.Monster {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts
index 541676d6..44eeb2c4 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts
@@ -1,56 +1,57 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Boat {
+ // @ts-ignore
+ interface Boat extends org.bukkit.entity.Vehicle {
/**
* Gets the wood type of the boat.
*/
- public getWoodType(): org.bukkit.TreeSpecies;
+ getWoodType(): org.bukkit.TreeSpecies;
/**
* Sets the wood type of the boat.
*/
- public setWoodType(species: org.bukkit.TreeSpecies): void;
+ setWoodType(species: org.bukkit.TreeSpecies): void;
/**
* Gets the maximum speed of a boat. The speed is unrelated to the
* velocity.
*/
- public getMaxSpeed(): number;
+ getMaxSpeed(): number;
/**
* Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D.
*/
- public setMaxSpeed(speed: number): void;
+ setMaxSpeed(speed: number): void;
/**
* Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied
* boats. The default is 0.2.
*/
- public getOccupiedDeceleration(): number;
+ getOccupiedDeceleration(): number;
/**
* Sets the deceleration rate (newSpeed = curSpeed * rate) of occupied
* boats. Setting this to a higher value allows for quicker acceleration.
* The default is 0.2.
*/
- public setOccupiedDeceleration(rate: number): void;
+ setOccupiedDeceleration(rate: number): void;
/**
* Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied
* boats. The default is -1. Values below 0 indicate that no additional
* deceleration is imposed.
*/
- public getUnoccupiedDeceleration(): number;
+ getUnoccupiedDeceleration(): number;
/**
* Sets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied
* boats. Setting this to a higher value allows for quicker deceleration
* of boats when a player disembarks. The default is -1. Values below 0
* indicate that no additional deceleration is imposed.
*/
- public setUnoccupiedDeceleration(rate: number): void;
+ setUnoccupiedDeceleration(rate: number): void;
/**
* Get whether boats can work on land.
*/
- public getWorkOnLand(): boolean;
+ getWorkOnLand(): boolean;
/**
* Set whether boats can work on land.
*/
- public setWorkOnLand(workOnLand: boolean): void;
+ setWorkOnLand(workOnLand: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts b/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts
index 0108c135..9badd8f9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Boss {
+ // @ts-ignore
+ interface Boss extends org.bukkit.entity.Entity {
/**
* Returns the {@link BossBar} of the {@link Boss}
*/
- public getBossBar(): org.bukkit.boss.BossBar;
+ getBossBar(): org.bukkit.boss.BossBar;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts
index 3e4e1691..ad15fe87 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Cat {
- class Type {
+ // @ts-ignore
+ class Type {
public static TABBY: org.bukkit.entity.Cat.Type;
public static BLACK: org.bukkit.entity.Cat.Type;
public static RED: org.bukkit.entity.Cat.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts
index 57fae02c..3fe2e601 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Cat {
+ // @ts-ignore
+ interface Cat extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable {
/**
* Gets the current type of this cat.
*/
- public getCatType(): org.bukkit.entity.Cat.Type;
+ getCatType(): org.bukkit.entity.Cat.Type;
/**
* Sets the current type of this cat.
*/
- public setCatType(type: org.bukkit.entity.Cat.Type): void;
+ setCatType(type: org.bukkit.entity.Cat.Type): void;
/**
* Get the collar color of this cat
*/
- public getCollarColor(): org.bukkit.DyeColor;
+ getCollarColor(): org.bukkit.DyeColor;
/**
* Set the collar color of this cat
*/
- public setCollarColor(color: org.bukkit.DyeColor): void;
+ setCollarColor(color: org.bukkit.DyeColor): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts b/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts
index 1a4abc92..25286c7d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class CaveSpider {
+ // @ts-ignore
+ interface CaveSpider extends org.bukkit.entity.Spider {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts
index af398df1..2c9a08c6 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ChestedHorse {
+ // @ts-ignore
+ interface ChestedHorse extends org.bukkit.entity.AbstractHorse {
/**
* Gets whether the horse has a chest equipped.
*/
- public isCarryingChest(): boolean;
+ isCarryingChest(): boolean;
/**
* Sets whether the horse has a chest equipped. Removing a chest will also
* clear the chest's inventory.
*/
- public setCarryingChest(chest: boolean): void;
+ setCarryingChest(chest: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts b/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts
index b230ca8d..4067f10e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Chicken {
+ // @ts-ignore
+ interface Chicken extends org.bukkit.entity.Animals {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts
index 9d862c46..cea97103 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Cod {
+ // @ts-ignore
+ interface Cod extends org.bukkit.entity.Fish {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts b/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts
index 1a9ef881..b6a2d2ae 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ComplexEntityPart {
+ // @ts-ignore
+ interface ComplexEntityPart extends org.bukkit.entity.Entity {
/**
* Gets the parent {@link ComplexLivingEntity} of this part.
*/
- public getParent(): org.bukkit.entity.ComplexLivingEntity;
+ getParent(): org.bukkit.entity.ComplexLivingEntity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts
index a863fe7c..6169e6d6 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ComplexLivingEntity {
+ // @ts-ignore
+ interface ComplexLivingEntity extends org.bukkit.entity.LivingEntity {
/**
* Gets a list of parts that belong to this complex entity
*/
- public getParts(): any[] /*java.util.Set*/;
+ getParts(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts
index d349c499..17d42b6a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Cow {
+ // @ts-ignore
+ interface Cow extends org.bukkit.entity.Animals {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts b/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts
index c0eb9d3c..164ce29d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Creature {
+ // @ts-ignore
+ interface Creature extends org.bukkit.entity.Mob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts b/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts
index 11ffcb3a..e2c252af 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts
@@ -1,42 +1,43 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Creeper {
+ // @ts-ignore
+ interface Creeper extends org.bukkit.entity.Monster {
/**
* Checks if this Creeper is powered (Electrocuted)
*/
- public isPowered(): boolean;
+ isPowered(): boolean;
/**
* Sets the Powered status of this Creeper
*/
- public setPowered(value: boolean): void;
+ setPowered(value: boolean): void;
/**
* Set the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* primed state before exploding.
*/
- public setMaxFuseTicks(ticks: number): void;
+ setMaxFuseTicks(ticks: number): void;
/**
* Get the maximum fuse ticks for this Creeper, where the maximum ticks
* is the amount of time in which a creeper is allowed to be in the
* primed state before exploding.
*/
- public getMaxFuseTicks(): number;
+ getMaxFuseTicks(): number;
/**
* Set the explosion radius in which this Creeper's explosion will affect.
*/
- public setExplosionRadius(radius: number): void;
+ setExplosionRadius(radius: number): void;
/**
* Get the explosion radius in which this Creeper's explosion will affect.
*/
- public getExplosionRadius(): number;
+ getExplosionRadius(): number;
/**
* Makes this Creeper explode instantly.
* The resulting explosion can be cancelled by an
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
* griefing gamerule.
*/
- public explode(): void;
+ explode(): void;
/**
* Ignites this Creeper, beginning its fuse.
* The amount of time the Creeper takes to explode will depend on what
@@ -45,7 +46,7 @@ declare namespace org {
* {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob
* griefing gamerule.
*/
- public ignite(): void;
+ ignite(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts
index f98c37ba..7fa3f6f3 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts
@@ -1,29 +1,30 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Damageable {
+ // @ts-ignore
+ interface Damageable extends org.bukkit.entity.Entity {
/**
* Deals the given amount of damage to this entity.
*/
- public damage(amount: number): void;
+ damage(amount: number): void;
/**
* Deals the given amount of damage to this entity, from a specified
* entity.
*/
- public damage(amount: number, source: org.bukkit.entity.Entity): void;
+ damage(amount: number, source: org.bukkit.entity.Entity): void;
/**
* Gets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is dead.
*/
- public getHealth(): number;
+ getHealth(): number;
/**
* Sets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is
* dead.
*/
- public setHealth(health: number): void;
+ setHealth(health: number): void;
/**
* Gets the maximum health this entity has.
*/
- public getMaxHealth(): number;
+ getMaxHealth(): number;
/**
* Sets the maximum health this entity can have.
*
@@ -33,11 +34,11 @@ declare namespace org {
* Note: An entity with a health bar ({@link Player}, {@link EnderDragon},
* {@link Wither}, etc...} will have their bar scaled accordingly.
*/
- public setMaxHealth(health: number): void;
+ setMaxHealth(health: number): void;
/**
* Resets the max health to the original amount.
*/
- public resetMaxHealth(): void;
+ resetMaxHealth(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts b/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts
index 4ff99a98..2c72f34d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Dolphin {
+ // @ts-ignore
+ interface Dolphin extends org.bukkit.entity.WaterMob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts b/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts
index 71619003..aad3de39 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Donkey {
+ // @ts-ignore
+ interface Donkey extends org.bukkit.entity.ChestedHorse {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts
index f03f3287..2c50cb8a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class DragonFireball {
+ // @ts-ignore
+ interface DragonFireball extends org.bukkit.entity.Fireball {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts b/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts
index 8b9bcf57..c748d4bb 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Drowned {
+ // @ts-ignore
+ interface Drowned extends org.bukkit.entity.Zombie {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts b/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts
index c805d2e7..9e99c496 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Egg {
+ // @ts-ignore
+ interface Egg extends org.bukkit.entity.Projectile {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts b/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts
index b6726edc..b08c84ff 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ElderGuardian {
+ // @ts-ignore
+ interface ElderGuardian extends org.bukkit.entity.Guardian {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts
index 46e1ce73..fa0f0adf 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts
@@ -1,26 +1,27 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EnderCrystal {
+ // @ts-ignore
+ interface EnderCrystal extends org.bukkit.entity.Entity {
/**
* Return whether or not this end crystal is showing the
* bedrock slate underneath it.
*/
- public isShowingBottom(): boolean;
+ isShowingBottom(): boolean;
/**
* Sets whether or not this end crystal is showing the
* bedrock slate underneath it.
*/
- public setShowingBottom(showing: boolean): void;
+ setShowingBottom(showing: boolean): void;
/**
* Gets the location that this end crystal is pointing its beam to.
*/
- public getBeamTarget(): org.bukkit.Location;
+ getBeamTarget(): org.bukkit.Location;
/**
* Sets the location that this end crystal is pointing to. Passing a null
* value will remove the current beam.
*/
- public setBeamTarget(location: org.bukkit.Location): void;
+ setBeamTarget(location: org.bukkit.Location): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts
index b0748542..a7e63257 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace EnderDragon {
- class Phase {
+ // @ts-ignore
+ class Phase {
public static CIRCLING: org.bukkit.entity.EnderDragon.Phase;
public static STRAFING: org.bukkit.entity.EnderDragon.Phase;
public static FLY_TO_PORTAL: org.bukkit.entity.EnderDragon.Phase;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts
index 804b5729..64f6c24d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EnderDragon {
+ // @ts-ignore
+ interface EnderDragon extends org.bukkit.entity.ComplexLivingEntity, org.bukkit.entity.Boss {
/**
* Gets the current phase that the dragon is performing.
*/
- public getPhase(): org.bukkit.entity.EnderDragon.Phase;
+ getPhase(): org.bukkit.entity.EnderDragon.Phase;
/**
* Sets the next phase for the dragon to perform.
*/
- public setPhase(phase: org.bukkit.entity.EnderDragon.Phase): void;
+ setPhase(phase: org.bukkit.entity.EnderDragon.Phase): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts
index 80fbc673..bcd34942 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts
@@ -1,8 +1,9 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EnderDragonPart {
- public getParent(): org.bukkit.entity.EnderDragon;
+ // @ts-ignore
+ interface EnderDragonPart extends org.bukkit.entity.ComplexEntityPart, org.bukkit.entity.Damageable {
+ getParent(): org.bukkit.entity.EnderDragon;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts
index 04318389..1dd613f4 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EnderPearl {
+ // @ts-ignore
+ interface EnderPearl extends org.bukkit.entity.Projectile {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts
index 92686e25..f3ad4157 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts
@@ -1,40 +1,41 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EnderSignal {
+ // @ts-ignore
+ interface EnderSignal extends org.bukkit.entity.Entity {
/**
* Get the location this EnderSignal is moving towards.
*/
- public getTargetLocation(): org.bukkit.Location;
+ getTargetLocation(): org.bukkit.Location;
/**
* Set the {@link Location} this EnderSignal is moving towards.
*
* 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;
/**
* Sets this entity's velocity
*/
- public setVelocity(velocity: org.bukkit.util.Vector): void;
+ setVelocity(velocity: org.bukkit.util.Vector): void;
/**
* Gets this entity's current velocity
*/
- public getVelocity(): org.bukkit.util.Vector;
+ getVelocity(): org.bukkit.util.Vector;
/**
* Gets the entity's height
*/
- public getHeight(): number;
+ getHeight(): number;
/**
* Gets the entity's width
*/
- public getWidth(): number;
+ getWidth(): number;
/**
* Gets the entity's current bounding box.
*
* The returned bounding box reflects the entity's current location and
* size.
*/
- public getBoundingBox(): org.bukkit.util.BoundingBox;
+ getBoundingBox(): org.bukkit.util.BoundingBox;
/**
* Returns true if the entity is supported by a block. This value is a
* state updated by the server and is not recalculated unless the entity
* moves.
*/
- public isOnGround(): boolean;
+ isOnGround(): boolean;
/**
* Gets the current world this entity resides in
*/
- public getWorld(): org.bukkit.World;
+ getWorld(): org.bukkit.World;
/**
* Sets the entity's rotation.
*
* Note that if the entity is affected by AI, it may override this rotation.
*/
- public setRotation(yaw: number, pitch: number): void;
+ setRotation(yaw: number, pitch: number): void;
/**
* Teleports this entity to the given location. If this entity is riding a
* vehicle, it will be dismounted prior to teleportation.
*/
- public teleport(location: org.bukkit.Location): boolean;
+ teleport(location: org.bukkit.Location): boolean;
/**
* Teleports this entity to the given location. If this entity is riding a
* vehicle, it will be dismounted prior to teleportation.
*/
- public teleport(location: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean;
+ teleport(location: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean;
/**
* Teleports this entity to the target Entity. If this entity is riding a
* vehicle, it will be dismounted prior to teleportation.
*/
- public teleport(destination: org.bukkit.entity.Entity): boolean;
+ teleport(destination: org.bukkit.entity.Entity): boolean;
/**
* Teleports this entity to the target Entity. If this entity is riding a
* vehicle, it will be dismounted prior to teleportation.
*/
- public teleport(destination: org.bukkit.entity.Entity, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean;
+ teleport(destination: org.bukkit.entity.Entity, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean;
/**
* Returns a list of entities within a bounding box centered around this
* entity
*/
- public getNearbyEntities(x: number, y: number, z: number): any[] /*java.util.List*/;
+ getNearbyEntities(x: number, y: number, z: number): any[] /*java.util.List*/;
/**
* Returns a unique id for this entity
*/
- public getEntityId(): number;
+ getEntityId(): number;
/**
* Returns the entity's current fire ticks (ticks before the entity stops
* being on fire).
*/
- public getFireTicks(): number;
+ getFireTicks(): number;
/**
* Returns the entity's maximum fire ticks.
*/
- public getMaxFireTicks(): number;
+ getMaxFireTicks(): number;
/**
* Sets the entity's current fire ticks (ticks before the entity stops
* being on fire).
*/
- public setFireTicks(ticks: number): void;
+ setFireTicks(ticks: number): void;
/**
* Mark the entity's removal.
*/
- public remove(): void;
+ remove(): void;
/**
* Returns true if this entity has been marked for removal.
*/
- public isDead(): boolean;
+ isDead(): boolean;
/**
* Returns false if the entity has died or been despawned for some other
* reason.
*/
- public isValid(): boolean;
+ isValid(): boolean;
/**
* Gets the {@link Server} that contains this Entity
*/
- public getServer(): org.bukkit.Server;
+ getServer(): org.bukkit.Server;
/**
* Returns true if the entity gets persisted.
*
@@ -127,77 +128,77 @@ declare namespace org {
* {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls
* despawning of living entities.
*/
- public isPersistent(): boolean;
+ isPersistent(): boolean;
/**
* Sets whether or not the entity gets persisted.
*/
- public setPersistent(persistent: boolean): void;
+ setPersistent(persistent: boolean): void;
/**
* Gets the primary passenger of a vehicle. For vehicles that could have
* multiple passengers, this will only return the primary passenger.
*/
- public getPassenger(): org.bukkit.entity.Entity;
+ getPassenger(): org.bukkit.entity.Entity;
/**
* Set the passenger of a vehicle.
*/
- public setPassenger(passenger: org.bukkit.entity.Entity): boolean;
+ setPassenger(passenger: org.bukkit.entity.Entity): boolean;
/**
* Gets a list of passengers of this vehicle.
*
* The returned list will not be directly linked to the entity's current
* passengers, and no guarantees are made as to its mutability.
*/
- public getPassengers(): any[] /*java.util.List*/;
+ getPassengers(): any[] /*java.util.List*/;
/**
* Add a passenger to the vehicle.
*/
- public addPassenger(passenger: org.bukkit.entity.Entity): boolean;
+ addPassenger(passenger: org.bukkit.entity.Entity): boolean;
/**
* Remove a passenger from the vehicle.
*/
- public removePassenger(passenger: org.bukkit.entity.Entity): boolean;
+ removePassenger(passenger: org.bukkit.entity.Entity): boolean;
/**
* Check if a vehicle has passengers.
*/
- public isEmpty(): boolean;
+ isEmpty(): boolean;
/**
* Eject any passenger.
*/
- public eject(): boolean;
+ eject(): boolean;
/**
* Returns the distance this entity has fallen
*/
- public getFallDistance(): number;
+ getFallDistance(): number;
/**
* Sets the fall distance for this entity
*/
- public setFallDistance(distance: number): void;
+ setFallDistance(distance: number): void;
/**
* Record the last {@link EntityDamageEvent} inflicted on this entity
*/
- public setLastDamageCause(event: org.bukkit.event.entity.EntityDamageEvent): void;
+ setLastDamageCause(event: org.bukkit.event.entity.EntityDamageEvent): void;
/**
* Retrieve the last {@link EntityDamageEvent} inflicted on this entity.
* This event may have been cancelled.
*/
- public getLastDamageCause(): org.bukkit.event.entity.EntityDamageEvent;
+ getLastDamageCause(): org.bukkit.event.entity.EntityDamageEvent;
/**
* Returns a unique and persistent id for this entity
*/
- public getUniqueId(): any;
+ getUniqueId(): any;
/**
* Gets the amount of ticks this entity has lived for.
*
* This is the equivalent to "age" in entities.
*/
- public getTicksLived(): number;
+ getTicksLived(): number;
/**
* Sets the amount of ticks this entity has lived for.
*
* This is the equivalent to "age" in entities. May not be less than one
* tick.
*/
- public setTicksLived(value: number): void;
+ setTicksLived(value: number): void;
/**
* Performs the specified {@link EntityEffect} for this entity.
*
@@ -205,26 +206,26 @@ declare namespace org {
*
* If the effect is not applicable to this class of entity, it will not play.
*/
- public playEffect(type: org.bukkit.EntityEffect): void;
+ playEffect(type: org.bukkit.EntityEffect): void;
/**
* Get the type of the entity.
*/
- public getType(): org.bukkit.entity.EntityType;
+ getType(): org.bukkit.entity.EntityType;
/**
* Returns whether this entity is inside a vehicle.
*/
- public isInsideVehicle(): boolean;
+ isInsideVehicle(): boolean;
/**
* Leave the current vehicle. If the entity is currently in a vehicle (and
* is removed from it), true will be returned, otherwise false will be
* returned.
*/
- public leaveVehicle(): boolean;
+ leaveVehicle(): boolean;
/**
* Get the vehicle that this player is inside. If there is no vehicle,
* null will be returned.
*/
- public getVehicle(): org.bukkit.entity.Entity;
+ getVehicle(): org.bukkit.entity.Entity;
/**
* Sets whether or not to display the mob's custom name client side. The
* name will be displayed above the mob similarly to a player.
@@ -232,79 +233,79 @@ declare namespace org {
* This value has no effect on players, they will always display their
* name.
*/
- public setCustomNameVisible(flag: boolean): void;
+ setCustomNameVisible(flag: boolean): void;
/**
* Gets whether or not the mob's custom name is displayed client side.
*
* This value has no effect on players, they will always display their
* name.
*/
- public isCustomNameVisible(): boolean;
+ isCustomNameVisible(): boolean;
/**
* Sets whether the entity has a team colored (default: white) glow.
*/
- public setGlowing(flag: boolean): void;
+ setGlowing(flag: boolean): void;
/**
* Gets whether the entity is glowing or not.
*/
- public isGlowing(): boolean;
+ isGlowing(): boolean;
/**
* Sets whether the entity is invulnerable or not.
*
* When an entity is invulnerable it can only be damaged by players in
* creative mode.
*/
- public setInvulnerable(flag: boolean): void;
+ setInvulnerable(flag: boolean): void;
/**
* Gets whether the entity is invulnerable or not.
*/
- public isInvulnerable(): boolean;
+ isInvulnerable(): boolean;
/**
* Gets whether the entity is silent or not.
*/
- public isSilent(): boolean;
+ isSilent(): boolean;
/**
* Sets whether the entity is silent or not.
*
* When an entity is silent it will not produce any sound.
*/
- public setSilent(flag: boolean): void;
+ setSilent(flag: boolean): void;
/**
* Returns whether gravity applies to this entity.
*/
- public hasGravity(): boolean;
+ hasGravity(): boolean;
/**
* Sets whether gravity applies to this entity.
*/
- public setGravity(gravity: boolean): void;
+ setGravity(gravity: boolean): void;
/**
* Gets the period of time (in ticks) before this entity can use a portal.
*/
- public getPortalCooldown(): number;
+ getPortalCooldown(): number;
/**
* Sets the period of time (in ticks) before this entity can use a portal.
*/
- public setPortalCooldown(cooldown: number): void;
+ setPortalCooldown(cooldown: number): void;
/**
* Returns a set of tags for this entity.
*
* 0.0 = No Chance.
* 0.0 = No Chance.
* Colors only apply to horses, not to donkeys, mules, skeleton horses
* or undead horses.
*/
- public getColor(): org.bukkit.entity.Horse.Color;
+ getColor(): org.bukkit.entity.Horse.Color;
/**
* Sets the horse's color.
*
* Attempting to set a color for any donkey, mule, skeleton horse or
* undead horse will not result in a change.
*/
- public setColor(color: org.bukkit.entity.Horse.Color): void;
+ setColor(color: org.bukkit.entity.Horse.Color): void;
/**
* Gets the horse's style.
* Styles determine what kind of markings or patterns a horse has.
@@ -23,7 +24,7 @@ declare namespace org {
* Styles only apply to horses, not to donkeys, mules, skeleton horses
* or undead horses.
*/
- public getStyle(): org.bukkit.entity.Horse.Style;
+ getStyle(): org.bukkit.entity.Horse.Style;
/**
* Sets the style of this horse.
* Styles determine what kind of markings or patterns a horse has.
@@ -31,10 +32,10 @@ declare namespace org {
* Attempting to set a style for any donkey, mule, skeleton horse or
* undead horse will not result in a change.
*/
- public setStyle(style: org.bukkit.entity.Horse.Style): void;
- public isCarryingChest(): boolean;
- public setCarryingChest(chest: boolean): void;
- public getInventory(): org.bukkit.inventory.HorseInventory;
+ setStyle(style: org.bukkit.entity.Horse.Style): void;
+ isCarryingChest(): boolean;
+ setCarryingChest(chest: boolean): void;
+ getInventory(): org.bukkit.inventory.HorseInventory;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts
index a51b734b..6e1bc648 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts
@@ -1,96 +1,97 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class HumanEntity {
+ // @ts-ignore
+ interface HumanEntity extends org.bukkit.entity.LivingEntity, org.bukkit.entity.AnimalTamer, org.bukkit.inventory.InventoryHolder {
/**
* Returns the name of this player
*/
- public getName(): string;
+ getName(): string;
/**
* Get the player's inventory.
*/
- public getInventory(): org.bukkit.inventory.PlayerInventory;
+ getInventory(): org.bukkit.inventory.PlayerInventory;
/**
* Get the player's EnderChest inventory
*/
- public getEnderChest(): org.bukkit.inventory.Inventory;
+ getEnderChest(): org.bukkit.inventory.Inventory;
/**
* Gets the player's selected main hand
*/
- public getMainHand(): org.bukkit.inventory.MainHand;
+ getMainHand(): org.bukkit.inventory.MainHand;
/**
* If the player currently has an inventory window open, this method will
* set a property of that window, such as the state of a progress bar.
*/
- public setWindowProperty(prop: org.bukkit.inventory.InventoryView.Property, value: number): boolean;
+ setWindowProperty(prop: org.bukkit.inventory.InventoryView.Property, value: number): boolean;
/**
* Gets the inventory view the player is currently viewing. If they do not
* have an inventory window open, it returns their internal crafting view.
*/
- public getOpenInventory(): org.bukkit.inventory.InventoryView;
+ getOpenInventory(): org.bukkit.inventory.InventoryView;
/**
* Opens an inventory window with the specified inventory on the top and
* the player's inventory on the bottom.
*/
- public openInventory(inventory: org.bukkit.inventory.Inventory): org.bukkit.inventory.InventoryView;
+ openInventory(inventory: org.bukkit.inventory.Inventory): org.bukkit.inventory.InventoryView;
/**
* Opens an empty workbench inventory window with the player's inventory
* on the bottom.
*/
- public openWorkbench(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView;
+ openWorkbench(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView;
/**
* Opens an empty enchanting inventory window with the player's inventory
* on the bottom.
*/
- public openEnchanting(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView;
+ openEnchanting(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView;
/**
* Opens an inventory window to the specified inventory view.
*/
- public openInventory(inventory: org.bukkit.inventory.InventoryView): void;
+ openInventory(inventory: org.bukkit.inventory.InventoryView): void;
/**
* Starts a trade between the player and the villager.
* Note that only one player may trade with a villager at once. You must use
* the force parameter for this.
*/
- public openMerchant(trader: org.bukkit.entity.Villager, force: boolean): org.bukkit.inventory.InventoryView;
+ openMerchant(trader: org.bukkit.entity.Villager, force: boolean): org.bukkit.inventory.InventoryView;
/**
* Starts a trade between the player and the merchant.
* Note that only one player may trade with a merchant at once. You must use
* the force parameter for this.
*/
- public openMerchant(merchant: org.bukkit.inventory.Merchant, force: boolean): org.bukkit.inventory.InventoryView;
+ openMerchant(merchant: org.bukkit.inventory.Merchant, force: boolean): org.bukkit.inventory.InventoryView;
/**
* Force-closes the currently open inventory view for this player, if any.
*/
- public closeInventory(): void;
+ closeInventory(): void;
/**
* Returns the ItemStack currently in your hand, can be empty.
*/
- public getItemInHand(): org.bukkit.inventory.ItemStack;
+ getItemInHand(): org.bukkit.inventory.ItemStack;
/**
* Sets the item to the given ItemStack, this will replace whatever the
* user was holding.
*/
- public setItemInHand(item: org.bukkit.inventory.ItemStack): void;
+ setItemInHand(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the ItemStack currently on your cursor, can be empty. Will
* always be empty if the player currently has no open window.
*/
- public getItemOnCursor(): org.bukkit.inventory.ItemStack;
+ getItemOnCursor(): org.bukkit.inventory.ItemStack;
/**
* Sets the item to the given ItemStack, this will replace whatever the
* user was moving. Will always be empty if the player currently has no
* open window.
*/
- public setItemOnCursor(item: org.bukkit.inventory.ItemStack): void;
+ setItemOnCursor(item: org.bukkit.inventory.ItemStack): void;
/**
* Check whether a cooldown is active on the specified material.
*/
- public hasCooldown(material: org.bukkit.Material): boolean;
+ hasCooldown(material: org.bukkit.Material): boolean;
/**
* Get the cooldown time in ticks remaining for the specified material.
*/
- public getCooldown(material: org.bukkit.Material): number;
+ getCooldown(material: org.bukkit.Material): number;
/**
* Set a cooldown on the specified material for a certain amount of ticks.
* ticks. 0 ticks will result in the removal of the cooldown.
@@ -101,24 +102,24 @@ declare namespace org {
* Note that cooldowns will not by themselves stop an item from being used
* for attacking.
*/
- public setCooldown(material: org.bukkit.Material, ticks: number): void;
+ setCooldown(material: org.bukkit.Material, ticks: number): void;
/**
* Get the sleep ticks of the player. This value may be capped.
*/
- public getSleepTicks(): number;
+ getSleepTicks(): number;
/**
* 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;
/**
* Sets the Location where the player will spawn at their bed.
*/
- public setBedSpawnLocation(location: org.bukkit.Location): void;
+ setBedSpawnLocation(location: org.bukkit.Location): void;
/**
* Sets the Location where the player will spawn at their bed.
*/
- public setBedSpawnLocation(location: org.bukkit.Location, force: boolean): void;
+ setBedSpawnLocation(location: org.bukkit.Location, force: boolean): void;
/**
* Attempts to make the entity sleep at the given location.
*
* This list contains all blocks from the living entity's eye position to
* target inclusive. This method considers all blocks as 1x1x1 in size.
*/
- public getLineOfSight(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/;
+ getLineOfSight(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/;
/**
* Gets the block that the living entity has targeted.
*
@@ -28,14 +29,14 @@ declare namespace org {
* collision shapes into account, see {@link #getTargetBlockExact(int,
* FluidCollisionMode)}.
*/
- public getTargetBlock(transparent: any[] /*java.util.Set*/, maxDistance: number): org.bukkit.block.Block;
+ getTargetBlock(transparent: any[] /*java.util.Set*/, maxDistance: number): org.bukkit.block.Block;
/**
* Gets the last two blocks along the living entity's line of sight.
*
* The target block will be the last block in the list. This method
* considers all blocks as 1x1x1 in size.
*/
- public getLastTwoTargetBlocks(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/;
+ getLastTwoTargetBlocks(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/;
/**
* Gets the block that the living entity has targeted.
*
@@ -45,7 +46,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
- public getTargetBlockExact(maxDistance: number): org.bukkit.block.Block;
+ getTargetBlockExact(maxDistance: number): org.bukkit.block.Block;
/**
* Gets the block that the living entity has targeted.
*
@@ -54,7 +55,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
- public getTargetBlockExact(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.block.Block;
+ getTargetBlockExact(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.block.Block;
/**
* Performs a ray trace that provides information on the targeted block.
*
@@ -64,7 +65,7 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
- public rayTraceBlocks(maxDistance: number): org.bukkit.util.RayTraceResult;
+ rayTraceBlocks(maxDistance: number): org.bukkit.util.RayTraceResult;
/**
* Performs a ray trace that provides information on the targeted block.
*
@@ -73,35 +74,35 @@ declare namespace org {
* This may cause loading of chunks! Some implementations may impose
* artificial restrictions on the maximum distance.
*/
- public rayTraceBlocks(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
+ rayTraceBlocks(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
/**
* Returns the amount of air that the living entity has remaining, in
* ticks.
*/
- public getRemainingAir(): number;
+ getRemainingAir(): number;
/**
* Sets the amount of air that the living entity has remaining, in ticks.
*/
- public setRemainingAir(ticks: number): void;
+ setRemainingAir(ticks: number): void;
/**
* Returns the maximum amount of air the living entity can have, in ticks.
*/
- public getMaximumAir(): number;
+ getMaximumAir(): number;
/**
* Sets the maximum amount of air the living entity can have, in ticks.
*/
- public setMaximumAir(ticks: number): void;
+ setMaximumAir(ticks: number): void;
/**
* Returns the living entity's current maximum no damage ticks.
*
* This is the maximum duration in which the living entity will not take
* damage.
*/
- public getMaximumNoDamageTicks(): number;
+ getMaximumNoDamageTicks(): number;
/**
* Sets the living entity's current maximum no damage ticks.
*/
- public setMaximumNoDamageTicks(ticks: number): void;
+ setMaximumNoDamageTicks(ticks: number): void;
/**
* Returns the living entity's last damage taken in the current no damage
* ticks time.
@@ -109,102 +110,102 @@ declare namespace org {
* Only damage higher than this amount will further damage the living
* entity.
*/
- public getLastDamage(): number;
+ getLastDamage(): number;
/**
* Sets the damage dealt within the current no damage ticks time period.
*/
- public setLastDamage(damage: number): void;
+ setLastDamage(damage: number): void;
/**
* Returns the living entity's current no damage ticks.
*/
- public getNoDamageTicks(): number;
+ getNoDamageTicks(): number;
/**
* Sets the living entity's current no damage ticks.
*/
- public setNoDamageTicks(ticks: number): void;
+ setNoDamageTicks(ticks: number): void;
/**
* Gets the player identified as the killer of the living entity.
*
* May be null.
*/
- public getKiller(): org.bukkit.entity.Player;
+ getKiller(): org.bukkit.entity.Player;
/**
* Adds the given {@link PotionEffect} to the living entity.
*
* Only one potion effect can be present for a given {@link
* PotionEffectType}.
*/
- public addPotionEffect(effect: org.bukkit.potion.PotionEffect): boolean;
+ addPotionEffect(effect: org.bukkit.potion.PotionEffect): boolean;
/**
* Adds the given {@link PotionEffect} to the living entity.
*
* Only one potion effect can be present for a given {@link
* PotionEffectType}.
*/
- public addPotionEffect(effect: org.bukkit.potion.PotionEffect, force: boolean): boolean;
+ addPotionEffect(effect: org.bukkit.potion.PotionEffect, force: boolean): boolean;
/**
* Attempts to add all of the given {@link PotionEffect} to the living
* entity.
*/
- public addPotionEffects(effects: any[] /*java.util.Collection*/): boolean;
+ addPotionEffects(effects: any[] /*java.util.Collection*/): boolean;
/**
* Returns whether the living entity already has an existing effect of
* the given {@link PotionEffectType} applied to it.
*/
- public hasPotionEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ hasPotionEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Returns the active {@link PotionEffect} of the specified type.
*
* If the effect is not present on the entity then null will be returned.
*/
- public getPotionEffect(type: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionEffect;
+ getPotionEffect(type: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionEffect;
/**
* Removes any effects present of the given {@link PotionEffectType}.
*/
- public removePotionEffect(type: org.bukkit.potion.PotionEffectType): void;
+ removePotionEffect(type: org.bukkit.potion.PotionEffectType): void;
/**
* Returns all currently active {@link PotionEffect}s on the living
* entity.
*/
- public getActivePotionEffects(): any[] /*java.util.Collection*/;
+ getActivePotionEffects(): any[] /*java.util.Collection*/;
/**
* Checks whether the living entity has block line of sight to another.
*
* This uses the same algorithm that hostile mobs use to find the closest
* player.
*/
- public hasLineOfSight(other: org.bukkit.entity.Entity): boolean;
+ hasLineOfSight(other: org.bukkit.entity.Entity): boolean;
/**
* Returns if the living entity despawns when away from players or not.
*
* By default, animals are not removed while other mobs are.
*/
- public getRemoveWhenFarAway(): boolean;
+ getRemoveWhenFarAway(): boolean;
/**
* Sets whether or not the living entity despawns when away from players
* or not.
*/
- public setRemoveWhenFarAway(remove: boolean): void;
+ setRemoveWhenFarAway(remove: boolean): void;
/**
* Gets the inventory with the equipment worn by the living entity.
*/
- public getEquipment(): org.bukkit.inventory.EntityEquipment;
+ getEquipment(): org.bukkit.inventory.EntityEquipment;
/**
* Sets whether or not the living entity can pick up items.
*/
- public setCanPickupItems(pickup: boolean): void;
+ setCanPickupItems(pickup: boolean): void;
/**
* Gets if the living entity can pick up items.
*/
- public getCanPickupItems(): boolean;
+ getCanPickupItems(): boolean;
/**
* Returns whether the entity is currently leashed.
*/
- public isLeashed(): boolean;
+ isLeashed(): boolean;
/**
* Gets the entity that is currently leading this entity.
*/
- public getLeashHolder(): org.bukkit.entity.Entity;
+ getLeashHolder(): org.bukkit.entity.Entity;
/**
* Sets the leash on this entity to be held by the supplied entity.
*
@@ -212,42 +213,42 @@ declare namespace org {
* Non-living entities excluding leashes will not persist as leash
* holders.
*/
- public setLeashHolder(holder: org.bukkit.entity.Entity): boolean;
+ setLeashHolder(holder: org.bukkit.entity.Entity): boolean;
/**
* Checks to see if an entity is gliding, such as using an Elytra.
*/
- public isGliding(): boolean;
+ isGliding(): boolean;
/**
* Makes entity start or stop gliding. This will work even if an Elytra
* is not equipped, but will be reverted by the server immediately after
* unless an event-cancelling mechanism is put in place.
*/
- public setGliding(gliding: boolean): void;
+ setGliding(gliding: boolean): void;
/**
* Checks to see if an entity is swimming.
*/
- public isSwimming(): boolean;
+ isSwimming(): boolean;
/**
* Makes entity start or stop swimming.
* This may have unexpected results if the entity is not in water.
*/
- public setSwimming(swimming: boolean): void;
+ setSwimming(swimming: boolean): void;
/**
* Checks to see if an entity is currently using the Riptide enchantment.
*/
- public isRiptiding(): boolean;
+ isRiptiding(): boolean;
/**
* Returns whether this entity is slumbering.
*/
- public isSleeping(): boolean;
+ isSleeping(): boolean;
/**
* Sets whether an entity will have AI.
*/
- public setAI(ai: boolean): void;
+ setAI(ai: boolean): void;
/**
* Checks whether an entity has AI.
*/
- public hasAI(): boolean;
+ hasAI(): boolean;
/**
* Set if this entity will be subject to collisions other entities.
*
@@ -255,7 +256,7 @@ declare namespace org {
* set to false on both the collidee and the collidant to ensure no
* collisions take place.
*/
- public setCollidable(collidable: boolean): void;
+ setCollidable(collidable: boolean): void;
/**
* Gets if this entity is subject to collisions with other entities.
*
@@ -263,21 +264,21 @@ declare namespace org {
* not whether the entity is non-collidable for other reasons such as being
* dead.
*/
- public isCollidable(): boolean;
+ isCollidable(): boolean;
/**
* Returns the value of the memory specified.
*
* Note that the value is null when the specific entity does not have that
* value by default.
*/
- public getMemory(memoryKey: org.bukkit.entity.memory.MemoryKey): any;
+ getMemory(memoryKey: org.bukkit.entity.memory.MemoryKey): any;
/**
* Sets the value of the memory specified.
*
* Note that the value will not be persisted when the specific entity does
* not have that value by default.
*/
- public setMemory(memoryKey: org.bukkit.entity.memory.MemoryKey, memoryValue: any): void;
+ setMemory(memoryKey: org.bukkit.entity.memory.MemoryKey, memoryValue: any): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts b/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts
index 45f497c8..e2140cca 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Llama {
- class Color {
+ // @ts-ignore
+ class Color {
public static CREAMY: org.bukkit.entity.Llama.Color;
public static WHITE: org.bukkit.entity.Llama.Color;
public static BROWN: org.bukkit.entity.Llama.Color;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts b/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts
index b460fb3f..14b27dcb 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts
@@ -1,27 +1,28 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Llama {
+ // @ts-ignore
+ interface Llama extends org.bukkit.entity.ChestedHorse {
/**
* Gets the llama's color.
*/
- public getColor(): org.bukkit.entity.Llama.Color;
+ getColor(): org.bukkit.entity.Llama.Color;
/**
* Sets the llama's color.
*/
- public setColor(color: org.bukkit.entity.Llama.Color): void;
+ setColor(color: org.bukkit.entity.Llama.Color): void;
/**
* Gets the llama's strength. A higher strength llama will have more
* inventory slots and be more threatening to entities.
*/
- public getStrength(): number;
+ getStrength(): number;
/**
* Sets the llama's strength. A higher strength llama will have more
* inventory slots and be more threatening to entities. Inventory slots are
* equal to strength * 3.
*/
- public setStrength(strength: number): void;
- public getInventory(): org.bukkit.inventory.LlamaInventory;
+ setStrength(strength: number): void;
+ getInventory(): org.bukkit.inventory.LlamaInventory;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts b/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts
index 84780afd..dc429021 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LlamaSpit {
+ // @ts-ignore
+ interface LlamaSpit extends org.bukkit.entity.Projectile {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts b/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts
index 47c25bd3..846dc4a4 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class MagmaCube {
+ // @ts-ignore
+ interface MagmaCube extends org.bukkit.entity.Slime {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts
index de56744e..302a92f5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts
@@ -1,88 +1,89 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Minecart {
+ // @ts-ignore
+ interface Minecart extends org.bukkit.entity.Vehicle {
/**
* Sets a minecart's damage.
*/
- public setDamage(damage: number): void;
+ setDamage(damage: number): void;
/**
* Gets a minecart's damage.
*/
- public getDamage(): number;
+ getDamage(): number;
/**
* Gets the maximum speed of a minecart. The speed is unrelated to the
* velocity.
*/
- public getMaxSpeed(): number;
+ getMaxSpeed(): number;
/**
* Sets the maximum speed of a minecart. Must be nonnegative. Default is
* 0.4D.
*/
- public setMaxSpeed(speed: number): void;
+ setMaxSpeed(speed: number): void;
/**
* Returns whether this minecart will slow down faster without a passenger
* occupying it
*/
- public isSlowWhenEmpty(): boolean;
+ isSlowWhenEmpty(): boolean;
/**
* Sets whether this minecart will slow down faster without a passenger
* occupying it
*/
- public setSlowWhenEmpty(slow: boolean): void;
+ setSlowWhenEmpty(slow: boolean): void;
/**
* Gets the flying velocity modifier. Used for minecarts that are in
* mid-air. A flying minecart's velocity is multiplied by this factor each
* tick.
*/
- public getFlyingVelocityMod(): org.bukkit.util.Vector;
+ getFlyingVelocityMod(): org.bukkit.util.Vector;
/**
* Sets the flying velocity modifier. Used for minecarts that are in
* mid-air. A flying minecart's velocity is multiplied by this factor each
* tick.
*/
- public setFlyingVelocityMod(flying: org.bukkit.util.Vector): void;
+ setFlyingVelocityMod(flying: org.bukkit.util.Vector): void;
/**
* Gets the derailed velocity modifier. Used for minecarts that are on the
* ground, but not on rails.
*
* A derailed minecart's velocity is multiplied by this factor each tick.
*/
- public getDerailedVelocityMod(): org.bukkit.util.Vector;
+ getDerailedVelocityMod(): org.bukkit.util.Vector;
/**
* Sets the derailed velocity modifier. Used for minecarts that are on the
* ground, but not on rails. A derailed minecart's velocity is multiplied
* by this factor each tick.
*/
- public setDerailedVelocityMod(derailed: org.bukkit.util.Vector): void;
+ setDerailedVelocityMod(derailed: org.bukkit.util.Vector): void;
/**
* Sets the display block for this minecart.
* Passing a null value will set the minecart to have no display block.
*/
- public setDisplayBlock(material: org.bukkit.material.MaterialData): void;
+ setDisplayBlock(material: org.bukkit.material.MaterialData): void;
/**
* Gets the display block for this minecart.
* This function will return the type AIR if none is set.
*/
- public getDisplayBlock(): org.bukkit.material.MaterialData;
+ getDisplayBlock(): org.bukkit.material.MaterialData;
/**
* Sets the display block for this minecart.
* Passing a null value will set the minecart to have no display block.
*/
- public setDisplayBlockData(blockData: org.bukkit.block.data.BlockData): void;
+ setDisplayBlockData(blockData: org.bukkit.block.data.BlockData): void;
/**
* Gets the display block for this minecart.
* This function will return the type AIR if none is set.
*/
- public getDisplayBlockData(): org.bukkit.block.data.BlockData;
+ getDisplayBlockData(): org.bukkit.block.data.BlockData;
/**
* Sets the offset of the display block.
*/
- public setDisplayBlockOffset(offset: number): void;
+ setDisplayBlockOffset(offset: number): void;
/**
* Gets the offset of the display block.
*/
- public getDisplayBlockOffset(): number;
+ getDisplayBlockOffset(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts b/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts
index 7a099d4c..e73a90e9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts
@@ -1,18 +1,19 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Mob {
+ // @ts-ignore
+ interface Mob extends org.bukkit.entity.LivingEntity, org.bukkit.loot.Lootable {
/**
* Instructs this Mob to set the specified LivingEntity as its target.
*
* Hostile creatures may attack their target, and friendly creatures may
* follow their target.
*/
- public setTarget(target: org.bukkit.entity.LivingEntity): void;
+ setTarget(target: org.bukkit.entity.LivingEntity): void;
/**
* Gets the current target of this Mob
*/
- public getTarget(): org.bukkit.entity.LivingEntity;
+ getTarget(): org.bukkit.entity.LivingEntity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts b/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts
index 77f2b050..229930f5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Monster {
+ // @ts-ignore
+ interface Monster extends org.bukkit.entity.Creature {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts b/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts
index e15a89c2..5aa2d77e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Mule {
+ // @ts-ignore
+ interface Mule extends org.bukkit.entity.ChestedHorse {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts
index f52a14ab..90f1a11e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace MushroomCow {
- class Variant {
+ // @ts-ignore
+ class Variant {
public static RED: org.bukkit.entity.MushroomCow.Variant;
public static BROWN: org.bukkit.entity.MushroomCow.Variant;
public static values(): org.bukkit.entity.MushroomCow.Variant[];
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts
index 6b252f03..58ab05b0 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class MushroomCow {
+ // @ts-ignore
+ interface MushroomCow extends org.bukkit.entity.Cow {
/**
* Get the variant of this cow.
*/
- public getVariant(): org.bukkit.entity.MushroomCow.Variant;
+ getVariant(): org.bukkit.entity.MushroomCow.Variant;
/**
* Set the variant of this cow.
*/
- public setVariant(variant: org.bukkit.entity.MushroomCow.Variant): void;
+ setVariant(variant: org.bukkit.entity.MushroomCow.Variant): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts b/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts
index 4b50714f..9ca7e1f7 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class NPC {
+ // @ts-ignore
+ interface NPC extends org.bukkit.entity.Creature {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts
index 5a403ee2..c0ccc5bb 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Ocelot {
- class Type {
+ // @ts-ignore
+ class Type {
public static WILD_OCELOT: org.bukkit.entity.Ocelot.Type;
public static BLACK_CAT: org.bukkit.entity.Ocelot.Type;
public static RED_CAT: org.bukkit.entity.Ocelot.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts
index 3ee4a2e4..dd509f2a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Ocelot {
+ // @ts-ignore
+ interface Ocelot extends org.bukkit.entity.Animals {
/**
* Gets the current type of this cat.
*/
- public getCatType(): org.bukkit.entity.Ocelot.Type;
+ getCatType(): org.bukkit.entity.Ocelot.Type;
/**
* Sets the current type of this cat.
*/
- public setCatType(type: org.bukkit.entity.Ocelot.Type): void;
+ setCatType(type: org.bukkit.entity.Ocelot.Type): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts b/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts
index 6a3edaab..2a214b23 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts
@@ -1,19 +1,20 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Painting {
+ // @ts-ignore
+ interface Painting extends org.bukkit.entity.Hanging {
/**
* Get the art on this painting
*/
- public getArt(): org.bukkit.Art;
+ getArt(): org.bukkit.Art;
/**
* Set the art on this painting
*/
- public setArt(art: org.bukkit.Art): boolean;
+ setArt(art: org.bukkit.Art): boolean;
/**
* Set the art on this painting
*/
- public setArt(art: org.bukkit.Art, force: boolean): boolean;
+ setArt(art: org.bukkit.Art, force: boolean): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts b/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts
index d6ce59e8..ce398706 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Panda {
- class Gene {
+ // @ts-ignore
+ class Gene {
public static NORMAL: org.bukkit.entity.Panda.Gene;
public static LAZY: org.bukkit.entity.Panda.Gene;
public static WORRIED: org.bukkit.entity.Panda.Gene;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts b/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts
index 2f3aeb55..083a0de6 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Panda {
+ // @ts-ignore
+ interface Panda extends org.bukkit.entity.Animals {
/**
* Gets this Panda's main gene.
*/
- public getMainGene(): org.bukkit.entity.Panda.Gene;
+ getMainGene(): org.bukkit.entity.Panda.Gene;
/**
* Sets this Panda's main gene.
*/
- public setMainGene(gene: org.bukkit.entity.Panda.Gene): void;
+ setMainGene(gene: org.bukkit.entity.Panda.Gene): void;
/**
* Gets this Panda's hidden gene.
*/
- public getHiddenGene(): org.bukkit.entity.Panda.Gene;
+ getHiddenGene(): org.bukkit.entity.Panda.Gene;
/**
* Sets this Panda's hidden gene.
*/
- public setHiddenGene(gene: org.bukkit.entity.Panda.Gene): void;
+ setHiddenGene(gene: org.bukkit.entity.Panda.Gene): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts
index b87a5011..ec131303 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Parrot {
- class Variant {
+ // @ts-ignore
+ class Variant {
public static RED: org.bukkit.entity.Parrot.Variant;
public static BLUE: org.bukkit.entity.Parrot.Variant;
public static GREEN: org.bukkit.entity.Parrot.Variant;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts
index e16d5493..4f80277b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Parrot {
+ // @ts-ignore
+ interface Parrot extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable {
/**
* Get the variant of this parrot.
*/
- public getVariant(): org.bukkit.entity.Parrot.Variant;
+ getVariant(): org.bukkit.entity.Parrot.Variant;
/**
* Set the variant of this parrot.
*/
- public setVariant(variant: org.bukkit.entity.Parrot.Variant): void;
+ setVariant(variant: org.bukkit.entity.Parrot.Variant): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts b/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts
index 9dd56e89..b10d7554 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts
@@ -1,9 +1,10 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Phantom {
- public getSize(): number;
- public setSize(sz: number): void;
+ // @ts-ignore
+ interface Phantom extends org.bukkit.entity.Flying {
+ getSize(): number;
+ setSize(sz: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts
index b6a576f2..6e71f742 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Pig {
+ // @ts-ignore
+ interface Pig extends org.bukkit.entity.Animals, org.bukkit.entity.Vehicle {
/**
* Check if the pig has a saddle.
*/
- public hasSaddle(): boolean;
+ hasSaddle(): boolean;
/**
* Sets if the pig has a saddle or not
*/
- public setSaddle(saddled: boolean): void;
+ setSaddle(saddled: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts b/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts
index 1ccf3a90..4111f841 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts
@@ -1,35 +1,36 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class PigZombie {
+ // @ts-ignore
+ interface PigZombie extends org.bukkit.entity.Zombie {
/**
* Get the pig zombie's current anger level.
*/
- public getAnger(): number;
+ getAnger(): number;
/**
* Set the pig zombie's current anger level.
*/
- public setAnger(level: number): void;
+ setAnger(level: number): void;
/**
* Shorthand; sets to either 0 or the default level.
*/
- public setAngry(angry: boolean): void;
+ setAngry(angry: boolean): void;
/**
* Shorthand; gets whether the zombie is angry.
*/
- public isAngry(): boolean;
+ isAngry(): boolean;
/**
* Not applicable to this entity
*/
- public isConverting(): boolean;
+ isConverting(): boolean;
/**
* Not applicable to this entity
*/
- public getConversionTime(): number;
+ getConversionTime(): number;
/**
* Not applicable to this entity
*/
- public setConversionTime(time: number): void;
+ setConversionTime(time: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts
index e35e0be8..72b7f545 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Pillager {
+ // @ts-ignore
+ interface Pillager extends org.bukkit.entity.Illager, org.bukkit.inventory.InventoryHolder {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Player.ts b/packages/bukkit/src/typings/org.bukkit.entity.Player.ts
index ba6fc911..a194465c 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Player.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Player.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Player {
+ // @ts-ignore
+ interface Player extends org.bukkit.entity.HumanEntity, org.bukkit.conversations.Conversable, org.bukkit.OfflinePlayer, org.bukkit.plugin.messaging.PluginMessageRecipient {
/**
* Gets the "friendly" name to display of this player. This may include
* color.
@@ -9,7 +10,7 @@ declare namespace org {
* Note that this name will not be displayed in game, only in chat and
* places defined by plugins.
*/
- public getDisplayName(): string;
+ getDisplayName(): string;
/**
* Sets the "friendly" name to display of this player. This may include
* color.
@@ -17,88 +18,88 @@ declare namespace org {
* Note that this name will not be displayed in game, only in chat and
* places defined by plugins.
*/
- public setDisplayName(name: string): void;
+ setDisplayName(name: string): void;
/**
* Gets the name that is shown on the player list.
*/
- public getPlayerListName(): string;
+ getPlayerListName(): string;
/**
* Sets the name that is shown on the in-game player list.
*
* If the value is null, the name will be identical to {@link #getName()}.
*/
- public setPlayerListName(name: string): void;
+ setPlayerListName(name: string): void;
/**
* Gets the currently displayed player list header for this player.
*/
- public getPlayerListHeader(): string;
+ getPlayerListHeader(): string;
/**
* Gets the currently displayed player list footer for this player.
*/
- public getPlayerListFooter(): string;
+ getPlayerListFooter(): string;
/**
* Sets the currently displayed player list header for this player.
*/
- public setPlayerListHeader(header: string): void;
+ setPlayerListHeader(header: string): void;
/**
* Sets the currently displayed player list footer for this player.
*/
- public setPlayerListFooter(footer: string): void;
+ setPlayerListFooter(footer: string): void;
/**
* Sets the currently displayed player list header and footer for this
* player.
*/
- public setPlayerListHeaderFooter(header: string, footer: string): void;
+ setPlayerListHeaderFooter(header: string, footer: string): void;
/**
* Set the target of the player's compass.
*/
- public setCompassTarget(loc: org.bukkit.Location): void;
+ setCompassTarget(loc: org.bukkit.Location): void;
/**
* Get the previously set compass target.
*/
- public getCompassTarget(): org.bukkit.Location;
+ getCompassTarget(): org.bukkit.Location;
/**
* Gets the socket address of this player
*/
- public getAddress(): any;
+ getAddress(): any;
/**
* Sends this sender a message raw
*/
- public sendRawMessage(message: string): void;
+ sendRawMessage(message: string): void;
/**
* Kicks player with custom kick message.
*/
- public kickPlayer(message: string): void;
+ kickPlayer(message: string): void;
/**
* Says a message (or runs a command).
*/
- public chat(msg: string): void;
+ chat(msg: string): void;
/**
* Makes the player perform the given command
*/
- public performCommand(command: string): boolean;
+ performCommand(command: string): boolean;
/**
* Returns if the player is in sneak mode
*/
- public isSneaking(): boolean;
+ isSneaking(): boolean;
/**
* Sets the sneak mode the player
*/
- public setSneaking(sneak: boolean): void;
+ setSneaking(sneak: boolean): void;
/**
* Gets whether the player is sprinting or not.
*/
- public isSprinting(): boolean;
+ isSprinting(): boolean;
/**
* Sets whether the player is sprinting or not.
*/
- public setSprinting(sprinting: boolean): void;
+ setSprinting(sprinting: boolean): void;
/**
* Saves the players current location, health, inventory, motion, and
* other information into the username.dat file, in the world/player
* folder
*/
- public saveData(): void;
+ saveData(): void;
/**
* Loads the players current location, health, inventory, motion, and
* other information from the username.dat file, in the world/player
@@ -107,36 +108,36 @@ declare namespace org {
* Note: This will overwrite the players current inventory, health,
* motion, etc, with the state from the saved dat file.
*/
- public loadData(): void;
+ loadData(): void;
/**
* Sets whether the player is ignored as not sleeping. If everyone is
* either sleeping or has this flag set, then time will advance to the
* next day. If everyone has this flag set but no one is actually in bed,
* then nothing will happen.
*/
- public setSleepingIgnored(isSleeping: boolean): void;
+ setSleepingIgnored(isSleeping: boolean): void;
/**
* Returns whether the player is sleeping ignored.
*/
- public isSleepingIgnored(): boolean;
+ isSleepingIgnored(): boolean;
/**
* Play a note for a player at a location. This requires a note block
* at the particular location (as far as the client is concerned). This
* will not work without a note block. This will not work with cake.
*/
- public playNote(loc: org.bukkit.Location, instrument: number, note: number): void;
+ playNote(loc: org.bukkit.Location, instrument: number, note: number): void;
/**
* Play a note for a player at a location. This requires a note block
* at the particular location (as far as the client is concerned). This
* will not work without a note block. This will not work with cake.
*/
- public playNote(loc: org.bukkit.Location, instrument: org.bukkit.Instrument, note: org.bukkit.Note): void;
+ playNote(loc: org.bukkit.Location, instrument: org.bukkit.Instrument, note: org.bukkit.Note): void;
/**
* Play a sound for a player at the location.
*
* 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 for a player at the location.
*
@@ -144,13 +145,13 @@ declare namespace org {
* sound will be heard by the player if their client does 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 for a player at the location.
*
* 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 for a player at the location.
*
@@ -158,41 +159,41 @@ declare namespace org {
* will be heard by the player if their client does 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;
/**
* Stop the specified sound from playing.
*/
- public stopSound(sound: org.bukkit.Sound): void;
+ stopSound(sound: org.bukkit.Sound): void;
/**
* Stop the specified sound from playing.
*/
- public stopSound(sound: string): void;
+ stopSound(sound: string): void;
/**
* Stop the specified sound from playing.
*/
- public stopSound(sound: org.bukkit.Sound, category: org.bukkit.SoundCategory): void;
+ stopSound(sound: org.bukkit.Sound, category: org.bukkit.SoundCategory): void;
/**
* Stop the specified sound from playing.
*/
- public stopSound(sound: string, category: org.bukkit.SoundCategory): void;
+ stopSound(sound: string, category: org.bukkit.SoundCategory): void;
/**
* Plays an effect to just this player.
*/
- public playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void;
+ playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void;
/**
* Plays an effect to just this player.
*/
- public playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void;
+ playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void;
/**
* Send a block change. This fakes a block change packet for a user at a
* certain location. This will not actually change the world in any way.
*/
- public sendBlockChange(loc: org.bukkit.Location, material: org.bukkit.Material, data: number): void;
+ sendBlockChange(loc: org.bukkit.Location, material: org.bukkit.Material, data: number): void;
/**
* Send a block change. This fakes a block change packet for a user at a
* certain location. This will not actually change the world in any way.
*/
- public sendBlockChange(loc: org.bukkit.Location, block: org.bukkit.block.data.BlockData): void;
+ sendBlockChange(loc: org.bukkit.Location, block: org.bukkit.block.data.BlockData): void;
/**
* Send a chunk change. This fakes a chunk change packet for a user at a
* certain location. The updated cuboid must be entirely within a single
@@ -202,7 +203,7 @@ declare namespace org {
* the data buffer must be 2.5*sx*sy*sz and formatted in accordance with
* the Packet51 format.
*/
- public sendChunkChange(loc: org.bukkit.Location, sx: number, sy: number, sz: number, data: number): boolean;
+ sendChunkChange(loc: org.bukkit.Location, sx: number, sy: number, sz: number, data: number): boolean;
/**
* Send a sign change. This fakes a sign change packet for a user at
* a certain location. This will not actually change the world in any way.
@@ -213,7 +214,7 @@ declare namespace org {
* If the client does not have a sign at the given location it will
* display an error message to the user.
*/
- public sendSignChange(loc: org.bukkit.Location, lines: string): void;
+ sendSignChange(loc: org.bukkit.Location, lines: string): void;
/**
* Send a sign change. This fakes a sign change packet for a user at
* a certain location. This will not actually change the world in any way.
@@ -224,120 +225,120 @@ declare namespace org {
* If the client does not have a sign at the given location it will
* display an error message to the user.
*/
- public sendSignChange(loc: org.bukkit.Location, lines: string, dyeColor: org.bukkit.DyeColor): void;
+ sendSignChange(loc: org.bukkit.Location, lines: string, dyeColor: org.bukkit.DyeColor): void;
/**
* Render a map and send it to the player in its entirety. This may be
* used when streaming the map in the normal manner is not desirable.
*/
- public sendMap(map: org.bukkit.map.MapView): void;
+ sendMap(map: org.bukkit.map.MapView): void;
/**
* Forces an update of the player's entire inventory.
*/
- public updateInventory(): void;
+ updateInventory(): void;
/**
* Awards the given achievement and any parent achievements that the
* player does not have.
*/
- public awardAchievement(achievement: org.bukkit.Achievement): void;
+ awardAchievement(achievement: org.bukkit.Achievement): void;
/**
* Removes the given achievement and any children achievements that the
* player has.
*/
- public removeAchievement(achievement: org.bukkit.Achievement): void;
+ removeAchievement(achievement: org.bukkit.Achievement): void;
/**
* Gets whether this player has the given achievement.
*/
- public hasAchievement(achievement: org.bukkit.Achievement): boolean;
+ hasAchievement(achievement: org.bukkit.Achievement): boolean;
/**
* Increments the given statistic for this player.
*
* This is equivalent to the following code:
*
* This is equivalent to the following code:
*
* This is equivalent to the following code:
*
* This is equivalent to the following code:
*
* This is equivalent to the following code:
*
* This is equivalent to the following code:
*
* Equivalent to calling setPlayerTime(0, true).
*/
- public resetPlayerTime(): void;
+ resetPlayerTime(): void;
/**
* Sets the type of weather the player will see. When used, the weather
* status of the player is locked until {@link #resetPlayerWeather()} is
* used.
*/
- public setPlayerWeather(type: org.bukkit.WeatherType): void;
+ setPlayerWeather(type: org.bukkit.WeatherType): void;
/**
* Returns the type of weather the player is currently experiencing.
*/
- public getPlayerWeather(): org.bukkit.WeatherType;
+ getPlayerWeather(): org.bukkit.WeatherType;
/**
* Restores the normal condition where the player's weather is controlled
* by server conditions.
*/
- public resetPlayerWeather(): void;
+ resetPlayerWeather(): void;
/**
* Gives the player the amount of experience specified.
*/
- public giveExp(amount: number): void;
+ giveExp(amount: number): void;
/**
* Gives the player the amount of experience levels specified. Levels can
* be taken by specifying a negative amount.
*/
- public giveExpLevels(amount: number): void;
+ giveExpLevels(amount: number): void;
/**
* Gets the players current experience points towards the next level.
*
* This is a percentage value. 0 is "no progress" and 1 is "next level".
*/
- public getExp(): number;
+ getExp(): number;
/**
* Sets the players current experience points towards the next level
*
* This is a percentage value. 0 is "no progress" and 1 is "next level".
*/
- public setExp(exp: number): void;
+ setExp(exp: number): void;
/**
* Gets the players current experience level
*/
- public getLevel(): number;
+ getLevel(): number;
/**
* Sets the players current experience level
*/
- public setLevel(level: number): void;
+ setLevel(level: number): void;
/**
* Gets the players total experience points.
*
@@ -436,88 +437,88 @@ declare namespace org {
* certain amount of exhaustion, your saturation will drop to zero, and
* then your food will drop to zero.
*/
- public getExhaustion(): number;
+ getExhaustion(): number;
/**
* Sets the players current exhaustion level
*/
- public setExhaustion(value: number): void;
+ setExhaustion(value: number): void;
/**
* Gets the players current saturation level.
*
* Saturation is a buffer for food level. Your food level will not drop if
* you are saturated {@literal >} 0.
*/
- public getSaturation(): number;
+ getSaturation(): number;
/**
* Sets the players current saturation level
*/
- public setSaturation(value: number): void;
+ setSaturation(value: number): void;
/**
* Gets the players current food level
*/
- public getFoodLevel(): number;
+ getFoodLevel(): number;
/**
* Sets the players current food level
*/
- public setFoodLevel(value: number): void;
+ setFoodLevel(value: number): void;
/**
* Determines if the Player is allowed to fly via jump key double-tap like
* in creative mode.
*/
- public getAllowFlight(): boolean;
+ getAllowFlight(): boolean;
/**
* Sets if the Player is allowed to fly via jump key double-tap like in
* creative mode.
*/
- public setAllowFlight(flight: boolean): void;
+ setAllowFlight(flight: boolean): void;
/**
* Hides a player from this player
*/
- public hidePlayer(player: org.bukkit.entity.Player): void;
+ hidePlayer(player: org.bukkit.entity.Player): void;
/**
* Hides a player from this player
*/
- public hidePlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void;
+ hidePlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void;
/**
* Allows this player to see a player that was previously hidden
*/
- public showPlayer(player: org.bukkit.entity.Player): void;
+ showPlayer(player: org.bukkit.entity.Player): void;
/**
* Allows this player to see a player that was previously hidden. If
* another another plugin had hidden the player too, then the player will
* remain hidden until the other plugin calls this method too.
*/
- public showPlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void;
+ showPlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void;
/**
* Checks to see if a player has been hidden from this player
*/
- public canSee(player: org.bukkit.entity.Player): boolean;
+ canSee(player: org.bukkit.entity.Player): boolean;
/**
* Checks to see if this player is currently flying or not.
*/
- public isFlying(): boolean;
+ isFlying(): boolean;
/**
* Makes this player start or stop flying.
*/
- public setFlying(value: boolean): void;
+ setFlying(value: boolean): void;
/**
* Sets the speed at which a client will fly. Negative values indicate
* reverse directions.
*/
- public setFlySpeed(value: number): void;
+ setFlySpeed(value: number): void;
/**
* Sets the speed at which a client will walk. Negative values indicate
* reverse directions.
*/
- public setWalkSpeed(value: number): void;
+ setWalkSpeed(value: number): void;
/**
* Gets the current allowed speed that a client can fly.
*/
- public getFlySpeed(): number;
+ getFlySpeed(): number;
/**
* Gets the current allowed speed that a client can walk.
*/
- public getWalkSpeed(): number;
+ getWalkSpeed(): number;
/**
* Request that the player's client download and switch texture packs.
*
@@ -543,7 +544,7 @@ declare namespace org {
* in newer versions not loading the pack correctly.
*
*/
- public setTexturePack(url: string): void;
+ setTexturePack(url: string): void;
/**
* Request that the player's client download and switch resource packs.
*
@@ -569,7 +570,7 @@ declare namespace org {
* in newer versions not loading the pack correctly.
*
*/
- public setResourcePack(url: string): void;
+ setResourcePack(url: string): void;
/**
* Request that the player's client download and switch resource packs.
*
@@ -592,20 +593,20 @@ declare namespace org {
* have to send an empty pack.
*
*/
- public setResourcePack(url: string, hash: number): void;
+ setResourcePack(url: string, hash: number): void;
/**
* Gets the Scoreboard displayed to this player
*/
- public getScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getScoreboard(): org.bukkit.scoreboard.Scoreboard;
/**
* Sets the player's visible Scoreboard.
*/
- public setScoreboard(scoreboard: org.bukkit.scoreboard.Scoreboard): void;
+ setScoreboard(scoreboard: org.bukkit.scoreboard.Scoreboard): void;
/**
* Gets if the client is displayed a 'scaled' health, that is, health on a
* scale from 0-{@link #getHealthScale()}.
*/
- public isHealthScaled(): boolean;
+ isHealthScaled(): boolean;
/**
* Sets if the client is displayed a 'scaled' health, that is, health on a
* scale from 0-{@link #getHealthScale()}.
@@ -613,7 +614,7 @@ declare namespace org {
* Displayed health follows a simple formula
* If a small fireball does not bounce it will set the target on fire.
*/
- public doesBounce(): boolean;
+ doesBounce(): boolean;
/**
* Set whether or not this projectile should bounce or not when it hits
* something.
*/
- public setBounce(doesBounce: boolean): void;
+ setBounce(doesBounce: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts b/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts
index 2daf140a..6140b074 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class PufferFish {
+ // @ts-ignore
+ interface PufferFish extends org.bukkit.entity.Fish {
/**
* Returns the current puff state of this fish (i.e. how inflated it is).
*/
- public getPuffState(): number;
+ getPuffState(): number;
/**
* Sets the current puff state of this fish (i.e. how inflated it is).
*/
- public setPuffState(state: number): void;
+ setPuffState(state: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts
index f5c35b71..023dd103 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Rabbit {
- class Type {
+ // @ts-ignore
+ class Type {
public static BROWN: org.bukkit.entity.Rabbit.Type;
public static WHITE: org.bukkit.entity.Rabbit.Type;
public static BLACK: org.bukkit.entity.Rabbit.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts
index 4bd46cb4..01cd2f60 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts
@@ -1,9 +1,10 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Rabbit {
- public getRabbitType(): org.bukkit.entity.Rabbit.Type;
- public setRabbitType(type: org.bukkit.entity.Rabbit.Type): void;
+ // @ts-ignore
+ interface Rabbit extends org.bukkit.entity.Animals {
+ getRabbitType(): org.bukkit.entity.Rabbit.Type;
+ setRabbitType(type: org.bukkit.entity.Rabbit.Type): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts b/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts
index 067b89e0..b404dcd8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Raider {
+ // @ts-ignore
+ interface Raider extends org.bukkit.entity.Monster {
/**
* Gets the block the raider is targeting to patrol.
*/
- public getPatrolTarget(): org.bukkit.block.Block;
+ getPatrolTarget(): org.bukkit.block.Block;
/**
* Sets the block the raider is targeting to patrol.
*/
- public setPatrolTarget(block: org.bukkit.block.Block): void;
+ setPatrolTarget(block: org.bukkit.block.Block): void;
/**
* Gets whether this entity is a patrol leader.
*/
- public isPatrolLeader(): boolean;
+ isPatrolLeader(): boolean;
/**
* Sets whether this entity is a patrol leader.
*/
- public setPatrolLeader(leader: boolean): void;
+ setPatrolLeader(leader: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts
index 4f3417ef..3e34459d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Ravager {
+ // @ts-ignore
+ interface Ravager extends org.bukkit.entity.Raider {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts b/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts
index 54ea06f9..4764d772 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Salmon {
+ // @ts-ignore
+ interface Salmon extends org.bukkit.entity.Fish {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts b/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts
index 34a0b0ea..d547f02f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts
@@ -1,9 +1,10 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Sheep {
- public isSheared(): boolean;
- public setSheared(flag: boolean): void;
+ // @ts-ignore
+ interface Sheep extends org.bukkit.entity.Animals, org.bukkit.material.Colorable {
+ isSheared(): boolean;
+ setSheared(flag: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts b/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts
index 81784a46..68753ee9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Shulker {
+ // @ts-ignore
+ interface Shulker extends org.bukkit.entity.Golem, org.bukkit.material.Colorable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts b/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts
index b730cb76..a01c75f8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ShulkerBullet {
+ // @ts-ignore
+ interface ShulkerBullet extends org.bukkit.entity.Projectile {
/**
* Retrieve the target of this bullet.
*/
- public getTarget(): org.bukkit.entity.Entity;
+ getTarget(): org.bukkit.entity.Entity;
/**
* Sets the target of this bullet
*/
- public setTarget(target: org.bukkit.entity.Entity): void;
+ setTarget(target: org.bukkit.entity.Entity): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts b/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts
index 85459375..8c8e5c8b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Silverfish {
+ // @ts-ignore
+ interface Silverfish extends org.bukkit.entity.Monster {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts
index 4035e2d3..7802b59a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Sittable {
+ // @ts-ignore
+ interface Sittable {
/**
* Checks if this animal is sitting
*/
- public isSitting(): boolean;
+ isSitting(): boolean;
/**
* Sets if this animal is sitting. Will remove any path that the animal
* was following beforehand.
*/
- public setSitting(sitting: boolean): void;
+ setSitting(sitting: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts
index d699f680..8b9050e5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Skeleton {
- class SkeletonType {
+ // @ts-ignore
+ class SkeletonType {
public static NORMAL: org.bukkit.entity.Skeleton.SkeletonType;
public static WITHER: org.bukkit.entity.Skeleton.SkeletonType;
public static STRAY: org.bukkit.entity.Skeleton.SkeletonType;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts
index 443f9927..35a3b33d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts
@@ -1,12 +1,13 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Skeleton {
+ // @ts-ignore
+ interface Skeleton extends org.bukkit.entity.Monster {
/**
* Gets the current type of this skeleton.
*/
- public getSkeletonType(): org.bukkit.entity.Skeleton.SkeletonType;
- public setSkeletonType(type: org.bukkit.entity.Skeleton.SkeletonType): void;
+ getSkeletonType(): org.bukkit.entity.Skeleton.SkeletonType;
+ setSkeletonType(type: org.bukkit.entity.Skeleton.SkeletonType): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts
index 1d52c2d7..36fbad42 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class SkeletonHorse {
+ // @ts-ignore
+ interface SkeletonHorse extends org.bukkit.entity.AbstractHorse {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts b/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts
index a62947cb..521d9e90 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts
@@ -1,9 +1,10 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Slime {
- public getSize(): number;
- public setSize(sz: number): void;
+ // @ts-ignore
+ interface Slime extends org.bukkit.entity.Mob {
+ getSize(): number;
+ setSize(sz: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts
index b5a11d90..7ddcd074 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class SmallFireball {
+ // @ts-ignore
+ interface SmallFireball extends org.bukkit.entity.Fireball {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts b/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts
index fe31b927..860c984e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Snowball {
+ // @ts-ignore
+ interface Snowball extends org.bukkit.entity.Projectile {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts b/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts
index d30b438b..bfbcc68c 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts
@@ -1,18 +1,19 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Snowman {
+ // @ts-ignore
+ interface Snowman extends org.bukkit.entity.Golem {
/**
* Gets whether this snowman is in "derp mode", meaning it is not wearing a
* pumpkin.
*/
- public isDerp(): boolean;
+ isDerp(): boolean;
/**
* Sets whether this snowman is in "derp mode", meaning it is not wearing a
* pumpkin. NOTE: This value is not persisted to disk and will therefore
* reset when the chunk is reloaded.
*/
- public setDerp(derpMode: boolean): void;
+ setDerp(derpMode: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts
index bd898ccf..2b0a8c76 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class SpectralArrow {
+ // @ts-ignore
+ interface SpectralArrow extends org.bukkit.entity.AbstractArrow {
/**
* Returns the amount of time that this arrow will apply
* the glowing effect for.
*/
- public getGlowingTicks(): number;
+ getGlowingTicks(): number;
/**
* Sets the amount of time to apply the glowing effect for.
*/
- public setGlowingTicks(duration: number): void;
+ setGlowingTicks(duration: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts
index c267ab2b..a3025de9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Spellcaster {
- class Spell {
+ // @ts-ignore
+ class Spell {
public static NONE: org.bukkit.entity.Spellcaster.Spell;
public static SUMMON_VEX: org.bukkit.entity.Spellcaster.Spell;
public static FANGS: org.bukkit.entity.Spellcaster.Spell;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts
index 1470f836..cf495ff0 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Spellcaster {
+ // @ts-ignore
+ interface Spellcaster extends org.bukkit.entity.Illager {
/**
* Gets the {@link Spell} the entity is currently using.
*/
- public getSpell(): org.bukkit.entity.Spellcaster.Spell;
+ getSpell(): org.bukkit.entity.Spellcaster.Spell;
/**
* Sets the {@link Spell} the entity is currently using.
*/
- public setSpell(spell: org.bukkit.entity.Spellcaster.Spell): void;
+ setSpell(spell: org.bukkit.entity.Spellcaster.Spell): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts
index a38b1670..0b65d7bb 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Spider {
+ // @ts-ignore
+ interface Spider extends org.bukkit.entity.Monster {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts
index 053bf707..400589ad 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class SplashPotion {
+ // @ts-ignore
+ interface SplashPotion extends org.bukkit.entity.ThrownPotion {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts b/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts
index a6225e82..339e256a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Squid {
+ // @ts-ignore
+ interface Squid extends org.bukkit.entity.WaterMob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts b/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts
index 2f674095..98618ee5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Stray {
+ // @ts-ignore
+ interface Stray extends org.bukkit.entity.Skeleton {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts b/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts
index 2945ce30..91eeb3e5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class TNTPrimed {
+ // @ts-ignore
+ interface TNTPrimed extends org.bukkit.entity.Explosive {
/**
* Set the number of ticks until the TNT blows up after being primed.
*/
- public setFuseTicks(fuseTicks: number): void;
+ setFuseTicks(fuseTicks: number): void;
/**
* Retrieve the number of ticks until the explosion of this TNTPrimed
* entity
*/
- public getFuseTicks(): number;
+ getFuseTicks(): number;
/**
* Gets the source of this primed TNT. The source is the entity
* responsible for the creation of this primed TNT. (I.E. player ignites
@@ -23,7 +24,7 @@ declare namespace org {
* it has since died or been unloaded. Callers should check
* {@link Entity#isValid()}.
*/
- public getSource(): org.bukkit.entity.Entity;
+ getSource(): org.bukkit.entity.Entity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts
index 40c55e67..cf131b49 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts
@@ -1,14 +1,15 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Tameable {
+ // @ts-ignore
+ interface Tameable extends org.bukkit.entity.Entity {
/**
* Check if this is tamed
*
* If something is tamed then a player can not tame it through normal
* methods, even if it does not belong to anyone in particular.
*/
- public isTamed(): boolean;
+ isTamed(): boolean;
/**
* Sets if this has been tamed. Not necessary if the method setOwner has
* been used, as it tames automatically.
@@ -16,11 +17,11 @@ declare namespace org {
* If something is tamed then a player can not tame it through normal
* methods, even if it does not belong to anyone in particular.
*/
- public setTamed(tame: boolean): void;
+ setTamed(tame: boolean): void;
/**
* Gets the current owning AnimalTamer
*/
- public getOwner(): org.bukkit.entity.AnimalTamer;
+ getOwner(): org.bukkit.entity.AnimalTamer;
/**
* Set this to be owned by given AnimalTamer.
*
@@ -28,7 +29,7 @@ declare namespace org {
* path it is following removed. If the owner is set to null, this will be
* untamed, and the current owner removed.
*/
- public setOwner(tamer: org.bukkit.entity.AnimalTamer): void;
+ setOwner(tamer: org.bukkit.entity.AnimalTamer): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts b/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts
index a23940f2..d9edd5e3 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ThrownExpBottle {
+ // @ts-ignore
+ interface ThrownExpBottle extends org.bukkit.entity.Projectile {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts
index 78917190..92dea80e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ThrownPotion {
+ // @ts-ignore
+ interface ThrownPotion extends org.bukkit.entity.Projectile {
/**
* Returns the effects that are applied by this potion.
*/
- public getEffects(): any[] /*java.util.Collection*/;
+ getEffects(): any[] /*java.util.Collection*/;
/**
* Returns a copy of the ItemStack for this thrown potion.
*
@@ -13,7 +14,7 @@ declare namespace org {
* to alter the thrown potion, you must use the {@link
* #setItem(ItemStack) setItemStack} method.
*/
- public getItem(): org.bukkit.inventory.ItemStack;
+ getItem(): org.bukkit.inventory.ItemStack;
/**
* Set the ItemStack for this thrown potion.
*
@@ -21,7 +22,7 @@ declare namespace org {
* or {@link org.bukkit.Material#LINGERING_POTION}, otherwise an exception
* is thrown.
*/
- public setItem(item: org.bukkit.inventory.ItemStack): void;
+ setItem(item: org.bukkit.inventory.ItemStack): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts
index 739574b0..11502dc5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class TippedArrow {
+ // @ts-ignore
+ interface TippedArrow extends org.bukkit.entity.Arrow {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts b/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts
index ca79b6e2..d60f14dd 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class TraderLlama {
+ // @ts-ignore
+ interface TraderLlama extends org.bukkit.entity.Llama {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts b/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts
index 1daf1ec3..4f4c9a4b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Trident {
+ // @ts-ignore
+ interface Trident extends org.bukkit.entity.AbstractArrow {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts
index 34f1017c..1cc55154 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace TropicalFish {
- class Pattern {
+ // @ts-ignore
+ class Pattern {
public static KOB: org.bukkit.entity.TropicalFish.Pattern;
public static SUNSTREAK: org.bukkit.entity.TropicalFish.Pattern;
public static SNOOPER: org.bukkit.entity.TropicalFish.Pattern;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts
index 936c78c2..4112e5ce 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts
@@ -1,31 +1,32 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class TropicalFish {
+ // @ts-ignore
+ interface TropicalFish extends org.bukkit.entity.Fish {
/**
* Gets the color of the fish's pattern.
*/
- public getPatternColor(): org.bukkit.DyeColor;
+ getPatternColor(): org.bukkit.DyeColor;
/**
* Sets the color of the fish's pattern
*/
- public setPatternColor(color: org.bukkit.DyeColor): void;
+ setPatternColor(color: org.bukkit.DyeColor): void;
/**
* Gets the color of the fish's body.
*/
- public getBodyColor(): org.bukkit.DyeColor;
+ getBodyColor(): org.bukkit.DyeColor;
/**
* Sets the color of the fish's body
*/
- public setBodyColor(color: org.bukkit.DyeColor): void;
+ setBodyColor(color: org.bukkit.DyeColor): void;
/**
* Gets the fish's pattern.
*/
- public getPattern(): org.bukkit.entity.TropicalFish.Pattern;
+ getPattern(): org.bukkit.entity.TropicalFish.Pattern;
/**
* Sets the fish's pattern
*/
- public setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void;
+ setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts b/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts
index ba4fc851..3245ced3 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Turtle {
+ // @ts-ignore
+ interface Turtle extends org.bukkit.entity.Animals {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts
index 7b29f314..48e0c825 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Vehicle {
+ // @ts-ignore
+ interface Vehicle extends org.bukkit.entity.Entity {
/**
* Gets the vehicle's velocity.
*/
- public getVelocity(): org.bukkit.util.Vector;
+ getVelocity(): org.bukkit.util.Vector;
/**
* Sets the vehicle's velocity.
*/
- public setVelocity(vel: org.bukkit.util.Vector): void;
+ setVelocity(vel: org.bukkit.util.Vector): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts
index 7ce5d878..0ff377ea 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts
@@ -1,17 +1,18 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Vex {
+ // @ts-ignore
+ interface Vex extends org.bukkit.entity.Monster {
/**
* Gets the charging state of this entity.
* When this entity is charging it will having a glowing red texture.
*/
- public isCharging(): boolean;
+ isCharging(): boolean;
/**
* Sets the charging state of this entity.
* When this entity is charging it will having a glowing red texture.
*/
- public setCharging(charging: boolean): void;
+ setCharging(charging: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts
index 973cea86..5941e129 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Villager {
- class Profession {
+ // @ts-ignore
+ class Profession implements org.bukkit.Keyed {
public static NONE: org.bukkit.entity.Villager.Profession;
public static ARMORER: org.bukkit.entity.Villager.Profession;
public static BUTCHER: org.bukkit.entity.Villager.Profession;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts
index 661e9e68..3b988690 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Villager {
- class Type {
+ // @ts-ignore
+ class Type implements org.bukkit.Keyed {
public static DESERT: org.bukkit.entity.Villager.Type;
public static JUNGLE: org.bukkit.entity.Villager.Type;
public static PLAINS: org.bukkit.entity.Villager.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts
index 74725cc5..c69d8c24 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts
@@ -1,43 +1,44 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Villager {
+ // @ts-ignore
+ interface Villager extends org.bukkit.entity.AbstractVillager {
/**
* Gets the current profession of this villager.
*/
- public getProfession(): org.bukkit.entity.Villager.Profession;
+ getProfession(): org.bukkit.entity.Villager.Profession;
/**
* Sets the new profession of this villager.
*/
- public setProfession(profession: org.bukkit.entity.Villager.Profession): void;
+ setProfession(profession: org.bukkit.entity.Villager.Profession): void;
/**
* Gets the current type of this villager.
*/
- public getVillagerType(): org.bukkit.entity.Villager.Type;
+ getVillagerType(): org.bukkit.entity.Villager.Type;
/**
* Sets the new type of this villager.
*/
- public setVillagerType(type: org.bukkit.entity.Villager.Type): void;
+ setVillagerType(type: org.bukkit.entity.Villager.Type): void;
/**
* Gets the level of this villager.
* A villager with a level of 1 and no experience is liable to lose its
* profession.
*/
- public getVillagerLevel(): number;
+ getVillagerLevel(): number;
/**
* Sets the level of this villager.
* A villager with a level of 1 and no experience is liable to lose its
* profession.
*/
- public setVillagerLevel(level: number): void;
+ setVillagerLevel(level: number): void;
/**
* Gets the trading experience of this villager.
*/
- public getVillagerExperience(): number;
+ getVillagerExperience(): number;
/**
* Sets the trading experience of this villager.
*/
- public setVillagerExperience(experience: number): void;
+ setVillagerExperience(experience: number): void;
/**
* Attempts to make this villager sleep at the given location.
*
* An angry wolf can not be fed or tamed.
*/
- public setAngry(angry: boolean): void;
+ setAngry(angry: boolean): void;
/**
* Get the collar color of this wolf
*/
- public getCollarColor(): org.bukkit.DyeColor;
+ getCollarColor(): org.bukkit.DyeColor;
/**
* Set the collar color of this wolf
*/
- public setCollarColor(color: org.bukkit.DyeColor): void;
+ setCollarColor(color: org.bukkit.DyeColor): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts b/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts
index 5d0af9c4..17bff16b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts
@@ -1,33 +1,34 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Zombie {
+ // @ts-ignore
+ interface Zombie extends org.bukkit.entity.Monster {
/**
* Gets whether the zombie is a baby
*/
- public isBaby(): boolean;
+ isBaby(): boolean;
/**
* Sets whether the zombie is a baby
*/
- public setBaby(flag: boolean): void;
+ setBaby(flag: boolean): void;
/**
* Gets whether the zombie is a villager
*/
- public isVillager(): boolean;
- public setVillager(flag: boolean): void;
- public setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void;
- public getVillagerProfession(): org.bukkit.entity.Villager.Profession;
+ isVillager(): boolean;
+ setVillager(flag: boolean): void;
+ setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void;
+ getVillagerProfession(): org.bukkit.entity.Villager.Profession;
/**
* Get if this entity is in the process of converting to a Drowned as a
* result of being underwater.
*/
- public isConverting(): boolean;
+ isConverting(): boolean;
/**
* Gets the amount of ticks until this entity will be converted to a Drowned
* as a result of being underwater.
* When this reaches 0, the entity will be converted.
*/
- public getConversionTime(): number;
+ getConversionTime(): number;
/**
* Sets the amount of ticks until this entity will be converted to a Drowned
* as a result of being underwater.
@@ -35,7 +36,7 @@ declare namespace org {
* will stop the current conversion process without converting the current
* entity.
*/
- public setConversionTime(time: number): void;
+ setConversionTime(time: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts
index 63045af5..e6b2bc2a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ZombieHorse {
+ // @ts-ignore
+ interface ZombieHorse extends org.bukkit.entity.AbstractHorse {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts
index 48ea6560..aa4b202d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts
@@ -1,26 +1,27 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ZombieVillager {
+ // @ts-ignore
+ interface ZombieVillager extends org.bukkit.entity.Zombie {
/**
* Sets the villager profession of this zombie.
*/
- public setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void;
+ setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void;
/**
* Returns the villager profession of this zombie.
*/
- public getVillagerProfession(): org.bukkit.entity.Villager.Profession;
+ getVillagerProfession(): org.bukkit.entity.Villager.Profession;
/**
* Get if this entity is in the process of converting to a Villager as a
* result of being cured.
*/
- public isConverting(): boolean;
+ isConverting(): boolean;
/**
* Gets the amount of ticks until this entity will be converted to a
* Villager as a result of being cured.
* When this reaches 0, the entity will be converted.
*/
- public getConversionTime(): number;
+ getConversionTime(): number;
/**
* Sets the amount of ticks until this entity will be converted to a
* Villager as a result of being cured.
@@ -28,17 +29,17 @@ declare namespace org {
* will stop the current conversion process without converting the current
* entity.
*/
- public setConversionTime(time: number): void;
+ setConversionTime(time: number): void;
/**
* Gets the player who initiated the conversion.
*/
- public getConversionPlayer(): org.bukkit.OfflinePlayer;
+ getConversionPlayer(): org.bukkit.OfflinePlayer;
/**
* Sets the player who initiated the conversion.
*
* This has no effect if this entity isn't converting currently.
*/
- public setConversionPlayer(conversionPlayer: org.bukkit.OfflinePlayer): void;
+ setConversionPlayer(conversionPlayer: org.bukkit.OfflinePlayer): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts b/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts
index 91d5f577..7aeda343 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace memory {
- class MemoryKey {
+ // @ts-ignore
+ class MemoryKey implements org.bukkit.Keyed {
public static HOME: org.bukkit.entity.memory.MemoryKey;
public static MEETING_POINT: org.bukkit.entity.memory.MemoryKey;
public static JOB_SITE: org.bukkit.entity.memory.MemoryKey;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts
index 36fe5698..692f578a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts
@@ -2,25 +2,26 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class CommandMinecart {
+ // @ts-ignore
+ interface CommandMinecart extends org.bukkit.entity.Minecart {
/**
* Gets the command that this CommandMinecart will run when activated.
* This will never return null. If the CommandMinecart does not have a
* command, an empty String will be returned instead.
*/
- public getCommand(): string;
+ getCommand(): string;
/**
* Sets the command that this CommandMinecart will run when activated.
* Setting the command to null is the same as setting it to an empty
* String.
*/
- public setCommand(command: string): void;
+ setCommand(command: string): void;
/**
* Sets the name of this CommandMinecart. The name is used with commands
* that this CommandMinecart executes. Setting the name to null is the
* same as setting it to "@".
*/
- public setName(name: string): void;
+ setName(name: string): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts
index 8a9b0ba1..06a0e84f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class ExplosiveMinecart {
+ // @ts-ignore
+ interface ExplosiveMinecart extends org.bukkit.entity.Minecart {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts
index 698cd14b..46f779a3 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts
@@ -2,16 +2,17 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class HopperMinecart {
+ // @ts-ignore
+ interface HopperMinecart extends org.bukkit.entity.Minecart, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable {
/**
* Checks whether or not this Minecart will pick up
* items into its inventory.
*/
- public isEnabled(): boolean;
+ isEnabled(): boolean;
/**
* Sets whether this Minecart will pick up items.
*/
- public setEnabled(enabled: boolean): void;
+ setEnabled(enabled: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts
index 56344e5b..9e434e88 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class PoweredMinecart {
+ // @ts-ignore
+ interface PoweredMinecart extends org.bukkit.entity.Minecart {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts
index cda9f049..a21b3767 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class RideableMinecart {
+ // @ts-ignore
+ interface RideableMinecart extends org.bukkit.entity.Minecart {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts
index 1e10542e..3eb0fc57 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class SpawnerMinecart {
+ // @ts-ignore
+ interface SpawnerMinecart extends org.bukkit.entity.Minecart {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts
index 719286c9..20651c1d 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace minecart {
- class StorageMinecart {
+ // @ts-ignore
+ interface StorageMinecart extends org.bukkit.entity.Minecart, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts b/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts
index cc66e8da..208a001c 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts
@@ -1,17 +1,18 @@
declare namespace org {
namespace bukkit {
namespace event {
- class Cancellable {
+ // @ts-ignore
+ interface Cancellable {
/**
* Gets the cancellation state of this event. A cancelled event will not
* be executed in the server, but will still pass to other plugins
*/
- public isCancelled(): boolean;
+ isCancelled(): boolean;
/**
* Sets the cancellation state of this event. A cancelled event will not
* be executed in the server, but will still pass to other plugins.
*/
- public setCancelled(cancel: boolean): void;
+ setCancelled(cancel: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts b/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts
index 605f5442..c4eb24e9 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace Event {
- class Result {
+ // @ts-ignore
+ class Result {
public static DENY: org.bukkit.event.Event.Result;
public static DEFAULT: org.bukkit.event.Event.Result;
public static ALLOW: org.bukkit.event.Event.Result;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.Event.ts b/packages/bukkit/src/typings/org.bukkit.event.Event.ts
index f0009e91..da8c1c66 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.Event.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.Event.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace event {
+ // @ts-ignore
abstract class Event {
/**
* The default constructor is defined for cleaner code. This constructor
diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventException.ts b/packages/bukkit/src/typings/org.bukkit.event.EventException.ts
index 00fcc218..4ddf1c7b 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.EventException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.EventException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace event {
- class EventException {
+ // @ts-ignore
+ class EventException {
/**
* Constructs a new EventException based on the given Exception
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts b/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts
index c5080379..d8730148 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace event {
- class EventHandler {
+ // @ts-ignore
+ interface EventHandler {
/**
* Define the priority of the event.
*
@@ -15,14 +16,14 @@ declare namespace org {
*
* If ignoreCancelled is true and the event is cancelled, the method is
* not called. Otherwise, the method is always called.
*/
- public ignoreCancelled(): boolean;
+ ignoreCancelled(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts b/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts
index 65ec81ff..90c55107 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace event {
- class EventPriority {
+ // @ts-ignore
+ class EventPriority {
public static LOWEST: org.bukkit.event.EventPriority;
public static LOW: org.bukkit.event.EventPriority;
public static NORMAL: org.bukkit.event.EventPriority;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts b/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts
index 51045e98..b0a29139 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace event {
- class HandlerList {
+ // @ts-ignore
+ class HandlerList {
/**
* Create a new handler list and initialize using EventPriority.
*
diff --git a/packages/bukkit/src/typings/org.bukkit.event.Listener.ts b/packages/bukkit/src/typings/org.bukkit.event.Listener.ts
index 939ef13d..7cc72e0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.Listener.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.Listener.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace event {
- class Listener {
+ // @ts-ignore
+ interface Listener {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts b/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts
index f0bdb44b..cb373521 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class Action {
+ // @ts-ignore
+ class Action {
public static LEFT_CLICK_BLOCK: org.bukkit.event.block.Action;
public static RIGHT_CLICK_BLOCK: org.bukkit.event.block.Action;
public static LEFT_CLICK_AIR: org.bukkit.event.block.Action;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts
index c405b45f..43f6d941 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockBreakEvent {
+ // @ts-ignore
+ class BlockBreakEvent implements org.bukkit.event.Cancellable {
constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player)
/**
* Gets the Player that is breaking the block involved in this event.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts
index 7f4f88f5..c5ee05e2 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockBurnEvent {
+ // @ts-ignore
+ class BlockBurnEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block)
constructor(block: org.bukkit.block.Block, ignitingBlock: org.bukkit.block.Block)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts
index 7172cf23..5abf6758 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockCanBuildEvent {
+ // @ts-ignore
+ class BlockCanBuildEvent {
constructor(block: org.bukkit.block.Block, type: org.bukkit.block.data.BlockData, canBuild: boolean)
constructor(block: org.bukkit.block.Block, player: org.bukkit.entity.Player, type: org.bukkit.block.data.BlockData, canBuild: boolean)
protected buildable: boolean;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts
index 60c8e2ca..8b63f375 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockCookEvent {
+ // @ts-ignore
+ class BlockCookEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, source: org.bukkit.inventory.ItemStack, result: org.bukkit.inventory.ItemStack)
/**
* Gets the smelted ItemStack for this event
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts
index 9bf9e69f..1a3f9bb2 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockDamageEvent {
+ // @ts-ignore
+ class BlockDamageEvent implements org.bukkit.event.Cancellable {
constructor(player: org.bukkit.entity.Player, block: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, instaBreak: boolean)
/**
* Gets the player damaging the block involved in this event.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts
index b621e55d..8c4a3815 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockDispenseArmorEvent {
+ // @ts-ignore
+ class BlockDispenseArmorEvent {
constructor(block: org.bukkit.block.Block, dispensed: org.bukkit.inventory.ItemStack, target: org.bukkit.entity.LivingEntity)
/**
* Get the living entity on which the armor was dispensed.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts
index d488ba8c..27f0938b 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockDispenseEvent {
+ // @ts-ignore
+ class BlockDispenseEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, dispensed: org.bukkit.inventory.ItemStack, velocity: org.bukkit.util.Vector)
/**
* Gets the item that is being dispensed. Modifying the returned item will
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts
index 56c8181e..f6a91f6e 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockDropItemEvent {
+ // @ts-ignore
+ class BlockDropItemEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, blockState: org.bukkit.block.BlockState, player: org.bukkit.entity.Player, items: any[] /*java.util.List*/)
/**
* Gets the Player that is breaking the block involved in this event.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts
index e3739445..660ca2f1 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts
@@ -2,6 +2,7 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
+ // @ts-ignore
abstract class BlockEvent {
constructor(theBlock: org.bukkit.block.Block)
protected block: org.bukkit.block.Block;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts
index d9a15f3c..daf58d98 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockExpEvent {
+ // @ts-ignore
+ class BlockExpEvent {
constructor(block: org.bukkit.block.Block, exp: number)
/**
* Get the experience dropped by the block after the event has processed
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts
index aefddccb..b3f01cf6 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockExplodeEvent {
+ // @ts-ignore
+ class BlockExplodeEvent implements org.bukkit.event.Cancellable {
constructor(what: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, yield: number)
public isCancelled(): boolean;
public setCancelled(cancel: boolean): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts
index 520a00f3..0738cc21 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockFadeEvent {
+ // @ts-ignore
+ class BlockFadeEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
/**
* Gets the state of the block that will be fading, melting or
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts
index 082e36c7..ae32a6a0 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockFertilizeEvent {
+ // @ts-ignore
+ class BlockFertilizeEvent implements org.bukkit.event.Cancellable {
constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player, blocks: any[] /*java.util.List*/)
/**
* Gets the player that triggered the fertilization.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts
index 434db8ef..f472643a 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockFormEvent {
+ // @ts-ignore
+ class BlockFormEvent {
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
public getHandlers(): org.bukkit.event.HandlerList;
public static getHandlerList(): org.bukkit.event.HandlerList;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts
index a880155f..a6f47946 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockFromToEvent {
+ // @ts-ignore
+ class BlockFromToEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, face: org.bukkit.block.BlockFace)
constructor(block: org.bukkit.block.Block, toBlock: org.bukkit.block.Block)
protected to: org.bukkit.block.Block;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts
index 58ef2783..7b201bb3 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockGrowEvent {
+ // @ts-ignore
+ class BlockGrowEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
/**
* Gets the state of the block where it will form or spread to.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts
index 69f9c4d4..717a8005 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace event {
namespace block {
namespace BlockIgniteEvent {
- class IgniteCause {
+ // @ts-ignore
+ class IgniteCause {
public static LAVA: org.bukkit.event.block.BlockIgniteEvent.IgniteCause;
public static FLINT_AND_STEEL: org.bukkit.event.block.BlockIgniteEvent.IgniteCause;
public static SPREAD: org.bukkit.event.block.BlockIgniteEvent.IgniteCause;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts
index 40e254c4..cd5d305c 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockIgniteEvent {
+ // @ts-ignore
+ class BlockIgniteEvent implements org.bukkit.event.Cancellable {
constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity)
constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingBlock: org.bukkit.block.Block)
constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity, ignitingBlock: org.bukkit.block.Block)
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts
index 0fe3e49e..ad23a854 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockMultiPlaceEvent {
+ // @ts-ignore
+ class BlockMultiPlaceEvent {
constructor(states: any[] /*java.util.List*/, clicked: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean)
/**
* Gets a list of blockstates for all blocks which were replaced by the
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts
index 4b9bdc1e..e9aff591 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockPhysicsEvent {
+ // @ts-ignore
+ class BlockPhysicsEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData)
constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData, sourceBlock: org.bukkit.block.Block)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts
index 9946334b..bfc91305 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- abstract class BlockPistonEvent {
+ // @ts-ignore
+ abstract class BlockPistonEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, direction: org.bukkit.block.BlockFace)
public isCancelled(): boolean;
public setCancelled(cancelled: boolean): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts
index 8ebbc5b0..2f6c507d 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockPistonExtendEvent {
+ // @ts-ignore
+ class BlockPistonExtendEvent {
constructor(block: org.bukkit.block.Block, length: number, direction: org.bukkit.block.BlockFace)
constructor(block: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, direction: org.bukkit.block.BlockFace)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts
index 89642ca4..c91438b7 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockPistonRetractEvent {
+ // @ts-ignore
+ class BlockPistonRetractEvent {
constructor(block: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, direction: org.bukkit.block.BlockFace)
/**
* Gets the location where the possible moving block might be if the
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts
index ffa351bb..97689d31 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockPlaceEvent {
+ // @ts-ignore
+ class BlockPlaceEvent implements org.bukkit.event.Cancellable {
constructor(placedBlock: org.bukkit.block.Block, replacedBlockState: org.bukkit.block.BlockState, placedAgainst: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean)
constructor(placedBlock: org.bukkit.block.Block, replacedBlockState: org.bukkit.block.BlockState, placedAgainst: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean, hand: org.bukkit.inventory.EquipmentSlot)
protected cancel: boolean;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts
index 46b8ab64..114f2d90 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockRedstoneEvent {
+ // @ts-ignore
+ class BlockRedstoneEvent {
constructor(block: org.bukkit.block.Block, oldCurrent: number, newCurrent: number)
/**
* Gets the old current of this block
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts
index 29fb4d17..37f5ca52 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockShearEntityEvent {
+ // @ts-ignore
+ class BlockShearEntityEvent implements org.bukkit.event.Cancellable {
constructor(dispenser: org.bukkit.block.Block, sheared: org.bukkit.entity.Entity, tool: org.bukkit.inventory.ItemStack)
/**
* Gets the entity that was sheared.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts
index afd6866f..3fb1f2f1 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class BlockSpreadEvent {
+ // @ts-ignore
+ class BlockSpreadEvent {
constructor(block: org.bukkit.block.Block, source: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
/**
* Gets the source block involved in this event.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts
index a2df3820..cf358a82 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace event {
namespace block {
namespace CauldronLevelChangeEvent {
- class ChangeReason {
+ // @ts-ignore
+ class ChangeReason {
public static BUCKET_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason;
public static BUCKET_EMPTY: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason;
public static BOTTLE_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts
index 6dd391dd..26641fe8 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class CauldronLevelChangeEvent {
+ // @ts-ignore
+ class CauldronLevelChangeEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, entity: org.bukkit.entity.Entity, reason: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason, oldLevel: number, newLevel: number)
/**
* Get entity which did this. May be null.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts
index 97a453a1..e8dc00c1 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class EntityBlockFormEvent {
+ // @ts-ignore
+ class EntityBlockFormEvent {
constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block, blockstate: org.bukkit.block.BlockState)
/**
* Get the entity that formed the block.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts
index 751a0265..82a853c2 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class FluidLevelChangeEvent {
+ // @ts-ignore
+ class FluidLevelChangeEvent implements org.bukkit.event.Cancellable {
constructor(theBlock: org.bukkit.block.Block, newData: org.bukkit.block.data.BlockData)
/**
* Gets the new data of the changed block.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts
index 61b10dd9..2584f90e 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class LeavesDecayEvent {
+ // @ts-ignore
+ class LeavesDecayEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block)
public isCancelled(): boolean;
public setCancelled(cancel: boolean): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts
index 373bcfc0..22e80983 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class MoistureChangeEvent {
+ // @ts-ignore
+ class MoistureChangeEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
/**
* Gets the new state of the affected block.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts
index bce6c241..22a375dc 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class NotePlayEvent {
+ // @ts-ignore
+ class NotePlayEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, instrument: org.bukkit.Instrument, note: org.bukkit.Note)
public isCancelled(): boolean;
public setCancelled(cancel: boolean): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts
index fd318334..c317feb7 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class SignChangeEvent {
+ // @ts-ignore
+ class SignChangeEvent implements org.bukkit.event.Cancellable {
constructor(theBlock: org.bukkit.block.Block, thePlayer: org.bukkit.entity.Player, theLines: string)
/**
* Gets the player changing the sign involved in this event.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts
index 150a4ea2..62d4b589 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace block {
- class SpongeAbsorbEvent {
+ // @ts-ignore
+ class SpongeAbsorbEvent implements org.bukkit.event.Cancellable {
constructor(block: org.bukkit.block.Block, waterblocks: any[] /*java.util.List*/)
/**
* Get a list of all blocks to be removed by the sponge.
diff --git a/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts
index f6cf6796..fbb04f23 100644
--- a/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts
+++ b/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace event {
namespace enchantment {
- class EnchantItemEvent {
+ // @ts-ignore
+ class EnchantItemEvent implements org.bukkit.event.Cancellable {
constructor(enchanter: org.bukkit.entity.Player, view: org.bukkit.inventory.InventoryView, table: org.bukkit.block.Block, item: org.bukkit.inventory.ItemStack, level: number, enchants: Map
@@ -69,16 +70,16 @@ declare namespace org {
* inputted argument amount to the number of that item not removed from
* slots.
*/
- public removeItem(items: org.bukkit.inventory.ItemStack): any;
+ removeItem(items: org.bukkit.inventory.ItemStack): any;
/**
* Returns all ItemStacks from the inventory
*/
- public getContents(): org.bukkit.inventory.ItemStack[];
+ getContents(): org.bukkit.inventory.ItemStack[];
/**
* Completely replaces the inventory's contents. Removes all existing
* contents and replaces it with the ItemStacks given in the array.
*/
- public setContents(items: org.bukkit.inventory.ItemStack): void;
+ setContents(items: org.bukkit.inventory.ItemStack): void;
/**
* Return the contents from the section of the inventory where items can
* reasonably be expected to be stored. In most cases this will represent
@@ -88,16 +89,16 @@ declare namespace org {
* It is these contents which will be used for add / contains / remove
* methods which look for a specific stack.
*/
- public getStorageContents(): org.bukkit.inventory.ItemStack[];
+ getStorageContents(): org.bukkit.inventory.ItemStack[];
/**
* Put the given ItemStacks into the storage slots
*/
- public setStorageContents(items: org.bukkit.inventory.ItemStack): void;
+ setStorageContents(items: org.bukkit.inventory.ItemStack): void;
/**
* Checks if the inventory contains any ItemStacks with the given
* material.
*/
- public contains(material: org.bukkit.Material): boolean;
+ contains(material: org.bukkit.Material): boolean;
/**
* Checks if the inventory contains any ItemStacks matching the given
* ItemStack.
@@ -105,12 +106,12 @@ declare namespace org {
* This will only return true if both the type and the amount of the stack
* match.
*/
- public contains(item: org.bukkit.inventory.ItemStack): boolean;
+ contains(item: org.bukkit.inventory.ItemStack): boolean;
/**
* Checks if the inventory contains any ItemStacks with the given
* material, adding to at least the minimum amount specified.
*/
- public contains(material: org.bukkit.Material, amount: number): boolean;
+ contains(material: org.bukkit.Material, amount: number): boolean;
/**
* Checks if the inventory contains at least the minimum amount specified
* of exactly matching ItemStacks.
@@ -118,12 +119,12 @@ declare namespace org {
* An ItemStack only counts if both the type and the amount of the stack
* match.
*/
- public contains(item: org.bukkit.inventory.ItemStack, amount: number): boolean;
+ contains(item: org.bukkit.inventory.ItemStack, amount: number): boolean;
/**
* Checks if the inventory contains ItemStacks matching the given
* ItemStack whose amounts sum to at least the minimum amount specified.
*/
- public containsAtLeast(item: org.bukkit.inventory.ItemStack, amount: number): boolean;
+ containsAtLeast(item: org.bukkit.inventory.ItemStack, amount: number): boolean;
/**
* Returns a HashMap with all slots and ItemStacks in the inventory with
* the given Material.
@@ -132,7 +133,7 @@ declare namespace org {
* value is the ItemStack in that slot. If no matching ItemStack with the
* given Material is found, an empty map is returned.
*/
- public all(material: org.bukkit.Material): any;
+ all(material: org.bukkit.Material): any;
/**
* Finds all slots in the inventory containing any ItemStacks with the
* given ItemStack. This will only match slots if both the type and the
@@ -142,41 +143,41 @@ declare namespace org {
* value is the ItemStack in that slot. If no matching ItemStack with the
* given Material is found, an empty map is returned.
*/
- public all(item: org.bukkit.inventory.ItemStack): any;
+ all(item: org.bukkit.inventory.ItemStack): any;
/**
* Finds the first slot in the inventory containing an ItemStack with the
* given material
*/
- public first(material: org.bukkit.Material): number;
+ first(material: org.bukkit.Material): number;
/**
* Returns the first slot in the inventory containing an ItemStack with
* the given stack. This will only match a slot if both the type and the
* amount of the stack match
*/
- public first(item: org.bukkit.inventory.ItemStack): number;
+ first(item: org.bukkit.inventory.ItemStack): number;
/**
* Returns the first empty Slot.
*/
- public firstEmpty(): number;
+ firstEmpty(): number;
/**
* Removes all stacks in the inventory matching the given material.
*/
- public remove(material: org.bukkit.Material): void;
+ remove(material: org.bukkit.Material): void;
/**
* Removes all stacks in the inventory matching the given stack.
*
* This will only match a slot if both the type and the amount of the
* stack match
*/
- public remove(item: org.bukkit.inventory.ItemStack): void;
+ remove(item: org.bukkit.inventory.ItemStack): void;
/**
* Clears out a particular slot in the index.
*/
- public clear(index: number): void;
+ clear(index: number): void;
/**
* Clears out the whole Inventory.
*/
- public clear(): void;
+ clear(): void;
/**
* Gets a list of players viewing the inventory. Note that a player is
* considered to be viewing their own inventory and internal crafting
@@ -186,28 +187,28 @@ declare namespace org {
* inventory screens to exclude the viewer's inventory, so this should
* never be assumed to be non-empty.
*/
- public getViewers(): any[] /*java.util.List*/;
+ getViewers(): any[] /*java.util.List*/;
/**
* Returns what type of inventory this is.
*/
- public getType(): org.bukkit.event.inventory.InventoryType;
+ getType(): org.bukkit.event.inventory.InventoryType;
/**
* Gets the block or entity belonging to the open inventory
*/
- public getHolder(): org.bukkit.inventory.InventoryHolder;
- public iterator(): any;
+ getHolder(): org.bukkit.inventory.InventoryHolder;
+ iterator(): any;
/**
* Returns an iterator starting at the given index. If the index is
* positive, then the first call to next() will return the item at that
* index; if it is negative, the first call to previous will return the
* item at index (getSize() + index).
*/
- public iterator(index: number): any;
+ iterator(index: number): any;
/**
* Get the location of the block or entity which corresponds to this inventory. May return null if this container
* was custom created or is a virtual / subcontainer.
*/
- public getLocation(): org.bukkit.Location;
+ getLocation(): org.bukkit.Location;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts
index e11a9e3d..04588dd6 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class InventoryHolder {
+ // @ts-ignore
+ interface InventoryHolder {
/**
* Get the object's inventory.
*/
- public getInventory(): org.bukkit.inventory.Inventory;
+ getInventory(): org.bukkit.inventory.Inventory;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts
index 9e9558fd..f7539ed3 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace InventoryView {
- class Property {
+ // @ts-ignore
+ class Property {
public static BREW_TIME: org.bukkit.inventory.InventoryView.Property;
public static BURN_TIME: org.bukkit.inventory.InventoryView.Property;
public static TICKS_FOR_CURRENT_FUEL: org.bukkit.inventory.InventoryView.Property;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts
index 3cad6374..00a1a822 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace inventory {
+ // @ts-ignore
abstract class InventoryView {
constructor()
public static OUTSIDE: number;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts
index 27b31681..a8ce4eb5 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class ItemFactory {
+ // @ts-ignore
+ interface ItemFactory {
/**
* This creates a new item meta for the material.
*/
- public getItemMeta(material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta;
+ getItemMeta(material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta;
/**
* This method checks the item meta to confirm that it is applicable (no
* data lost if applied) to the specified ItemStack.
@@ -13,7 +14,7 @@ declare namespace org {
* A {@link SkullMeta} would not be valid for a sword, but a normal {@link
* ItemMeta} from an enchanted dirt block would.
*/
- public isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): boolean;
+ isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): boolean;
/**
* This method checks the item meta to confirm that it is applicable (no
* data lost if applied) to the specified Material.
@@ -21,11 +22,11 @@ declare namespace org {
* A {@link SkullMeta} would not be valid for a sword, but a normal {@link
* ItemMeta} from an enchanted dirt block would.
*/
- public isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): boolean;
+ isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): boolean;
/**
* This method is used to compare two item meta data objects.
*/
- public equals(meta1: org.bukkit.inventory.meta.ItemMeta, meta2: org.bukkit.inventory.meta.ItemMeta): boolean;
+ equals(meta1: org.bukkit.inventory.meta.ItemMeta, meta2: org.bukkit.inventory.meta.ItemMeta): boolean;
/**
* Returns an appropriate item meta for the specified stack.
*
@@ -39,7 +40,7 @@ declare namespace org {
* specified meta that is applicable to an {@link ItemMeta}, the highest
* common interface.
*/
- public asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): org.bukkit.inventory.meta.ItemMeta;
+ asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): org.bukkit.inventory.meta.ItemMeta;
/**
* Returns an appropriate item meta for the specified material.
*
@@ -53,16 +54,16 @@ declare namespace org {
* specified meta that is applicable to an {@link ItemMeta}, the highest
* common interface.
*/
- public asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta;
+ asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta;
/**
* Returns the default color for all leather armor.
*/
- public getDefaultLeatherColor(): org.bukkit.Color;
+ getDefaultLeatherColor(): org.bukkit.Color;
/**
* Apply a material change for an item meta. Do not use under any
* circumstances.
*/
- public updateMaterial(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.Material;
+ updateMaterial(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.Material;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts
index 780129c2..84d3dde9 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class ItemFlag {
+ // @ts-ignore
+ class ItemFlag {
public static HIDE_ENCHANTS: org.bukkit.inventory.ItemFlag;
public static HIDE_ATTRIBUTES: org.bukkit.inventory.ItemFlag;
public static HIDE_UNBREAKABLE: org.bukkit.inventory.ItemFlag;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts
index d93531b5..ea94d1a6 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class ItemStack {
+ // @ts-ignore
+ class ItemStack implements org.bukkit.configuration.serialization.ConfigurationSerializable {
constructor()
/**
* Defaults stack size to 1, with no extra data
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts
index 24e32b87..0e342731 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts
@@ -1,8 +1,9 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class LecternInventory {
- public getHolder(): org.bukkit.block.Lectern;
+ // @ts-ignore
+ interface LecternInventory extends org.bukkit.inventory.Inventory {
+ getHolder(): org.bukkit.block.Lectern;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts
index 264faf48..7a1c3170 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class LlamaInventory {
+ // @ts-ignore
+ interface LlamaInventory extends org.bukkit.inventory.AbstractHorseInventory {
/**
* Gets the item in the llama's decor slot.
*/
- public getDecor(): org.bukkit.inventory.ItemStack;
+ getDecor(): org.bukkit.inventory.ItemStack;
/**
* Sets the item in the llama's decor slot.
*/
- public setDecor(stack: org.bukkit.inventory.ItemStack): void;
+ setDecor(stack: org.bukkit.inventory.ItemStack): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts
index 7c944aaa..d898135c 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class LoomInventory {
+ // @ts-ignore
+ interface LoomInventory extends org.bukkit.inventory.Inventory {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts
index 5ca18ad2..7a785ea3 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class MainHand {
+ // @ts-ignore
+ class MainHand {
public static LEFT: org.bukkit.inventory.MainHand;
public static RIGHT: org.bukkit.inventory.MainHand;
public static values(): org.bukkit.inventory.MainHand[];
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts
index 30fd4f6b..cf7e3e3e 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts
@@ -1,39 +1,40 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class Merchant {
+ // @ts-ignore
+ interface Merchant {
/**
* Get a list of trades currently available from this merchant.
*/
- public getRecipes(): any[] /*java.util.List*/;
+ getRecipes(): any[] /*java.util.List*/;
/**
* Set the list of trades currently available from this merchant.
*
@@ -15,11 +16,11 @@ declare namespace org {
* selected the first recipe, the merchant will search all of its offers
* for a matching recipe to activate.
*/
- public getSelectedRecipe(): org.bukkit.inventory.MerchantRecipe;
+ getSelectedRecipe(): org.bukkit.inventory.MerchantRecipe;
/**
* Gets the Merchant associated with this inventory.
*/
- public getMerchant(): org.bukkit.inventory.Merchant;
+ getMerchant(): org.bukkit.inventory.Merchant;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts
index 9c13a79a..412b863f 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class MerchantRecipe {
+ // @ts-ignore
+ class MerchantRecipe implements org.bukkit.inventory.Recipe {
constructor(result: org.bukkit.inventory.ItemStack, maxUses: number)
constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean)
constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean, villagerExperience: number, priceMultiplier: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts
index d1766319..ee293ad4 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class PlayerInventory {
+ // @ts-ignore
+ interface PlayerInventory extends org.bukkit.inventory.Inventory {
/**
* Get all ItemStacks from the armor slots
*/
- public getArmorContents(): org.bukkit.inventory.ItemStack[];
+ getArmorContents(): org.bukkit.inventory.ItemStack[];
/**
* Get all additional ItemStacks stored in this inventory.
*
@@ -46,74 +47,74 @@ declare namespace org {
* If you attempt to use this method with an index less than 0 or greater than 40, an ArrayIndexOutOfBounds
* exception will be thrown.
*/
- public setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
+ setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStacks into the armor slots
*/
- public setArmorContents(items: org.bukkit.inventory.ItemStack): void;
+ setArmorContents(items: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStacks into the extra slots
*
* This validates whether the slot is between 0 and 8 inclusive.
*/
- public setHeldItemSlot(slot: number): void;
- public getHolder(): org.bukkit.entity.HumanEntity;
+ setHeldItemSlot(slot: number): void;
+ getHolder(): org.bukkit.entity.HumanEntity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts
index 4a4c1626..ffc42328 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class Recipe {
+ // @ts-ignore
+ interface Recipe {
/**
* Get the result of this recipe.
*/
- public getResult(): org.bukkit.inventory.ItemStack;
+ getResult(): org.bukkit.inventory.ItemStack;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts
index 0edb6d97..edacff53 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace RecipeChoice {
- class ExactChoice {
+ // @ts-ignore
+ class ExactChoice implements org.bukkit.inventory.RecipeChoice {
constructor(stack: org.bukkit.inventory.ItemStack)
constructor(stacks: org.bukkit.inventory.ItemStack)
constructor(choices: any[] /*java.util.List*/)
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts
index 662f9811..2d7d7555 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace RecipeChoice {
- class MaterialChoice {
+ // @ts-ignore
+ class MaterialChoice implements org.bukkit.inventory.RecipeChoice {
constructor(choice: org.bukkit.Material)
constructor(choices: org.bukkit.Material)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts
index 5044c8f8..3f38dc17 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts
@@ -1,13 +1,14 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class RecipeChoice {
+ // @ts-ignore
+ interface RecipeChoice {
/**
* Gets a single item stack representative of this stack choice.
*/
- public getItemStack(): org.bukkit.inventory.ItemStack;
- public clone(): org.bukkit.inventory.RecipeChoice;
- public test(itemStack: org.bukkit.inventory.ItemStack): boolean;
+ getItemStack(): org.bukkit.inventory.ItemStack;
+ clone(): org.bukkit.inventory.RecipeChoice;
+ test(itemStack: org.bukkit.inventory.ItemStack): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts
index 043254b5..0d71a39d 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class ShapedRecipe {
+ // @ts-ignore
+ class ShapedRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed {
constructor(result: org.bukkit.inventory.ItemStack)
/**
* Create a shaped recipe to craft the specified ItemStack. The
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts
index aeda3366..db3c4d50 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class ShapelessRecipe {
+ // @ts-ignore
+ class ShapelessRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed {
constructor(result: org.bukkit.inventory.ItemStack)
/**
* Create a shapeless recipe to craft the specified ItemStack. The
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts
index 427aadc7..36e75a2d 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class SmokingRecipe {
+ // @ts-ignore
+ class SmokingRecipe {
constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number)
constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number)
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts
index b1d0fc1c..42728900 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class StonecutterInventory {
+ // @ts-ignore
+ interface StonecutterInventory extends org.bukkit.inventory.Inventory {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts
index 4c7752db..95e5181c 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class StonecuttingRecipe {
+ // @ts-ignore
+ class StonecuttingRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed {
/**
* Create a Stonecutting recipe to craft the specified ItemStack.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts
index 31e8daed..f32746e8 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts
@@ -2,45 +2,46 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class BannerMeta {
+ // @ts-ignore
+ interface BannerMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Returns the base color for this banner
*/
- public getBaseColor(): org.bukkit.DyeColor;
+ getBaseColor(): org.bukkit.DyeColor;
/**
* Sets the base color for this banner
*/
- 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;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts
index 6820c45d..56e2b703 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts
@@ -2,22 +2,23 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class BlockDataMeta {
+ // @ts-ignore
+ interface BlockDataMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Returns whether the item has block data currently attached to it.
*/
- public hasBlockData(): boolean;
+ hasBlockData(): boolean;
/**
* Returns the currently attached block data for this item or creates a new
* one if one doesn't exist.
* The state is a copy, it must be set back (or to another item) with
* {@link #setBlockData(org.bukkit.block.data.BlockData)}
*/
- public getBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData;
+ getBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData;
/**
* Attaches a copy of the passed block data to the item.
*/
- public setBlockData(blockData: org.bukkit.block.data.BlockData): void;
+ setBlockData(blockData: org.bukkit.block.data.BlockData): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts
index 96062582..cf6bcb08 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts
@@ -2,23 +2,24 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class BlockStateMeta {
+ // @ts-ignore
+ interface BlockStateMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Returns whether the item has a block state currently
* attached to it.
*/
- public hasBlockState(): boolean;
+ hasBlockState(): boolean;
/**
* Returns the currently attached block state for this
* item or creates a new one if one doesn't exist.
* The state is a copy, it must be set back (or to another
* item) with {@link #setBlockState(org.bukkit.block.BlockState)}
*/
- public getBlockState(): org.bukkit.block.BlockState;
+ getBlockState(): org.bukkit.block.BlockState;
/**
* Attaches a copy of the passed block state to the item.
*/
- public setBlockState(blockState: org.bukkit.block.BlockState): void;
+ setBlockState(blockState: org.bukkit.block.BlockState): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts
index 86111170..310f9fcf 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts
@@ -3,7 +3,8 @@ declare namespace org {
namespace inventory {
namespace meta {
namespace BookMeta {
- class Generation {
+ // @ts-ignore
+ class Generation {
public static ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation;
public static COPY_OF_ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation;
public static COPY_OF_COPY: org.bukkit.inventory.meta.BookMeta.Generation;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts
index be772f0d..66403572 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts
@@ -2,64 +2,65 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class BookMeta {
+ // @ts-ignore
+ interface BookMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Checks for the existence of a title in the book.
*/
- public hasTitle(): boolean;
+ hasTitle(): boolean;
/**
* Gets the title of the book.
*
* Plugins should check that hasTitle() returns true before calling this
* method.
*/
- public getTitle(): string;
+ getTitle(): string;
/**
* Sets the title of the book.
*
* Limited to 16 characters. Removes title when given null.
*/
- public setTitle(title: string): boolean;
+ setTitle(title: string): boolean;
/**
* Checks for the existence of an author in the book.
*/
- public hasAuthor(): boolean;
+ hasAuthor(): boolean;
/**
* Gets the author of the book.
*
* Plugins should check that hasAuthor() returns true before calling this
* method.
*/
- public getAuthor(): string;
+ getAuthor(): string;
/**
* Sets the author of the book. Removes author when given null.
*/
- public setAuthor(author: string): void;
+ setAuthor(author: string): void;
/**
* Checks for the existence of generation level in the book.
*/
- public hasGeneration(): boolean;
+ hasGeneration(): boolean;
/**
* Gets the generation of the book.
*
* Plugins should check that hasGeneration() returns true before calling
* this method.
*/
- public getGeneration(): org.bukkit.inventory.meta.BookMeta.Generation;
+ getGeneration(): org.bukkit.inventory.meta.BookMeta.Generation;
/**
* Sets the generation of the book. Removes generation when given null.
*/
- public setGeneration(generation: org.bukkit.inventory.meta.BookMeta.Generation): void;
+ setGeneration(generation: org.bukkit.inventory.meta.BookMeta.Generation): void;
/**
* Checks for the existence of pages in the book.
*/
- public hasPages(): boolean;
+ hasPages(): boolean;
/**
* Gets the specified page in the book. The given page must exist.
*
* Pages are 1-indexed.
*/
- public getPage(page: number): string;
+ getPage(page: number): string;
/**
* Sets the specified page in the book. Pages of the book must be
* contiguous.
@@ -69,31 +70,31 @@ declare namespace org {
*
* Pages are 1-indexed.
*/
- public setPage(page: number, data: string): void;
+ setPage(page: number, data: string): void;
/**
* Gets all the pages in the book.
*/
- public getPages(): any[] /*java.util.List*/;
+ getPages(): any[] /*java.util.List*/;
/**
* Clears the existing book pages, and sets the book to use the provided
* pages. Maximum 50 pages with 256 characters per page.
*/
- public setPages(pages: any[] /*java.util.List*/): void;
+ setPages(pages: any[] /*java.util.List*/): void;
/**
* Clears the existing book pages, and sets the book to use the provided
* pages. Maximum 50 pages with 256 characters per page.
*/
- public setPages(pages: string): void;
+ setPages(pages: string): void;
/**
* Adds new pages to the end of the book. Up to a maximum of 50 pages with
* 256 characters per page.
*/
- public addPage(pages: string): void;
+ addPage(pages: string): void;
/**
* Gets the number of pages in the book.
*/
- public getPageCount(): number;
- public clone(): org.bukkit.inventory.meta.BookMeta;
+ getPageCount(): number;
+ clone(): org.bukkit.inventory.meta.BookMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts
index 598747eb..6604f98f 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts
@@ -2,24 +2,25 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class CrossbowMeta {
+ // @ts-ignore
+ interface CrossbowMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Returns whether the item has any charged projectiles.
*/
- public hasChargedProjectiles(): boolean;
+ hasChargedProjectiles(): boolean;
/**
* Returns an immutable list of the projectiles charged on this item.
*/
- public getChargedProjectiles(): any[] /*java.util.List*/;
+ getChargedProjectiles(): any[] /*java.util.List*/;
/**
* Sets the projectiles charged on this item.
* Removes all projectiles when given null.
*/
- public setChargedProjectiles(projectiles: any[] /*java.util.List*/): void;
+ setChargedProjectiles(projectiles: any[] /*java.util.List*/): void;
/**
* Adds a charged projectile to this item.
*/
- public addChargedProjectile(item: org.bukkit.inventory.ItemStack): void;
+ addChargedProjectile(item: org.bukkit.inventory.ItemStack): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts
index 8a545afa..3cdb29bf 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts
@@ -2,20 +2,21 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class Damageable {
+ // @ts-ignore
+ interface Damageable {
/**
* Checks to see if this item has damage
*/
- public hasDamage(): boolean;
+ hasDamage(): boolean;
/**
* Gets the damage
*/
- public getDamage(): number;
+ getDamage(): number;
/**
* Sets the damage
*/
- public setDamage(damage: number): void;
- public clone(): org.bukkit.inventory.meta.Damageable;
+ setDamage(damage: number): void;
+ clone(): org.bukkit.inventory.meta.Damageable;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts
index 6addf116..f4a81451 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts
@@ -2,37 +2,38 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class EnchantmentStorageMeta {
+ // @ts-ignore
+ interface EnchantmentStorageMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Checks for the existence of any stored enchantments.
*/
- public hasStoredEnchants(): boolean;
+ hasStoredEnchants(): boolean;
/**
* Checks for storage of the specified enchantment.
*/
- public hasStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean;
+ hasStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean;
/**
* Checks for the level of the stored enchantment.
*/
- public getStoredEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number;
+ getStoredEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number;
/**
* Gets a copy the stored enchantments in this ItemMeta.
*/
- public getStoredEnchants(): Map
* Plugins should check that hasDisplayName() returns
* Plugins should check that hasLocalizedName() returns
* Plugins should check if hasLore() returns
* CustomModelData is an integer that may be associated client side with a
* custom item model.
*/
- public hasCustomModelData(): boolean;
+ hasCustomModelData(): boolean;
/**
* Gets the custom model data that is set.
*
@@ -65,79 +66,79 @@ declare namespace org {
* Plugins should check that hasCustomModelData() returns
* CustomModelData is an integer that may be associated client side with a
* custom item model.
*/
- public setCustomModelData(data: any): void;
+ setCustomModelData(data: any): void;
/**
* Checks for the existence of any enchantments.
*/
- public hasEnchants(): boolean;
+ hasEnchants(): boolean;
/**
* Checks for existence of the specified enchantment.
*/
- public hasEnchant(ench: org.bukkit.enchantments.Enchantment): boolean;
+ hasEnchant(ench: org.bukkit.enchantments.Enchantment): boolean;
/**
* Checks for the level of the specified enchantment.
*/
- public getEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number;
+ getEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number;
/**
* Returns a copy the enchantments in this ItemMeta.
* Plugins should check that hasMapView() returns
@@ -37,35 +38,35 @@ declare namespace org {
* this is not required and is liable to generate a new (undefined) map when
* the item is first used.
*/
- public setMapView(map: org.bukkit.map.MapView): void;
+ setMapView(map: org.bukkit.map.MapView): void;
/**
* Checks to see if this map is scaling.
*/
- public isScaling(): boolean;
+ isScaling(): boolean;
/**
* Sets if this map is scaling or not.
*/
- public setScaling(value: boolean): void;
+ setScaling(value: boolean): void;
/**
* Checks for existence of a location name.
*/
- public hasLocationName(): boolean;
+ hasLocationName(): boolean;
/**
* Gets the location name that is set.
*
* Plugins should check that hasLocationName() returns
* This causes the client to display the potion effect in the potion's name.
*/
- public setMainEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ setMainEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Removes all custom potion effects from this potion.
*/
- public clearCustomEffects(): boolean;
+ clearCustomEffects(): boolean;
/**
* Checks for existence of a potion color.
*/
- public hasColor(): boolean;
+ hasColor(): boolean;
/**
* Gets the potion color that is set. A custom potion color will alter the
* display of the potion in an inventory slot.
@@ -56,13 +57,13 @@ declare namespace org {
* Plugins should check that hasColor() returns
* Plugins should check that hasOwner() returns true before calling this
* plugin.
*/
- public setOwningPlayer(owner: org.bukkit.OfflinePlayer): boolean;
- public clone(): org.bukkit.inventory.meta.SkullMeta;
+ setOwningPlayer(owner: org.bukkit.OfflinePlayer): boolean;
+ clone(): org.bukkit.inventory.meta.SkullMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts
index ce2974c6..547cf27a 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts
@@ -2,16 +2,17 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class SpawnEggMeta {
+ // @ts-ignore
+ interface SpawnEggMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Get the type of entity this egg will spawn.
*/
- public getSpawnedType(): org.bukkit.entity.EntityType;
+ getSpawnedType(): org.bukkit.entity.EntityType;
/**
* Set the type of entity this egg will spawn.
*/
- public setSpawnedType(type: org.bukkit.entity.EntityType): void;
- public clone(): org.bukkit.inventory.meta.SpawnEggMeta;
+ setSpawnedType(type: org.bukkit.entity.EntityType): void;
+ clone(): org.bukkit.inventory.meta.SpawnEggMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts
index d8cf5f3c..42c654c7 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts
@@ -2,55 +2,56 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class TropicalFishBucketMeta {
+ // @ts-ignore
+ interface TropicalFishBucketMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Gets the color of the fish's pattern.
*
* Plugins should check that hasVariant() returns
* Setting this when hasVariant() returns
* Plugins should check that hasVariant() returns
* Setting this when hasVariant() returns
* Plugins should check that hasVariant() returns
* Setting this when hasVariant() returns
* If a permission override is not set on this object, the default value
* of the permission will be returned.
*/
- public hasPermission(name: string): boolean;
+ hasPermission(name: string): boolean;
/**
* Gets the value of the specified permission, if set.
*
* If a permission override is not set on this object, the default value
* of the permission will be returned
*/
- public hasPermission(perm: org.bukkit.permissions.Permission): boolean;
+ hasPermission(perm: org.bukkit.permissions.Permission): boolean;
/**
* Adds a new {@link PermissionAttachment} with a single permission by
* name and value
*/
- public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment;
+ addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment;
/**
* Adds a new empty {@link PermissionAttachment} to this object
*/
- public addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment;
+ addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment;
/**
* Temporarily adds a new {@link PermissionAttachment} with a single
* permission by name and value
*/
- public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean, ticks: number): org.bukkit.permissions.PermissionAttachment;
+ addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean, ticks: number): org.bukkit.permissions.PermissionAttachment;
/**
* Temporarily adds a new empty {@link PermissionAttachment} to this
* object
*/
- public addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment;
+ addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment;
/**
* Removes the given {@link PermissionAttachment} from this object
*/
- public removeAttachment(attachment: org.bukkit.permissions.PermissionAttachment): void;
+ removeAttachment(attachment: org.bukkit.permissions.PermissionAttachment): void;
/**
* Recalculates the permissions for this object, if the attachments have
* changed values.
*
* This should very rarely need to be called from a plugin.
*/
- public recalculatePermissions(): void;
+ recalculatePermissions(): void;
/**
* Gets a set containing all of the permissions currently in effect by
* this object
*/
- public getEffectivePermissions(): any[] /*java.util.Set*/;
+ getEffectivePermissions(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts
index 681da228..324439bc 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class PermissibleBase {
+ // @ts-ignore
+ class PermissibleBase implements org.bukkit.permissions.Permissible {
constructor(opable: org.bukkit.permissions.ServerOperator)
public isOp(): boolean;
public setOp(value: boolean): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts b/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts
index 9f6b627b..6c05430a 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class Permission {
+ // @ts-ignore
+ class Permission {
constructor(name: string)
constructor(name: string, description: string)
constructor(name: string, defaultValue: org.bukkit.permissions.PermissionDefault)
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts
index 71ce810a..aa88d3cc 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class PermissionAttachment {
+ // @ts-ignore
+ class PermissionAttachment {
constructor(plugin: org.bukkit.plugin.Plugin, permissible: org.bukkit.permissions.Permissible)
/**
* Gets the plugin responsible for this attachment
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts
index 7d32ed39..e69cbed7 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class PermissionAttachmentInfo {
+ // @ts-ignore
+ class PermissionAttachmentInfo {
constructor(permissible: org.bukkit.permissions.Permissible, permission: string, attachment: org.bukkit.permissions.PermissionAttachment, value: boolean)
/**
* Gets the permissible this is attached to
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts
index 36156d83..f25d5805 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class PermissionDefault {
+ // @ts-ignore
+ class PermissionDefault {
public static TRUE: org.bukkit.permissions.PermissionDefault;
public static FALSE: org.bukkit.permissions.PermissionDefault;
public static OP: org.bukkit.permissions.PermissionDefault;
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts
index dce1f5a3..a30a592b 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts
@@ -1,12 +1,13 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class PermissionRemovedExecutor {
+ // @ts-ignore
+ interface PermissionRemovedExecutor {
/**
* Called when a {@link PermissionAttachment} is removed from a {@link
* Permissible}
*/
- public attachmentRemoved(attachment: org.bukkit.permissions.PermissionAttachment): void;
+ attachmentRemoved(attachment: org.bukkit.permissions.PermissionAttachment): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts b/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts
index e2926b12..d83f117a 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class ServerOperator {
+ // @ts-ignore
+ interface ServerOperator {
/**
* Checks if this object is a server operator
*/
- public isOp(): boolean;
+ isOp(): boolean;
/**
* Sets the operator status of this object
*/
- public setOp(value: boolean): void;
+ setOp(value: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts
index d00c2334..9f034c75 100644
--- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts
+++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace persistence {
- class PersistentDataAdapterContext {
+ // @ts-ignore
+ interface PersistentDataAdapterContext {
/**
* Creates a new and empty meta container instance.
*/
- public newPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
+ newPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts
index aa6e84ad..41267bc1 100644
--- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace persistence {
- class PersistentDataContainer {
+ // @ts-ignore
+ interface PersistentDataContainer {
/**
* Stores a metadata value on the {@link PersistentDataHolder} instance.
*
@@ -10,7 +11,7 @@ declare namespace org {
* value the {@link PersistentDataHolder} may have stored under the provided
* key.
*/
- public set(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, value: any): void;
+ set(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, value: any): void;
/**
* Returns if the persistent metadata provider has metadata registered
* matching the provided parameters.
@@ -29,31 +30,31 @@ declare namespace org {
* tags, like the the display name, will not work as the values are stored
* using your namespace.
*/
- public has(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): boolean;
+ has(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): boolean;
/**
* Returns the metadata value that is stored on the
* {@link PersistentDataHolder} instance.
*/
- public get(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): any;
+ get(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): any;
/**
* Returns the metadata value that is stored on the
* {@link PersistentDataHolder} instance. If the value does not exist in the
* container, the default value provided is returned.
*/
- public getOrDefault(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, defaultValue: any): any;
+ getOrDefault(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, defaultValue: any): any;
/**
* Removes a custom key from the {@link PersistentDataHolder} instance.
*/
- public remove(key: org.bukkit.NamespacedKey): void;
+ remove(key: org.bukkit.NamespacedKey): void;
/**
* Returns if the container instance is empty, therefore has no entries
* inside it.
*/
- public isEmpty(): boolean;
+ isEmpty(): boolean;
/**
* Returns the adapter context this tag container uses.
*/
- public getAdapterContext(): org.bukkit.persistence.PersistentDataAdapterContext;
+ getAdapterContext(): org.bukkit.persistence.PersistentDataAdapterContext;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts
index 7860343a..068f31e0 100644
--- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts
@@ -1,14 +1,15 @@
declare namespace org {
namespace bukkit {
namespace persistence {
- class PersistentDataHolder {
+ // @ts-ignore
+ interface PersistentDataHolder {
/**
* Returns a custom tag container capable of storing tags on the object.
* Note that the tags stored on this container are all stored under their
* own custom namespace therefore modifying default tags using this
* {@link PersistentDataHolder} is impossible.
*/
- public getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
+ getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts
index d6fadf44..e37c41d1 100644
--- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace persistence {
namespace PersistentDataType {
- class PrimitivePersistentDataType {
+ // @ts-ignore
+ class PrimitivePersistentDataType implements org.bukkit.persistence.PersistentDataType {
public getPrimitiveType(): any;
public getComplexType(): any;
public toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any;
diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts
index 0af48b7f..c86e56e1 100644
--- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts
@@ -1,35 +1,36 @@
declare namespace org {
namespace bukkit {
namespace persistence {
- class PersistentDataType {
- public static BYTE: org.bukkit.persistence.PersistentDataType;
- public static SHORT: org.bukkit.persistence.PersistentDataType;
- public static INTEGER: org.bukkit.persistence.PersistentDataType;
- public static LONG: org.bukkit.persistence.PersistentDataType;
- public static FLOAT: org.bukkit.persistence.PersistentDataType;
- public static DOUBLE: org.bukkit.persistence.PersistentDataType;
- public static STRING: org.bukkit.persistence.PersistentDataType;
- public static BYTE_ARRAY: org.bukkit.persistence.PersistentDataType;
- public static INTEGER_ARRAY: org.bukkit.persistence.PersistentDataType;
- public static LONG_ARRAY: org.bukkit.persistence.PersistentDataType;
- public static TAG_CONTAINER: org.bukkit.persistence.PersistentDataType;
+ // @ts-ignore
+ interface PersistentDataType {
+ BYTE: org.bukkit.persistence.PersistentDataType;
+ SHORT: org.bukkit.persistence.PersistentDataType;
+ INTEGER: org.bukkit.persistence.PersistentDataType;
+ LONG: org.bukkit.persistence.PersistentDataType;
+ FLOAT: org.bukkit.persistence.PersistentDataType;
+ DOUBLE: org.bukkit.persistence.PersistentDataType;
+ STRING: org.bukkit.persistence.PersistentDataType;
+ BYTE_ARRAY: org.bukkit.persistence.PersistentDataType;
+ INTEGER_ARRAY: org.bukkit.persistence.PersistentDataType;
+ LONG_ARRAY: org.bukkit.persistence.PersistentDataType;
+ TAG_CONTAINER: org.bukkit.persistence.PersistentDataType;
/**
* Returns the primitive data type of this tag.
*/
- public getPrimitiveType(): any;
+ getPrimitiveType(): any;
/**
* Returns the complex object type the primitive value resembles.
*/
- public getComplexType(): any;
+ getComplexType(): any;
/**
* Returns the primitive data that resembles the complex object passed to
* this method.
*/
- public toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any;
+ toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any;
/**
* Creates a complex object based of the passed primitive value
*/
- public fromPrimitive(primitive: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any;
+ fromPrimitive(primitive: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts
index 73a88b5c..2d820a45 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class AuthorNagException {
+ // @ts-ignore
+ class AuthorNagException {
/**
* Constructs a new AuthorNagException based on the given Exception
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts b/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts
index 5c8f18a4..b35241e8 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts
@@ -1,8 +1,9 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class EventExecutor {
- public execute(listener: org.bukkit.event.Listener, event: org.bukkit.event.Event): void;
+ // @ts-ignore
+ interface EventExecutor {
+ execute(listener: org.bukkit.event.Listener, event: org.bukkit.event.Event): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts
index 57963146..1a089a8f 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class IllegalPluginAccessException {
+ // @ts-ignore
+ class IllegalPluginAccessException {
/**
* Creates a new instance of
* This should fail silently if the config.yml already exists.
*/
- public saveDefaultConfig(): void;
+ saveDefaultConfig(): void;
/**
* Saves the raw contents of any resource embedded with a plugin's .jar
* file assuming it can be found using {@link #getResource(String)}.
@@ -41,65 +42,65 @@ declare namespace org {
* The resource is saved into the plugin's data folder using the same
* hierarchy as the .jar file (subdirectories are preserved).
*/
- public saveResource(resourcePath: string, replace: boolean): void;
+ saveResource(resourcePath: string, replace: boolean): void;
/**
* Discards any data in {@link #getConfig()} and reloads from disk.
*/
- public reloadConfig(): void;
+ reloadConfig(): void;
/**
* Gets the associated PluginLoader responsible for this plugin
*/
- public getPluginLoader(): org.bukkit.plugin.PluginLoader;
+ getPluginLoader(): org.bukkit.plugin.PluginLoader;
/**
* Returns the Server instance currently running this plugin
*/
- public getServer(): org.bukkit.Server;
+ getServer(): org.bukkit.Server;
/**
* Returns a value indicating whether or not this plugin is currently
* enabled
*/
- public isEnabled(): boolean;
+ isEnabled(): boolean;
/**
* Called when this plugin is disabled
*/
- public onDisable(): void;
+ onDisable(): void;
/**
* Called after a plugin is loaded but before it has been enabled.
*
* When multiple plugins are loaded, the onLoad() for all plugins is
* called before any onEnable() is called.
*/
- public onLoad(): void;
+ onLoad(): void;
/**
* Called when this plugin is enabled
*/
- public onEnable(): void;
+ onEnable(): void;
/**
* Simple boolean if we can still nag to the logs about things
*/
- public isNaggable(): boolean;
+ isNaggable(): boolean;
/**
* Set naggable state
*/
- public setNaggable(canNag: boolean): void;
+ setNaggable(canNag: boolean): void;
/**
* Gets a {@link ChunkGenerator} for use in a default world, as specified
* in the server configuration
*/
- public getDefaultWorldGenerator(worldName: string, id: string): org.bukkit.generator.ChunkGenerator;
+ getDefaultWorldGenerator(worldName: string, id: string): org.bukkit.generator.ChunkGenerator;
/**
* Returns the plugin logger associated with this server's logger. The
* returned logger automatically tags all log messages with the plugin's
* name.
*/
- public getLogger(): any;
+ getLogger(): any;
/**
* Returns the name of the plugin.
*
* This should return the bare name of the plugin and should be used for
* comparison.
*/
- public getName(): string;
+ getName(): string;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts
index 0a93f516..6f3764e5 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace PluginAwareness {
- class Flags {
+ // @ts-ignore
+ class Flags implements org.bukkit.plugin.PluginAwareness {
public static UTF8: org.bukkit.plugin.PluginAwareness.Flags;
public static values(): org.bukkit.plugin.PluginAwareness.Flags[];
public static valueOf(name: string): org.bukkit.plugin.PluginAwareness.Flags;
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts
index 44eb29a0..9119c7f4 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginAwareness {
+ // @ts-ignore
+ interface PluginAwareness {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts
index c603d406..930c1f26 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- abstract class PluginBase {
+ // @ts-ignore
+ abstract class PluginBase implements org.bukkit.plugin.Plugin {
constructor()
public hashCode(): number;
public equals(obj: any): boolean;
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts
index 4747d2a8..05cd8014 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginDescriptionFile {
+ // @ts-ignore
+ class PluginDescriptionFile {
constructor(stream: any)
/**
* Loads a PluginDescriptionFile from the specified reader
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts
index 2776e3e5..4610d403 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginLoadOrder {
+ // @ts-ignore
+ class PluginLoadOrder {
public static STARTUP: org.bukkit.plugin.PluginLoadOrder;
public static POSTWORLD: org.bukkit.plugin.PluginLoadOrder;
public static values(): org.bukkit.plugin.PluginLoadOrder[];
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts
index cc33be04..cb657a0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts
@@ -1,37 +1,38 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginLoader {
+ // @ts-ignore
+ interface PluginLoader {
/**
* Loads the plugin contained in the specified file
*/
- public loadPlugin(file: any): org.bukkit.plugin.Plugin;
+ loadPlugin(file: any): org.bukkit.plugin.Plugin;
/**
* Loads a PluginDescriptionFile from the specified file
*/
- public getPluginDescription(file: any): org.bukkit.plugin.PluginDescriptionFile;
+ getPluginDescription(file: any): org.bukkit.plugin.PluginDescriptionFile;
/**
* Returns a list of all filename filters expected by this PluginLoader
*/
- public getPluginFileFilters(): any;
+ getPluginFileFilters(): any;
/**
* Creates and returns registered listeners for the event classes used in
* this listener
*/
- public createRegisteredListeners(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): Map
* Attempting to enable a plugin that is already enabled will have no
* effect
*/
- public enablePlugin(plugin: org.bukkit.plugin.Plugin): void;
+ enablePlugin(plugin: org.bukkit.plugin.Plugin): void;
/**
* Disables the specified plugin
*
* Attempting to disable a plugin that is not enabled will have no effect
*/
- public disablePlugin(plugin: org.bukkit.plugin.Plugin): void;
+ disablePlugin(plugin: org.bukkit.plugin.Plugin): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts
index c0d91275..c7fbc4e6 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginLogger {
+ // @ts-ignore
+ class PluginLogger {
/**
* Creates a new PluginLogger that extracts the name from a plugin.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts
index 253fb7d9..34980518 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts
@@ -1,89 +1,90 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class PluginManager {
+ // @ts-ignore
+ interface PluginManager {
/**
* Registers the specified plugin loader
*/
- public registerInterface(loader: any): void;
+ registerInterface(loader: any): void;
/**
* Checks if the given plugin is loaded and returns it when applicable
*
* Please note that the name of the plugin is case-sensitive
*/
- public getPlugin(name: string): org.bukkit.plugin.Plugin;
+ getPlugin(name: string): org.bukkit.plugin.Plugin;
/**
* Gets a list of all currently loaded plugins
*/
- public getPlugins(): org.bukkit.plugin.Plugin[];
+ getPlugins(): org.bukkit.plugin.Plugin[];
/**
* Checks if the given plugin is enabled or not
*
* Please note that the name of the plugin is case-sensitive.
*/
- public isPluginEnabled(name: string): boolean;
+ isPluginEnabled(name: string): boolean;
/**
* Checks if the given plugin is enabled or not
*/
- public isPluginEnabled(plugin: org.bukkit.plugin.Plugin): boolean;
+ isPluginEnabled(plugin: org.bukkit.plugin.Plugin): boolean;
/**
* Loads the plugin in the specified file
*
* File must be valid according to the current enabled Plugin interfaces
*/
- public loadPlugin(file: any): org.bukkit.plugin.Plugin;
+ loadPlugin(file: any): org.bukkit.plugin.Plugin;
/**
* Loads the plugins contained within the specified directory
*/
- public loadPlugins(directory: any): org.bukkit.plugin.Plugin[];
+ loadPlugins(directory: any): org.bukkit.plugin.Plugin[];
/**
* Disables all the loaded plugins
*/
- public disablePlugins(): void;
+ disablePlugins(): void;
/**
* Disables and removes all plugins
*/
- public clearPlugins(): void;
+ clearPlugins(): void;
/**
* Calls an event with the given details
*/
- public callEvent(event: org.bukkit.event.Event): void;
+ callEvent(event: org.bukkit.event.Event): void;
/**
* Registers all the events in the given listener class
*/
- public registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void;
+ registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void;
/**
* Registers the specified executor to the given event class
*/
- public registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin): void;
+ registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin): void;
/**
* Registers the specified executor to the given event class
*/
- public registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean): void;
+ registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean): void;
/**
* Enables the specified plugin
*
* Attempting to enable a plugin that is already enabled will have no
* effect
*/
- public enablePlugin(plugin: org.bukkit.plugin.Plugin): void;
+ enablePlugin(plugin: org.bukkit.plugin.Plugin): void;
/**
* Disables the specified plugin
*
* Attempting to disable a plugin that is not enabled will have no effect
*/
- public disablePlugin(plugin: org.bukkit.plugin.Plugin): void;
+ disablePlugin(plugin: org.bukkit.plugin.Plugin): void;
/**
* Gets a {@link Permission} from its fully qualified name
*/
- public getPermission(name: string): org.bukkit.permissions.Permission;
+ getPermission(name: string): org.bukkit.permissions.Permission;
/**
* Adds a {@link Permission} to this plugin manager.
*
* If a permission is already defined with the given name of the new
* permission, an exception will be thrown.
*/
- public addPermission(perm: org.bukkit.permissions.Permission): void;
+ addPermission(perm: org.bukkit.permissions.Permission): void;
/**
* Removes a {@link Permission} registration from this plugin manager.
*
@@ -93,7 +94,7 @@ declare namespace org {
* Removing a permission registration will not remove the
* permission from any {@link Permissible}s that have it.
*/
- public removePermission(perm: org.bukkit.permissions.Permission): void;
+ removePermission(perm: org.bukkit.permissions.Permission): void;
/**
* Removes a {@link Permission} registration from this plugin manager.
*
@@ -103,18 +104,18 @@ declare namespace org {
* Removing a permission registration will not remove the
* permission from any {@link Permissible}s that have it.
*/
- public removePermission(name: string): void;
+ removePermission(name: string): void;
/**
* Gets the default permissions for the given op status
*/
- public getDefaultPermissions(op: boolean): any[] /*java.util.Set*/;
+ getDefaultPermissions(op: boolean): any[] /*java.util.Set*/;
/**
* Recalculates the defaults for the given {@link Permission}.
*
* This will have no effect if the specified permission is not registered
* here.
*/
- public recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void;
+ recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void;
/**
* Subscribes the given Permissible for information about the requested
* Permission, by name.
@@ -122,43 +123,43 @@ declare namespace org {
* If the specified Permission changes in any form, the Permissible will
* be asked to recalculate.
*/
- public subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void;
+ subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void;
/**
* Unsubscribes the given Permissible for information about the requested
* Permission, by name.
*/
- public unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void;
+ unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void;
/**
* Gets a set containing all subscribed {@link Permissible}s to the given
* permission, by name
*/
- public getPermissionSubscriptions(permission: string): any[] /*java.util.Set*/;
+ getPermissionSubscriptions(permission: string): any[] /*java.util.Set*/;
/**
* Subscribes to the given Default permissions by operator status
*
* If the specified defaults change in any form, the Permissible will be
* asked to recalculate.
*/
- public subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void;
+ subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void;
/**
* Unsubscribes from the given Default permissions by operator status
*/
- public unsubscribeFromDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void;
+ unsubscribeFromDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void;
/**
* Gets a set containing all subscribed {@link Permissible}s to the given
* default list, by op status
*/
- public getDefaultPermSubscriptions(op: boolean): any[] /*java.util.Set*/;
+ getDefaultPermSubscriptions(op: boolean): any[] /*java.util.Set*/;
/**
* Gets a set of all registered permissions.
*
* This set is a copy and will not be modified live.
*/
- public getPermissions(): any[] /*java.util.Set*/;
+ getPermissions(): any[] /*java.util.Set*/;
/**
* Returns whether or not timing code should be used for event calls
*/
- public useTimings(): boolean;
+ useTimings(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts
index 6785d927..5a37faa9 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class RegisteredListener {
+ // @ts-ignore
+ class RegisteredListener {
constructor(listener: org.bukkit.event.Listener, executor: org.bukkit.plugin.EventExecutor, priority: org.bukkit.event.EventPriority, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean)
/**
* Gets the listener for this registration
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts
index 3928ecf8..d866a86a 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class RegisteredServiceProvider {
+ // @ts-ignore
+ class RegisteredServiceProvider {
constructor(service: any, provider: any, priority: org.bukkit.plugin.ServicePriority, plugin: org.bukkit.plugin.Plugin)
public getService(): any;
public getPlugin(): org.bukkit.plugin.Plugin;
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts b/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts
index 1eb67a22..098ebb73 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class ServicePriority {
+ // @ts-ignore
+ class ServicePriority {
public static Lowest: org.bukkit.plugin.ServicePriority;
public static Low: org.bukkit.plugin.ServicePriority;
public static Normal: org.bukkit.plugin.ServicePriority;
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts
index 5651d250..4e7c6768 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts
@@ -1,53 +1,54 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class ServicesManager {
+ // @ts-ignore
+ interface ServicesManager {
/**
* Register a provider of a service.
*/
- public register(service: any, provider: any, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void;
+ register(service: any, provider: any, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void;
/**
* Unregister all the providers registered by a particular plugin.
*/
- public unregisterAll(plugin: org.bukkit.plugin.Plugin): void;
+ unregisterAll(plugin: org.bukkit.plugin.Plugin): void;
/**
* Unregister a particular provider for a particular service.
*/
- public unregister(service: any, provider: any): void;
+ unregister(service: any, provider: any): void;
/**
* Unregister a particular provider.
*/
- public unregister(provider: any): void;
+ unregister(provider: any): void;
/**
* Queries for a provider. This may return if no provider has been
* registered for a service. The highest priority provider is returned.
*/
- public load(service: any): any;
+ load(service: any): any;
/**
* Queries for a provider registration. This may return if no provider
* has been registered for a service.
*/
- public getRegistration(service: any): org.bukkit.plugin.RegisteredServiceProvider;
+ getRegistration(service: any): org.bukkit.plugin.RegisteredServiceProvider;
/**
* Get registrations of providers for a plugin.
*/
- public getRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/;
+ getRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/;
/**
* Get registrations of providers for a service. The returned list is
* unmodifiable.
*/
- public getRegistrations(service: any): any[] /*java.util.Collection*/;
+ getRegistrations(service: any): any[] /*java.util.Collection*/;
/**
* Get a list of known services. A service is known if it has registered
* providers for it.
*/
- public getKnownServices(): any[] /*java.util.Collection*/;
+ getKnownServices(): any[] /*java.util.Collection*/;
/**
* Returns whether a provider has been registered for a service. Do not
* check this first only to call
* A registration is considered valid if it has not be unregistered and
* that the plugin is still enabled.
*/
- public isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean;
+ isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean;
/**
* Checks if the specified plugin has registered to receive incoming
* messages through the requested channel.
*/
- public isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean;
+ isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean;
/**
* Checks if the specified plugin has registered to send outgoing messages
* through the requested channel.
*/
- public isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean;
+ isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean;
/**
* Dispatches the specified incoming message to any registered listeners.
*/
- public dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void;
+ dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts
index ed9842a3..9cecdda9 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class PluginChannelDirection {
+ // @ts-ignore
+ class PluginChannelDirection {
public static INCOMING: org.bukkit.plugin.messaging.PluginChannelDirection;
public static OUTGOING: org.bukkit.plugin.messaging.PluginChannelDirection;
public static values(): org.bukkit.plugin.messaging.PluginChannelDirection[];
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts
index b2fbc9be..ee7dc45d 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts
@@ -2,12 +2,13 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class PluginMessageListener {
+ // @ts-ignore
+ interface PluginMessageListener {
/**
* A method that will be thrown when a PluginMessageSource sends a plugin
* message on a registered channel.
*/
- public onPluginMessageReceived(channel: string, player: org.bukkit.entity.Player, message: number): void;
+ onPluginMessageReceived(channel: string, player: org.bukkit.entity.Player, message: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts
index 064905f0..af080195 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class PluginMessageListenerRegistration {
+ // @ts-ignore
+ class PluginMessageListenerRegistration {
constructor(messenger: org.bukkit.plugin.messaging.Messenger, plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener)
/**
* Gets the plugin channel that this registration is about.
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts
index 206a29ba..e5c9874d 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class PluginMessageRecipient {
+ // @ts-ignore
+ interface PluginMessageRecipient {
/**
* Sends this recipient a Plugin Message on the specified outgoing
* channel.
@@ -11,12 +12,12 @@ declare namespace org {
* bytes, and the plugin must be registered to send messages on the
* specified channel.
*/
- public sendPluginMessage(source: org.bukkit.plugin.Plugin, channel: string, message: number): void;
+ sendPluginMessage(source: org.bukkit.plugin.Plugin, channel: string, message: number): void;
/**
* Gets a set containing all the Plugin Channels that this client is
* listening on.
*/
- public getListeningPluginChannels(): any[] /*java.util.Set*/;
+ getListeningPluginChannels(): any[] /*java.util.Set*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts
index 9524b322..d42ed863 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class ReservedChannelException {
+ // @ts-ignore
+ class ReservedChannelException {
constructor()
constructor(name: string)
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts
index 90b8e28b..21e4e268 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class StandardMessenger {
+ // @ts-ignore
+ class StandardMessenger implements org.bukkit.plugin.messaging.Messenger {
constructor()
public isReservedChannel(channel: string): boolean;
public registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts b/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts
index 5eb39269..a255fda7 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class Potion {
+ // @ts-ignore
+ class Potion {
/**
* Construct a new potion of the given type. Unless the type is {@link
* PotionType#WATER}, it will be level one, without extended duration.
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts
index fd99aefc..05a7ab3a 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts
@@ -1,22 +1,23 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class PotionBrewer {
+ // @ts-ignore
+ interface PotionBrewer {
/**
* Creates a {@link PotionEffect} from the given {@link PotionEffectType},
* applying duration modifiers and checks.
*/
- public createEffect(potion: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number): org.bukkit.potion.PotionEffect;
+ createEffect(potion: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number): org.bukkit.potion.PotionEffect;
/**
* Returns a collection of {@link PotionEffect} that would be applied from
* a potion with the given data value.
*/
- public getEffectsFromDamage(damage: number): any[] /*java.util.Collection*/;
+ getEffectsFromDamage(damage: number): any[] /*java.util.Collection*/;
/**
* Returns a collection of {@link PotionEffect} that would be applied from
* a potion with the given type.
*/
- public getEffects(type: org.bukkit.potion.PotionType, upgraded: boolean, extended: boolean): any[] /*java.util.Collection*/;
+ getEffects(type: org.bukkit.potion.PotionType, upgraded: boolean, extended: boolean): any[] /*java.util.Collection*/;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts
index 5eb4431d..f73fd6b0 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class PotionData {
+ // @ts-ignore
+ class PotionData {
/**
* Instantiates a final PotionData object to contain information about a
* Potion
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts
index 4b4d863a..1a6b8ba0 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class PotionEffect {
+ // @ts-ignore
+ class PotionEffect implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Creates a potion effect.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts
index ddf8595d..a5db9ea7 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace potion {
+ // @ts-ignore
abstract class PotionEffectType {
constructor(id: number)
public static SPEED: org.bukkit.potion.PotionEffectType;
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts
index ea866081..9ef5e610 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class PotionEffectTypeWrapper {
+ // @ts-ignore
+ class PotionEffectTypeWrapper {
constructor(id: number)
public getDurationModifier(): number;
public getName(): string;
diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts
index 8f346466..621db99d 100644
--- a/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace potion {
- class PotionType {
+ // @ts-ignore
+ class PotionType {
public static UNCRAFTABLE: org.bukkit.potion.PotionType;
public static WATER: org.bukkit.potion.PotionType;
public static MUNDANE: org.bukkit.potion.PotionType;
diff --git a/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts b/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts
index ed9ec4b0..dee37e7c 100644
--- a/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts
+++ b/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace projectiles {
- class BlockProjectileSource {
+ // @ts-ignore
+ interface BlockProjectileSource extends org.bukkit.projectiles.ProjectileSource {
/**
* Gets the block this projectile source belongs to.
*/
- public getBlock(): org.bukkit.block.Block;
+ getBlock(): org.bukkit.block.Block;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts b/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts
index 3ee122cc..68560c86 100644
--- a/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts
+++ b/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace projectiles {
- class ProjectileSource {
+ // @ts-ignore
+ interface ProjectileSource {
/**
* Launches a {@link Projectile} from the ProjectileSource.
*/
- public launchProjectile(projectile: any): org.bukkit.entity.Projectile;
+ launchProjectile(projectile: any): org.bukkit.entity.Projectile;
/**
* Launches a {@link Projectile} from the ProjectileSource with an
* initial velocity.
*/
- public launchProjectile(projectile: any, velocity: org.bukkit.util.Vector): org.bukkit.entity.Projectile;
+ launchProjectile(projectile: any, velocity: org.bukkit.util.Vector): org.bukkit.entity.Projectile;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts
index e6da0b89..09c29d75 100644
--- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace scheduler {
+ // @ts-ignore
abstract class BukkitRunnable {
constructor()
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts
index fe9a09d8..1fdc08b2 100644
--- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts
@@ -1,28 +1,29 @@
declare namespace org {
namespace bukkit {
namespace scheduler {
- class BukkitScheduler {
+ // @ts-ignore
+ interface BukkitScheduler {
/**
* Schedules a once off task to occur after a delay.
*
* This task will be executed by the main server thread.
*/
- public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number;
- public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): number;
+ scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number;
+ scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): number;
/**
* Schedules a once off task to occur as soon as possible.
*
* This task will be executed by the main server thread.
*/
- public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number;
- public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): number;
+ scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number;
+ scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): number;
/**
* Schedules a repeating task.
*
* This task will be executed by the main server thread.
*/
- public scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number;
- public scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): number;
+ scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number;
+ scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): number;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -30,7 +31,7 @@ declare namespace org {
* Schedules a once off task to occur after a delay. This task will be
* executed by a thread managed by the scheduler.
*/
- public scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number;
+ scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -38,7 +39,7 @@ declare namespace org {
* Schedules a once off task to occur as soon as possible. This task will
* be executed by a thread managed by the scheduler.
*/
- public scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number;
+ scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -46,7 +47,7 @@ declare namespace org {
* Schedules a repeating task. This task will be executed by a thread
* managed by the scheduler.
*/
- public scheduleAsyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number;
+ scheduleAsyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number;
/**
* Calls a method on the main thread and returns a Future object. This
* task will be executed by the main server thread.
@@ -57,16 +58,16 @@ declare namespace org {
* isDone() method returns true.
*
*/
- public callSyncMethod(plugin: org.bukkit.plugin.Plugin, task: any): any;
+ callSyncMethod(plugin: org.bukkit.plugin.Plugin, task: any): any;
/**
* Removes task from scheduler.
*/
- public cancelTask(taskId: number): void;
+ cancelTask(taskId: number): void;
/**
* Removes all tasks associated with a particular plugin from the
* scheduler.
*/
- public cancelTasks(plugin: org.bukkit.plugin.Plugin): void;
+ cancelTasks(plugin: org.bukkit.plugin.Plugin): void;
/**
* Check if the task currently running.
*
@@ -77,7 +78,7 @@ declare namespace org {
* Explicitly, a task is running if there exists a thread for it, and that
* thread is alive.
*/
- public isCurrentlyRunning(taskId: number): boolean;
+ isCurrentlyRunning(taskId: number): boolean;
/**
* Check if the task queued to be run later.
*
@@ -85,54 +86,54 @@ declare namespace org {
* but could be in the future. A task that is not queued, and not running,
* will not be queued again.
*/
- public isQueued(taskId: number): boolean;
+ isQueued(taskId: number): boolean;
/**
* Returns a list of all active workers.
*
* This list contains asynch tasks that are being executed by separate
* threads.
*/
- public getActiveWorkers(): any[] /*java.util.List*/;
+ getActiveWorkers(): any[] /*java.util.List*/;
/**
* Returns a list of all pending tasks. The ordering of the tasks is not
* related to their order of execution.
*/
- public getPendingTasks(): any[] /*java.util.List*/;
+ getPendingTasks(): any[] /*java.util.List*/;
/**
* Returns a task that will run on the next server tick.
*/
- public runTask(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask;
+ runTask(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask;
/**
* Returns a task that will run on the next server tick.
*/
- public runTask(plugin: org.bukkit.plugin.Plugin, task: any): void;
- public runTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask;
+ runTask(plugin: org.bukkit.plugin.Plugin, task: any): void;
+ runTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
*
* Returns a task that will run asynchronously.
*/
- public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask;
+ runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
*
* Returns a task that will run asynchronously.
*/
- public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): void;
- public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask;
+ runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): void;
+ runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask;
/**
* Returns a task that will run after the specified number of server
* ticks.
*/
- public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask;
+ runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask;
/**
* Returns a task that will run after the specified number of server
* ticks.
*/
- public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void;
- public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask;
+ runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void;
+ runTaskLater(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -140,7 +141,7 @@ declare namespace org {
* Returns a task that will run asynchronously after the specified number
* of server ticks.
*/
- public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask;
+ runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -148,19 +149,19 @@ declare namespace org {
* Returns a task that will run asynchronously after the specified number
* of server ticks.
*/
- public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void;
- public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask;
+ runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void;
+ runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask;
/**
* Returns a task that will repeatedly run until cancelled, starting after
* the specified number of server ticks.
*/
- public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
+ runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
/**
* Returns a task that will repeatedly run until cancelled, starting after
* the specified number of server ticks.
*/
- public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void;
- public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
+ runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void;
+ runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -168,7 +169,7 @@ declare namespace org {
* Returns a task that will repeatedly run asynchronously until cancelled,
* starting after the specified number of server ticks.
*/
- public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
+ runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
/**
* Asynchronous tasks should never access any API in Bukkit. Great care
* should be taken to assure the thread-safety of asynchronous tasks.
@@ -176,8 +177,8 @@ declare namespace org {
* Returns a task that will repeatedly run asynchronously until cancelled,
* starting after the specified number of server ticks.
*/
- public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void;
- public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
+ runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void;
+ runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts
index fe78061e..b5f16c5d 100644
--- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts
@@ -1,27 +1,28 @@
declare namespace org {
namespace bukkit {
namespace scheduler {
- class BukkitTask {
+ // @ts-ignore
+ interface BukkitTask {
/**
* Returns the taskId for the task.
*/
- public getTaskId(): number;
+ getTaskId(): number;
/**
* Returns the Plugin that owns this task.
*/
- public getOwner(): org.bukkit.plugin.Plugin;
+ getOwner(): org.bukkit.plugin.Plugin;
/**
* Returns true if the Task is a sync task.
*/
- public isSync(): boolean;
+ isSync(): boolean;
/**
* Returns true if this task has been cancelled.
*/
- public isCancelled(): boolean;
+ isCancelled(): boolean;
/**
* Will attempt to cancel this task.
*/
- public cancel(): void;
+ cancel(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts
index 1fa0ba13..088e56e5 100644
--- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts
@@ -1,19 +1,20 @@
declare namespace org {
namespace bukkit {
namespace scheduler {
- class BukkitWorker {
+ // @ts-ignore
+ interface BukkitWorker {
/**
* Returns the taskId for the task being executed by this worker.
*/
- public getTaskId(): number;
+ getTaskId(): number;
/**
* Returns the Plugin that owns this task.
*/
- public getOwner(): org.bukkit.plugin.Plugin;
+ getOwner(): org.bukkit.plugin.Plugin;
/**
* Returns the thread for the worker.
*/
- public getThread(): any;
+ getThread(): any;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts
index e6002f7a..e9c0f616 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class Criterias {
+ // @ts-ignore
+ class Criterias {
public static HEALTH: string;
public static PLAYER_KILLS: string;
public static TOTAL_KILLS: string;
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts
index 0ffb36f7..54c923e8 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class DisplaySlot {
+ // @ts-ignore
+ class DisplaySlot {
public static BELOW_NAME: org.bukkit.scoreboard.DisplaySlot;
public static PLAYER_LIST: org.bukkit.scoreboard.DisplaySlot;
public static SIDEBAR: org.bukkit.scoreboard.DisplaySlot;
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts
index a9537630..695b5a50 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class NameTagVisibility {
+ // @ts-ignore
+ class NameTagVisibility {
public static ALWAYS: org.bukkit.scoreboard.NameTagVisibility;
public static NEVER: org.bukkit.scoreboard.NameTagVisibility;
public static HIDE_FOR_OTHER_TEAMS: org.bukkit.scoreboard.NameTagVisibility;
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts
index 45fa151d..368314fb 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts
@@ -1,60 +1,61 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class Objective {
+ // @ts-ignore
+ interface Objective {
/**
* Gets the name of this Objective
*/
- public getName(): string;
+ getName(): string;
/**
* Gets the name displayed to players for this objective
*/
- public getDisplayName(): string;
+ getDisplayName(): string;
/**
* Sets the name displayed to players for this objective.
*/
- public setDisplayName(displayName: string): void;
+ setDisplayName(displayName: string): void;
/**
* Gets the criteria this objective tracks.
*/
- public getCriteria(): string;
+ getCriteria(): string;
/**
* Gets if the objective's scores can be modified directly by a plugin.
*/
- public isModifiable(): boolean;
+ isModifiable(): boolean;
/**
* Gets the scoreboard to which this objective is attached.
*/
- public getScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getScoreboard(): org.bukkit.scoreboard.Scoreboard;
/**
* Unregisters this objective from the {@link Scoreboard scoreboard.}
*/
- public unregister(): void;
+ unregister(): void;
/**
* Sets this objective to display on the specified slot for the
* scoreboard, removing it from any other display slot.
*/
- public setDisplaySlot(slot: org.bukkit.scoreboard.DisplaySlot): void;
+ setDisplaySlot(slot: org.bukkit.scoreboard.DisplaySlot): void;
/**
* Gets the display slot this objective is displayed at.
*/
- public getDisplaySlot(): org.bukkit.scoreboard.DisplaySlot;
+ getDisplaySlot(): org.bukkit.scoreboard.DisplaySlot;
/**
* Sets manner in which this objective will be rendered.
*/
- public setRenderType(renderType: org.bukkit.scoreboard.RenderType): void;
+ setRenderType(renderType: org.bukkit.scoreboard.RenderType): void;
/**
* Sets manner in which this objective will be rendered.
*/
- public getRenderType(): org.bukkit.scoreboard.RenderType;
+ getRenderType(): org.bukkit.scoreboard.RenderType;
/**
* Gets a player's Score for an Objective on this Scoreboard
*/
- public getScore(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Score;
+ getScore(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Score;
/**
* Gets an entry's Score for an Objective on this Scoreboard.
*/
- public getScore(entry: string): org.bukkit.scoreboard.Score;
+ getScore(entry: string): org.bukkit.scoreboard.Score;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts
index 1d36fa5e..dad69500 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class RenderType {
+ // @ts-ignore
+ class RenderType {
public static INTEGER: org.bukkit.scoreboard.RenderType;
public static HEARTS: org.bukkit.scoreboard.RenderType;
public static values(): org.bukkit.scoreboard.RenderType[];
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts
index 56f9ba67..ea816dd9 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts
@@ -1,35 +1,36 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class Score {
+ // @ts-ignore
+ interface Score {
/**
* Gets the OfflinePlayer being tracked by this Score
*/
- public getPlayer(): org.bukkit.OfflinePlayer;
+ getPlayer(): org.bukkit.OfflinePlayer;
/**
* Gets the entry being tracked by this Score
*/
- public getEntry(): string;
+ getEntry(): string;
/**
* Gets the Objective being tracked by this Score
*/
- public getObjective(): org.bukkit.scoreboard.Objective;
+ getObjective(): org.bukkit.scoreboard.Objective;
/**
* Gets the current score
*/
- public getScore(): number;
+ getScore(): number;
/**
* Sets the current score.
*/
- public setScore(score: number): void;
+ setScore(score: number): void;
/**
* Shows if this score has been set at any point in time.
*/
- public isScoreSet(): boolean;
+ isScoreSet(): boolean;
/**
* Gets the scoreboard for the associated objective.
*/
- public getScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getScoreboard(): org.bukkit.scoreboard.Scoreboard;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts
index 984ba7a5..ec793870 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts
@@ -1,84 +1,85 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class Scoreboard {
+ // @ts-ignore
+ interface Scoreboard {
/**
* Registers an Objective on this Scoreboard
*/
- public registerNewObjective(name: string, criteria: string): org.bukkit.scoreboard.Objective;
+ registerNewObjective(name: string, criteria: string): org.bukkit.scoreboard.Objective;
/**
* Registers an Objective on this Scoreboard
*/
- public registerNewObjective(name: string, criteria: string, displayName: string): org.bukkit.scoreboard.Objective;
+ registerNewObjective(name: string, criteria: string, displayName: string): org.bukkit.scoreboard.Objective;
/**
* Registers an Objective on this Scoreboard
*/
- public registerNewObjective(name: string, criteria: string, displayName: string, renderType: org.bukkit.scoreboard.RenderType): org.bukkit.scoreboard.Objective;
+ registerNewObjective(name: string, criteria: string, displayName: string, renderType: org.bukkit.scoreboard.RenderType): org.bukkit.scoreboard.Objective;
/**
* Gets an Objective on this Scoreboard by name
*/
- public getObjective(name: string): org.bukkit.scoreboard.Objective;
+ getObjective(name: string): org.bukkit.scoreboard.Objective;
/**
* Gets all Objectives of a Criteria on the Scoreboard
*/
- public getObjectivesByCriteria(criteria: string): any[] /*java.util.Set*/;
+ getObjectivesByCriteria(criteria: string): any[] /*java.util.Set*/;
/**
* Gets all Objectives on this Scoreboard
*/
- public getObjectives(): any[] /*java.util.Set*/;
+ getObjectives(): any[] /*java.util.Set*/;
/**
* Gets the Objective currently displayed in a DisplaySlot on this
* Scoreboard
*/
- public getObjective(slot: org.bukkit.scoreboard.DisplaySlot): org.bukkit.scoreboard.Objective;
+ getObjective(slot: org.bukkit.scoreboard.DisplaySlot): org.bukkit.scoreboard.Objective;
/**
* Gets all scores for a player on this Scoreboard
*/
- public getScores(player: org.bukkit.OfflinePlayer): any[] /*java.util.Set*/;
+ getScores(player: org.bukkit.OfflinePlayer): any[] /*java.util.Set*/;
/**
* Gets all scores for an entry on this Scoreboard
*/
- public getScores(entry: string): any[] /*java.util.Set*/;
+ getScores(entry: string): any[] /*java.util.Set*/;
/**
* Removes all scores for a player on this Scoreboard
*/
- public resetScores(player: org.bukkit.OfflinePlayer): void;
+ resetScores(player: org.bukkit.OfflinePlayer): void;
/**
* Removes all scores for an entry on this Scoreboard
*/
- public resetScores(entry: string): void;
+ resetScores(entry: string): void;
/**
* Gets a player's Team on this Scoreboard
*/
- public getPlayerTeam(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Team;
+ getPlayerTeam(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Team;
/**
* Gets a entries Team on this Scoreboard
*/
- public getEntryTeam(entry: string): org.bukkit.scoreboard.Team;
+ getEntryTeam(entry: string): org.bukkit.scoreboard.Team;
/**
* Gets a Team by name on this Scoreboard
*/
- public getTeam(teamName: string): org.bukkit.scoreboard.Team;
+ getTeam(teamName: string): org.bukkit.scoreboard.Team;
/**
* Gets all teams on this Scoreboard
*/
- public getTeams(): any[] /*java.util.Set*/;
+ getTeams(): any[] /*java.util.Set*/;
/**
* Registers a Team on this Scoreboard
*/
- public registerNewTeam(name: string): org.bukkit.scoreboard.Team;
+ registerNewTeam(name: string): org.bukkit.scoreboard.Team;
/**
* Gets all players tracked by this Scoreboard
*/
- public getPlayers(): any[] /*java.util.Set*/;
+ getPlayers(): any[] /*java.util.Set*/;
/**
* Gets all entries tracked by this Scoreboard
*/
- public getEntries(): any[] /*java.util.Set*/;
+ getEntries(): any[] /*java.util.Set*/;
/**
* Clears any objective in the specified slot.
*/
- public clearSlot(slot: org.bukkit.scoreboard.DisplaySlot): void;
+ clearSlot(slot: org.bukkit.scoreboard.DisplaySlot): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts
index 06d8dc23..7b85af21 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts
@@ -1,20 +1,21 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class ScoreboardManager {
+ // @ts-ignore
+ interface ScoreboardManager {
/**
* Gets the primary Scoreboard controlled by the server.
*
* This Scoreboard is saved by the server, is affected by the /scoreboard
* command, and is the scoreboard shown by default to players.
*/
- public getMainScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getMainScoreboard(): org.bukkit.scoreboard.Scoreboard;
/**
* Gets a new Scoreboard to be tracked by the server. This scoreboard will
* be tracked as long as a reference is kept, either by a player or by a
* plugin.
*/
- public getNewScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getNewScoreboard(): org.bukkit.scoreboard.Scoreboard;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts
index c702a804..93579b11 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace scoreboard {
namespace Team {
- class Option {
+ // @ts-ignore
+ class Option {
public static NAME_TAG_VISIBILITY: org.bukkit.scoreboard.Team.Option;
public static DEATH_MESSAGE_VISIBILITY: org.bukkit.scoreboard.Team.Option;
public static COLLISION_RULE: org.bukkit.scoreboard.Team.Option;
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts
index eda7226b..25d261a6 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace scoreboard {
namespace Team {
- class OptionStatus {
+ // @ts-ignore
+ class OptionStatus {
public static ALWAYS: org.bukkit.scoreboard.Team.OptionStatus;
public static NEVER: org.bukkit.scoreboard.Team.OptionStatus;
public static FOR_OTHER_TEAMS: org.bukkit.scoreboard.Team.OptionStatus;
diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts
index a5644923..b3d7d9d7 100644
--- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts
+++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts
@@ -1,131 +1,132 @@
declare namespace org {
namespace bukkit {
namespace scoreboard {
- class Team {
+ // @ts-ignore
+ interface Team {
/**
* Gets the name of this Team
*/
- public getName(): string;
+ getName(): string;
/**
* Gets the name displayed to entries for this team
*/
- public getDisplayName(): string;
+ getDisplayName(): string;
/**
* Sets the name displayed to entries for this team
*/
- public setDisplayName(displayName: string): void;
+ setDisplayName(displayName: string): void;
/**
* Gets the prefix prepended to the display of entries on this team.
*/
- public getPrefix(): string;
+ getPrefix(): string;
/**
* Sets the prefix prepended to the display of entries on this team.
*/
- public setPrefix(prefix: string): void;
+ setPrefix(prefix: string): void;
/**
* Gets the suffix appended to the display of entries on this team.
*/
- public getSuffix(): string;
+ getSuffix(): string;
/**
* Sets the suffix appended to the display of entries on this team.
*/
- public setSuffix(suffix: string): void;
+ setSuffix(suffix: string): void;
/**
* Gets the color of the team.
*
* This will remove the player from any other team on the scoreboard.
*/
- public addPlayer(player: org.bukkit.OfflinePlayer): void;
+ addPlayer(player: org.bukkit.OfflinePlayer): void;
/**
* This puts the specified entry onto this team for the scoreboard.
*
* This will remove the entry from any other team on the scoreboard.
*/
- public addEntry(entry: string): void;
+ addEntry(entry: string): void;
/**
* Removes the player from this team.
*/
- public removePlayer(player: org.bukkit.OfflinePlayer): boolean;
+ removePlayer(player: org.bukkit.OfflinePlayer): boolean;
/**
* Removes the entry from this team.
*/
- public removeEntry(entry: string): boolean;
+ removeEntry(entry: string): boolean;
/**
* Unregisters this team from the Scoreboard
*/
- public unregister(): void;
+ unregister(): void;
/**
* Checks to see if the specified player is a member of this team.
*/
- public hasPlayer(player: org.bukkit.OfflinePlayer): boolean;
+ hasPlayer(player: org.bukkit.OfflinePlayer): boolean;
/**
* Checks to see if the specified entry is a member of this team.
*/
- public hasEntry(entry: string): boolean;
+ hasEntry(entry: string): boolean;
/**
* Get an option for this team
*/
- public getOption(option: org.bukkit.scoreboard.Team.Option): org.bukkit.scoreboard.Team.OptionStatus;
+ getOption(option: org.bukkit.scoreboard.Team.Option): org.bukkit.scoreboard.Team.OptionStatus;
/**
* Set an option for this team
*/
- public setOption(option: org.bukkit.scoreboard.Team.Option, status: org.bukkit.scoreboard.Team.OptionStatus): void;
+ setOption(option: org.bukkit.scoreboard.Team.Option, status: org.bukkit.scoreboard.Team.OptionStatus): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts b/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts
index 1e5d6606..9b7ca07c 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class BlockIterator {
+ // @ts-ignore
+ class BlockIterator {
/**
* Constructs the BlockIterator.
*
diff --git a/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts b/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts
index 24aa93d9..8473fb3e 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class BlockVector {
+ // @ts-ignore
+ class BlockVector {
/**
* Construct the vector with all components as 0.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts b/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts
index a44e6000..d222c982 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class BoundingBox {
+ // @ts-ignore
+ class BoundingBox implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Creates a new (degenerate) bounding box with all corner coordinates at
* 0.5 * (1 + power level)
added for arrows fired from
* enchanted bows.
*/
- public getDamage(): number;
+ getDamage(): number;
/**
* Sets the base amount of damage this arrow will do.
*/
- public setDamage(damage: number): void;
+ setDamage(damage: number): void;
/**
* Gets the number of times this arrow can pierce through an entity.
*/
- public getPierceLevel(): number;
+ getPierceLevel(): number;
/**
* Sets the number of times this arrow can pierce through an entity.
* Must be between 0 and 127 times.
*/
- public setPierceLevel(pierceLevel: number): void;
+ setPierceLevel(pierceLevel: number): void;
/**
* Gets whether this arrow is critical.
*
@@ -9,7 +10,7 @@ declare namespace org {
* items that a villager might have collected (from harvesting crops, etc.)
* {@inheritDoc}
*/
- public getInventory(): org.bukkit.inventory.Inventory;
+ getInventory(): org.bukkit.inventory.Inventory;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts
index aec91f78..eb7f6c38 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts
@@ -1,45 +1,46 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Ageable {
+ // @ts-ignore
+ interface Ageable extends org.bukkit.entity.Creature {
/**
* Gets the age of this animal.
*/
- public getAge(): number;
+ getAge(): number;
/**
* Sets the age of this animal.
*/
- public setAge(age: number): void;
+ setAge(age: number): void;
/**
* Lock the age of the animal, setting this will prevent the animal from
* maturing or getting ready for mating.
*/
- public setAgeLock(lock: boolean): void;
+ setAgeLock(lock: boolean): void;
/**
* Gets the current agelock.
*/
- public getAgeLock(): boolean;
+ getAgeLock(): boolean;
/**
* Sets the age of the animal to a baby
*/
- public setBaby(): void;
+ setBaby(): void;
/**
* Sets the age of the animal to an adult
*/
- public setAdult(): void;
+ setAdult(): void;
/**
* Returns true if the animal is an adult.
*/
- public isAdult(): boolean;
+ isAdult(): boolean;
/**
* Return the ability to breed of the animal.
*/
- public canBreed(): boolean;
+ canBreed(): boolean;
/**
* Set breedability of the animal, if the animal is a baby and set to
* breed it will instantly grow up.
*/
- public setBreed(breed: boolean): void;
+ setBreed(breed: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts
index 463d1c0a..445e9219 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Ambient {
+ // @ts-ignore
+ interface Ambient extends org.bukkit.entity.Mob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts b/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts
index b1c05bd8..53f468b9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class AnimalTamer {
+ // @ts-ignore
+ interface AnimalTamer {
/**
* This is the name of the specified AnimalTamer.
*/
- public getName(): string;
+ getName(): string;
/**
* This is the UUID of the specified AnimalTamer.
*/
- public getUniqueId(): any;
+ getUniqueId(): any;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts b/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts
index 12e9085e..fc3f9273 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts
@@ -1,34 +1,35 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Animals {
+ // @ts-ignore
+ interface Animals extends org.bukkit.entity.Ageable {
/**
* Get the UUID of the entity that caused this entity to enter the
* {@link #canBreed()} state.
*/
- public getBreedCause(): any;
+ getBreedCause(): any;
/**
* Set the UUID of the entity that caused this entity to enter the
* {@link #canBreed()} state.
*/
- public setBreedCause(uuid: any): void;
+ setBreedCause(uuid: any): void;
/**
* Get whether or not this entity is in love mode and will produce
* offspring with another entity in love mode. Will return true if
* and only if {@link #getLoveModeTicks()} is greater than 0.
*/
- public isLoveMode(): boolean;
+ isLoveMode(): boolean;
/**
* Get the amount of ticks remaining for this entity in love mode.
* If the entity is not in love mode, 0 will be returned.
*/
- public getLoveModeTicks(): number;
+ getLoveModeTicks(): number;
/**
* Set the amount of ticks for which this entity should be in love mode.
* Setting the love mode ticks to 600 is the equivalent of a player
* feeding the entity their breeding item of choice.
*/
- public setLoveModeTicks(ticks: number): void;
+ setLoveModeTicks(ticks: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts b/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts
index ab17a07c..daa061d9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts
@@ -1,93 +1,94 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class AreaEffectCloud {
+ // @ts-ignore
+ interface AreaEffectCloud extends org.bukkit.entity.Entity {
/**
* Gets the duration which this cloud will exist for (in ticks).
*/
- public getDuration(): number;
+ getDuration(): number;
/**
* Sets the duration which this cloud will exist for (in ticks).
*/
- public setDuration(duration: number): void;
+ setDuration(duration: number): void;
/**
* Gets the time which an entity has to be exposed to the cloud before the
* effect is applied.
*/
- public getWaitTime(): number;
+ getWaitTime(): number;
/**
* Sets the time which an entity has to be exposed to the cloud before the
* effect is applied.
*/
- public setWaitTime(waitTime: number): void;
+ setWaitTime(waitTime: number): void;
/**
* Gets the time that an entity will be immune from subsequent exposure.
*/
- public getReapplicationDelay(): number;
+ getReapplicationDelay(): number;
/**
* Sets the time that an entity will be immune from subsequent exposure.
*/
- public setReapplicationDelay(delay: number): void;
+ setReapplicationDelay(delay: number): void;
/**
* Gets the amount that the duration of this cloud will decrease by when it
* applies an effect to an entity.
*/
- public getDurationOnUse(): number;
+ getDurationOnUse(): number;
/**
* Sets the amount that the duration of this cloud will decrease by when it
* applies an effect to an entity.
*/
- public setDurationOnUse(duration: number): void;
+ setDurationOnUse(duration: number): void;
/**
* Gets the initial radius of the cloud.
*/
- public getRadius(): number;
+ getRadius(): number;
/**
* Sets the initial radius of the cloud.
*/
- public setRadius(radius: number): void;
+ setRadius(radius: number): void;
/**
* Gets the amount that the radius of this cloud will decrease by when it
* applies an effect to an entity.
*/
- public getRadiusOnUse(): number;
+ getRadiusOnUse(): number;
/**
* Sets the amount that the radius of this cloud will decrease by when it
* applies an effect to an entity.
*/
- public setRadiusOnUse(radius: number): void;
+ setRadiusOnUse(radius: number): void;
/**
* Gets the amount that the radius of this cloud will decrease by each tick.
*/
- public getRadiusPerTick(): number;
+ getRadiusPerTick(): number;
/**
* Gets the amount that the radius of this cloud will decrease by each tick.
*/
- public setRadiusPerTick(radius: number): void;
+ setRadiusPerTick(radius: number): void;
/**
* Gets the particle which this cloud will be composed of
*/
- public getParticle(): org.bukkit.Particle;
+ getParticle(): org.bukkit.Particle;
/**
* Sets the particle which this cloud will be composed of
*/
- public setParticle(particle: org.bukkit.Particle): void;
+ setParticle(particle: org.bukkit.Particle): void;
/**
* Sets the particle which this cloud will be composed of
*/
- public setParticle(particle: org.bukkit.Particle, data: any): void;
+ setParticle(particle: org.bukkit.Particle, data: any): void;
/**
* Sets the underlying potion data
*/
- public setBasePotionData(data: org.bukkit.potion.PotionData): void;
+ setBasePotionData(data: org.bukkit.potion.PotionData): void;
/**
* Returns the potion data about the base potion
*/
- public getBasePotionData(): org.bukkit.potion.PotionData;
+ getBasePotionData(): org.bukkit.potion.PotionData;
/**
* Checks for the presence of custom potion effects.
*/
- public hasCustomEffects(): boolean;
+ hasCustomEffects(): boolean;
/**
* Gets an immutable list containing all custom potion effects applied to
* this cloud.
@@ -95,39 +96,39 @@ declare namespace org {
* Plugins should check that hasCustomEffects() returns true before calling
* this method.
*/
- public getCustomEffects(): any[] /*java.util.List*/;
+ getCustomEffects(): any[] /*java.util.List*/;
/**
* Adds a custom potion effect to this cloud.
*/
- public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
+ addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
/**
* Removes a custom potion effect from this cloud.
*/
- public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Checks for a specific custom potion effect type on this cloud.
*/
- public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Removes all custom potion effects from this cloud.
*/
- public clearCustomEffects(): void;
+ clearCustomEffects(): void;
/**
* Gets the color of this cloud. Will be applied as a tint to its particles.
*/
- public getColor(): org.bukkit.Color;
+ getColor(): org.bukkit.Color;
/**
* Sets the color of this cloud. Will be applied as a tint to its particles.
*/
- public setColor(color: org.bukkit.Color): void;
+ setColor(color: org.bukkit.Color): void;
/**
* Retrieve the original source of this cloud.
*/
- public getSource(): org.bukkit.projectiles.ProjectileSource;
+ getSource(): org.bukkit.projectiles.ProjectileSource;
/**
* Set the original source of this cloud.
*/
- public setSource(source: org.bukkit.projectiles.ProjectileSource): void;
+ setSource(source: org.bukkit.projectiles.ProjectileSource): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts b/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts
index 2a9066bf..3f301a52 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts
@@ -1,165 +1,166 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ArmorStand {
+ // @ts-ignore
+ interface ArmorStand extends org.bukkit.entity.LivingEntity {
/**
* Returns the item the armor stand is
* currently holding
*/
- public getItemInHand(): org.bukkit.inventory.ItemStack;
+ getItemInHand(): org.bukkit.inventory.ItemStack;
/**
* Sets the item the armor stand is currently
* holding
*/
- public setItemInHand(item: org.bukkit.inventory.ItemStack): void;
+ setItemInHand(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the item currently being worn
* by the armor stand on its feet
*/
- public getBoots(): org.bukkit.inventory.ItemStack;
+ getBoots(): org.bukkit.inventory.ItemStack;
/**
* Sets the item currently being worn
* by the armor stand on its feet
*/
- public setBoots(item: org.bukkit.inventory.ItemStack): void;
+ setBoots(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the item currently being worn
* by the armor stand on its legs
*/
- public getLeggings(): org.bukkit.inventory.ItemStack;
+ getLeggings(): org.bukkit.inventory.ItemStack;
/**
* Sets the item currently being worn
* by the armor stand on its legs
*/
- public setLeggings(item: org.bukkit.inventory.ItemStack): void;
+ setLeggings(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the item currently being worn
* by the armor stand on its chest
*/
- public getChestplate(): org.bukkit.inventory.ItemStack;
+ getChestplate(): org.bukkit.inventory.ItemStack;
/**
* Sets the item currently being worn
* by the armor stand on its chest
*/
- public setChestplate(item: org.bukkit.inventory.ItemStack): void;
+ setChestplate(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the item currently being worn
* by the armor stand on its head
*/
- public getHelmet(): org.bukkit.inventory.ItemStack;
+ getHelmet(): org.bukkit.inventory.ItemStack;
/**
* Sets the item currently being worn
* by the armor stand on its head
*/
- public setHelmet(item: org.bukkit.inventory.ItemStack): void;
+ setHelmet(item: org.bukkit.inventory.ItemStack): void;
/**
* Returns the armor stand's body's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getBodyPose(): org.bukkit.util.EulerAngle;
+ getBodyPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's body's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setBodyPose(pose: org.bukkit.util.EulerAngle): void;
+ setBodyPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns the armor stand's left arm's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getLeftArmPose(): org.bukkit.util.EulerAngle;
+ getLeftArmPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's left arm's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setLeftArmPose(pose: org.bukkit.util.EulerAngle): void;
+ setLeftArmPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns the armor stand's right arm's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getRightArmPose(): org.bukkit.util.EulerAngle;
+ getRightArmPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's right arm's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setRightArmPose(pose: org.bukkit.util.EulerAngle): void;
+ setRightArmPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns the armor stand's left leg's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getLeftLegPose(): org.bukkit.util.EulerAngle;
+ getLeftLegPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's left leg's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setLeftLegPose(pose: org.bukkit.util.EulerAngle): void;
+ setLeftLegPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns the armor stand's right leg's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getRightLegPose(): org.bukkit.util.EulerAngle;
+ getRightLegPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's right leg's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setRightLegPose(pose: org.bukkit.util.EulerAngle): void;
+ setRightLegPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns the armor stand's head's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public getHeadPose(): org.bukkit.util.EulerAngle;
+ getHeadPose(): org.bukkit.util.EulerAngle;
/**
* Sets the armor stand's head's
* current pose as a {@link org.bukkit.util.EulerAngle}
*/
- public setHeadPose(pose: org.bukkit.util.EulerAngle): void;
+ setHeadPose(pose: org.bukkit.util.EulerAngle): void;
/**
* Returns whether the armor stand has
* a base plate
*/
- public hasBasePlate(): boolean;
+ hasBasePlate(): boolean;
/**
* Sets whether the armor stand has a
* base plate
*/
- public setBasePlate(basePlate: boolean): void;
+ setBasePlate(basePlate: boolean): void;
/**
* Returns whether the armor stand should be
* visible or not
*/
- public isVisible(): boolean;
+ isVisible(): boolean;
/**
* Sets whether the armor stand should be
* visible or not
*/
- public setVisible(visible: boolean): void;
+ setVisible(visible: boolean): void;
/**
* Returns whether this armor stand has arms
*/
- public hasArms(): boolean;
+ hasArms(): boolean;
/**
* Sets whether this armor stand has arms
*/
- public setArms(arms: boolean): void;
+ setArms(arms: boolean): void;
/**
* Returns whether this armor stand is scaled
* down
*/
- public isSmall(): boolean;
+ isSmall(): boolean;
/**
* Sets whether this armor stand is scaled
* down
*/
- public setSmall(small: boolean): void;
+ setSmall(small: boolean): void;
/**
* Returns whether this armor stand is a marker,
* meaning it has a very small collision box
*/
- public isMarker(): boolean;
+ isMarker(): boolean;
/**
* Sets whether this armor stand is a marker,
* meaning it has a very small collision box
*/
- public setMarker(marker: boolean): void;
+ setMarker(marker: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts
index 6e01935c..9204d24e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts
@@ -1,27 +1,28 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Arrow {
+ // @ts-ignore
+ interface Arrow extends org.bukkit.entity.AbstractArrow {
/**
* Sets the underlying potion data
*/
- public setBasePotionData(data: org.bukkit.potion.PotionData): void;
+ setBasePotionData(data: org.bukkit.potion.PotionData): void;
/**
* Returns the potion data about the base potion
*/
- public getBasePotionData(): org.bukkit.potion.PotionData;
+ getBasePotionData(): org.bukkit.potion.PotionData;
/**
* Gets the color of this arrow.
*/
- public getColor(): org.bukkit.Color;
+ getColor(): org.bukkit.Color;
/**
* Sets the color of this arrow. Will be applied as a tint to its particles.
*/
- public setColor(color: org.bukkit.Color): void;
+ setColor(color: org.bukkit.Color): void;
/**
* Checks for the presence of custom potion effects.
*/
- public hasCustomEffects(): boolean;
+ hasCustomEffects(): boolean;
/**
* Gets an immutable list containing all custom potion effects applied to
* this arrow.
@@ -29,23 +30,23 @@ declare namespace org {
* Plugins should check that hasCustomEffects() returns true before calling
* this method.
*/
- public getCustomEffects(): any[] /*java.util.List*/;
+ getCustomEffects(): any[] /*java.util.List*/;
/**
* Adds a custom potion effect to this arrow.
*/
- public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
+ addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
/**
* Removes a custom potion effect from this arrow.
*/
- public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Checks for a specific custom potion effect type on this arrow.
*/
- public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Removes all custom potion effects from this arrow.
*/
- public clearCustomEffects(): void;
+ clearCustomEffects(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts
index 793f0a6e..0772273a 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts
@@ -1,20 +1,21 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Bat {
+ // @ts-ignore
+ interface Bat extends org.bukkit.entity.Ambient {
/**
* Checks the current waking state of this bat.
*
* When setting a new target location, the {@link #getDropItem()} resets to
* a random value and the despawn timer gets set back to 0.
*/
- public setTargetLocation(location: org.bukkit.Location): void;
+ setTargetLocation(location: org.bukkit.Location): void;
/**
* Gets if the EnderSignal should drop an item on death.
* If {@code true}, it will drop an item. If {@code false}, it will shatter.
*/
- public getDropItem(): boolean;
+ getDropItem(): boolean;
/**
* Sets if the EnderSignal should drop an item on death; or if it should
* shatter.
*/
- public setDropItem(drop: boolean): void;
+ setDropItem(drop: boolean): void;
/**
* Gets the amount of time this entity has been alive (in ticks).
*
* When this number is greater than 80, it will despawn on the next tick.
*/
- public getDespawnTimer(): number;
+ getDespawnTimer(): number;
/**
* Set how long this entity has been alive (in ticks).
*
* When this number is greater than 80, it will despawn on the next tick.
*/
- public setDespawnTimer(timer: number): void;
+ setDespawnTimer(timer: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts b/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts
index 1beba98f..3af544b1 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Enderman {
+ // @ts-ignore
+ interface Enderman extends org.bukkit.entity.Monster {
/**
* Gets the id and data of the block that the Enderman is carrying.
*/
- public getCarriedMaterial(): org.bukkit.material.MaterialData;
+ getCarriedMaterial(): org.bukkit.material.MaterialData;
/**
* Sets the id and data of the block that the Enderman is carrying.
*/
- public setCarriedMaterial(material: org.bukkit.material.MaterialData): void;
+ setCarriedMaterial(material: org.bukkit.material.MaterialData): void;
/**
* Gets the data of the block that the Enderman is carrying.
*/
- public getCarriedBlock(): org.bukkit.block.data.BlockData;
+ getCarriedBlock(): org.bukkit.block.data.BlockData;
/**
* Sets the data of the block that the Enderman is carrying.
*/
- public setCarriedBlock(blockData: org.bukkit.block.data.BlockData): void;
+ setCarriedBlock(blockData: org.bukkit.block.data.BlockData): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts b/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts
index dc49a85f..fab483a4 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts
@@ -1,17 +1,18 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Endermite {
+ // @ts-ignore
+ interface Endermite extends org.bukkit.entity.Monster {
/**
* Gets whether this Endermite was spawned by a player.
* An Endermite spawned by a player will be attacked by nearby Enderman.
*/
- public isPlayerSpawned(): boolean;
+ isPlayerSpawned(): boolean;
/**
* Sets whether this Endermite was spawned by a player.
* An Endermite spawned by a player will be attacked by nearby Enderman.
*/
- public setPlayerSpawned(playerSpawned: boolean): void;
+ setPlayerSpawned(playerSpawned: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts b/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts
index 6a308a9e..9f7673f5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts
@@ -1,117 +1,118 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Entity {
+ // @ts-ignore
+ interface Entity extends org.bukkit.metadata.Metadatable, org.bukkit.command.CommandSender, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder {
/**
* Gets the entity's current position
*/
- public getLocation(): org.bukkit.Location;
+ getLocation(): org.bukkit.Location;
/**
* Stores the entity's current position in the provided Location object.
*
* Entities can have no more than 1024 tags.
*/
- public getScoreboardTags(): any[] /*java.util.Set*/;
+ getScoreboardTags(): any[] /*java.util.Set*/;
/**
* Add a tag to this entity.
*
* Entities can have no more than 1024 tags.
*/
- public addScoreboardTag(tag: string): boolean;
+ addScoreboardTag(tag: string): boolean;
/**
* Removes a given tag from this entity.
*/
- public removeScoreboardTag(tag: string): boolean;
+ removeScoreboardTag(tag: string): boolean;
/**
* Returns the reaction of the entity when moved by a piston.
*/
- public getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction;
+ getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction;
/**
* Get the closest cardinal {@link BlockFace} direction an entity is
* currently facing.
@@ -315,14 +316,14 @@ declare namespace org {
* {@link Hanging} entities will override this call and thus their behavior
* may be different.
*/
- public getFacing(): org.bukkit.block.BlockFace;
+ getFacing(): org.bukkit.block.BlockFace;
/**
* Gets the entity's current pose.
* Note that the pose is only updated at the end of a tick, so may be
* inconsistent with other methods. eg {@link Player#isSneaking()} being
* true does not imply the current pose will be {@link Pose#SNEAKING}
*/
- public getPose(): org.bukkit.entity.Pose;
+ getPose(): org.bukkit.entity.Pose;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts b/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts
index b4af98fb..2c9a5d65 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EntityType {
+ // @ts-ignore
+ class EntityType implements org.bukkit.Keyed {
public static DROPPED_ITEM: org.bukkit.entity.EntityType;
public static EXPERIENCE_ORB: org.bukkit.entity.EntityType;
public static AREA_EFFECT_CLOUD: org.bukkit.entity.EntityType;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts
index 3b0e738a..a5de7f49 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Evoker {
- class Spell {
+ // @ts-ignore
+ class Spell {
public static NONE: org.bukkit.entity.Evoker.Spell;
public static SUMMON: org.bukkit.entity.Evoker.Spell;
public static FANGS: org.bukkit.entity.Evoker.Spell;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts
index 8d9cfec8..bf7e1068 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Evoker {
+ // @ts-ignore
+ interface Evoker extends org.bukkit.entity.Spellcaster {
/**
* Gets the {@link Spell} the Evoker is currently using.
*/
- public getCurrentSpell(): org.bukkit.entity.Evoker.Spell;
+ getCurrentSpell(): org.bukkit.entity.Evoker.Spell;
/**
* Sets the {@link Spell} the Evoker is currently using.
*/
- public setCurrentSpell(spell: org.bukkit.entity.Evoker.Spell): void;
+ setCurrentSpell(spell: org.bukkit.entity.Evoker.Spell): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts b/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts
index 160f5e48..e8be6a92 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class EvokerFangs {
+ // @ts-ignore
+ interface EvokerFangs extends org.bukkit.entity.Entity {
/**
* Gets the {@link LivingEntity} which summoned the fangs.
*/
- public getOwner(): org.bukkit.entity.LivingEntity;
+ getOwner(): org.bukkit.entity.LivingEntity;
/**
* Sets the {@link LivingEntity} which summoned the fangs.
*/
- public setOwner(owner: org.bukkit.entity.LivingEntity): void;
+ setOwner(owner: org.bukkit.entity.LivingEntity): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts b/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts
index 90edb45b..6ed2be2e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ExperienceOrb {
+ // @ts-ignore
+ interface ExperienceOrb extends org.bukkit.entity.Entity {
/**
* Gets how much experience is contained within this orb
*/
- public getExperience(): number;
+ getExperience(): number;
/**
* Sets how much experience is contained within this orb
*/
- public setExperience(value: number): void;
+ setExperience(value: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts b/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts
index 000dab10..9e87f5e4 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Explosive {
+ // @ts-ignore
+ interface Explosive extends org.bukkit.entity.Entity {
/**
* Set the radius affected by this explosive's explosion
*/
- public setYield(yield: number): void;
+ setYield(yield: number): void;
/**
* Return the radius or yield of this explosive's explosion
*/
- public getYield(): number;
+ getYield(): number;
/**
* Set whether or not this explosive's explosion causes fire
*/
- public setIsIncendiary(isIncendiary: boolean): void;
+ setIsIncendiary(isIncendiary: boolean): void;
/**
* Return whether or not this explosive creates a fire when exploding
*/
- public isIncendiary(): boolean;
+ isIncendiary(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts b/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts
index e13aff66..a8d1d91c 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts
@@ -1,31 +1,32 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class FallingBlock {
+ // @ts-ignore
+ interface FallingBlock extends org.bukkit.entity.Entity {
/**
* Get the Material of the falling block
*/
- public getMaterial(): org.bukkit.Material;
+ getMaterial(): org.bukkit.Material;
/**
* Get the data for the falling block
*/
- public getBlockData(): org.bukkit.block.data.BlockData;
+ getBlockData(): org.bukkit.block.data.BlockData;
/**
* Get if the falling block will break into an item if it cannot be placed
*/
- public getDropItem(): boolean;
+ getDropItem(): boolean;
/**
* Set if the falling block will break into an item if it cannot be placed
*/
- public setDropItem(drop: boolean): void;
+ setDropItem(drop: boolean): void;
/**
* Get the HurtEntities state of this block.
*/
- public canHurtEntities(): boolean;
+ canHurtEntities(): boolean;
/**
* Set the HurtEntities state of this block.
*/
- public setHurtEntities(hurtEntities: boolean): void;
+ setHurtEntities(hurtEntities: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts
index 299a894f..403a72af 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Fireball {
+ // @ts-ignore
+ interface Fireball extends org.bukkit.entity.Projectile, org.bukkit.entity.Explosive {
/**
* Fireballs fly straight and do not take setVelocity(...) well.
*/
- public setDirection(direction: org.bukkit.util.Vector): void;
+ setDirection(direction: org.bukkit.util.Vector): void;
/**
* Retrieve the direction this fireball is heading toward
*/
- public getDirection(): org.bukkit.util.Vector;
+ getDirection(): org.bukkit.util.Vector;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts b/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts
index 44d32ccf..271da48c 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts
@@ -1,30 +1,31 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Firework {
+ // @ts-ignore
+ interface Firework extends org.bukkit.entity.Entity {
/**
* Get a copy of the fireworks meta
*/
- public getFireworkMeta(): org.bukkit.inventory.meta.FireworkMeta;
+ getFireworkMeta(): org.bukkit.inventory.meta.FireworkMeta;
/**
* Apply the provided meta to the fireworks
*/
- public setFireworkMeta(meta: org.bukkit.inventory.meta.FireworkMeta): void;
+ setFireworkMeta(meta: org.bukkit.inventory.meta.FireworkMeta): void;
/**
* Cause this firework to explode at earliest opportunity, as if it has no
* remaining fuse.
*/
- public detonate(): void;
+ detonate(): void;
/**
* Gets if the firework was shot at an angle (i.e. from a crossbow).
* A firework which was not shot at an angle will fly straight upwards.
*/
- public isShotAtAngle(): boolean;
+ isShotAtAngle(): boolean;
/**
* Sets if the firework was shot at an angle (i.e. from a crossbow).
* A firework which was not shot at an angle will fly straight upwards.
*/
- public setShotAtAngle(shotAtAngle: boolean): void;
+ setShotAtAngle(shotAtAngle: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts
index 195e4418..f4feb556 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Fish {
+ // @ts-ignore
+ interface Fish extends org.bukkit.entity.WaterMob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts b/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts
index 377c7579..195f60b0 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts
@@ -1,21 +1,22 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class FishHook {
+ // @ts-ignore
+ interface FishHook extends org.bukkit.entity.Projectile {
/**
* Gets the chance of a fish biting.
*
* 1.0 = Instant catch.
*/
- public getBiteChance(): number;
+ getBiteChance(): number;
/**
* Sets the chance of a fish biting.
*
* 1.0 = Instant catch.
*/
- public setBiteChance(chance: number): void;
+ setBiteChance(chance: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts b/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts
index fcf02dd0..f0503044 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Flying {
+ // @ts-ignore
+ interface Flying extends org.bukkit.entity.Mob {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts
index be283fed..5be1d58c 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Fox {
- class Type {
+ // @ts-ignore
+ class Type {
public static RED: org.bukkit.entity.Fox.Type;
public static SNOW: org.bukkit.entity.Fox.Type;
public static values(): org.bukkit.entity.Fox.Type[];
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts
index e7458c2d..827f9a9b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts
@@ -1,27 +1,28 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Fox {
+ // @ts-ignore
+ interface Fox extends org.bukkit.entity.Animals, org.bukkit.entity.Sittable {
/**
* Gets the current type of this fox.
*/
- public getFoxType(): org.bukkit.entity.Fox.Type;
+ getFoxType(): org.bukkit.entity.Fox.Type;
/**
* Sets the current type of this fox.
*/
- public setFoxType(type: org.bukkit.entity.Fox.Type): void;
+ setFoxType(type: org.bukkit.entity.Fox.Type): void;
/**
* Checks if this animal is crouching
*/
- public isCrouching(): boolean;
+ isCrouching(): boolean;
/**
* Sets if this animal is crouching.
*/
- public setCrouching(crouching: boolean): void;
+ setCrouching(crouching: boolean): void;
/**
* Sets if this animal is sleeping.
*/
- public setSleeping(sleeping: boolean): void;
+ setSleeping(sleeping: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts
index c43b32b6..8219923f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Ghast {
+ // @ts-ignore
+ interface Ghast extends org.bukkit.entity.Flying {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts
index feafa53f..903d707f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Giant {
+ // @ts-ignore
+ interface Giant extends org.bukkit.entity.Monster {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts b/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts
index df5a05f2..c4a171ce 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Golem {
+ // @ts-ignore
+ interface Golem extends org.bukkit.entity.Creature {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts b/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts
index 809d2715..f7a7bf06 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts
@@ -1,12 +1,13 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Guardian {
+ // @ts-ignore
+ interface Guardian extends org.bukkit.entity.Monster {
/**
* Check if the Guardian is an elder Guardian
*/
- public isElder(): boolean;
- public setElder(shouldBeElder: boolean): void;
+ isElder(): boolean;
+ setElder(shouldBeElder: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts b/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts
index 35eddb46..4e7bf3fb 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts
@@ -1,13 +1,14 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Hanging {
+ // @ts-ignore
+ interface Hanging extends org.bukkit.entity.Entity, org.bukkit.material.Attachable {
/**
* Sets the direction of the hanging entity, potentially overriding rules
* of placement. Note that if the result is not valid the object would
* normally drop as an item.
*/
- public setFacingDirection(face: org.bukkit.block.BlockFace, force: boolean): boolean;
+ setFacingDirection(face: org.bukkit.block.BlockFace, force: boolean): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts
index d71e5983..bf40ac29 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Horse {
- class Color {
+ // @ts-ignore
+ class Color {
public static WHITE: org.bukkit.entity.Horse.Color;
public static CREAMY: org.bukkit.entity.Horse.Color;
public static CHESTNUT: org.bukkit.entity.Horse.Color;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts
index 0c607cf3..2503e02b 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Horse {
- class Style {
+ // @ts-ignore
+ class Style {
public static NONE: org.bukkit.entity.Horse.Style;
public static WHITE: org.bukkit.entity.Horse.Style;
public static WHITEFIELD: org.bukkit.entity.Horse.Style;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts
index 60b3012d..fff89432 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace entity {
namespace Horse {
- class Variant {
+ // @ts-ignore
+ class Variant {
public static HORSE: org.bukkit.entity.Horse.Variant;
public static DONKEY: org.bukkit.entity.Horse.Variant;
public static MULE: org.bukkit.entity.Horse.Variant;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts
index 4b6a9b06..5be39be5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts
@@ -1,21 +1,22 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Horse {
+ // @ts-ignore
+ interface Horse extends org.bukkit.entity.AbstractHorse {
/**
* Gets the horse's color.
*
@@ -126,62 +127,62 @@ declare namespace org {
* location. The game may also enforce other requirements such as proximity
* to bed, monsters, and dimension type if force is not set.
*/
- public sleep(location: org.bukkit.Location, force: boolean): boolean;
+ sleep(location: org.bukkit.Location, force: boolean): boolean;
/**
* Causes the player to wakeup if they are currently sleeping.
*/
- public wakeup(setSpawnLocation: boolean): void;
+ wakeup(setSpawnLocation: boolean): void;
/**
* Gets the location of the bed the player is currently sleeping in
*/
- public getBedLocation(): org.bukkit.Location;
+ getBedLocation(): org.bukkit.Location;
/**
* Gets this human's current {@link GameMode}
*/
- public getGameMode(): org.bukkit.GameMode;
+ getGameMode(): org.bukkit.GameMode;
/**
* Sets this human's current {@link GameMode}
*/
- public setGameMode(mode: org.bukkit.GameMode): void;
+ setGameMode(mode: org.bukkit.GameMode): void;
/**
* Check if the player is currently blocking (ie with a shield).
*/
- public isBlocking(): boolean;
+ isBlocking(): boolean;
/**
* Check if the player currently has their hand raised (ie about to begin
* blocking).
*/
- public isHandRaised(): boolean;
+ isHandRaised(): boolean;
/**
* Get the total amount of experience required for the player to level
*/
- public getExpToLevel(): number;
+ getExpToLevel(): number;
/**
* Discover a recipe for this player such that it has not already been
* discovered. This method will add the key's associated recipe to the
* player's recipe book.
*/
- public discoverRecipe(recipe: org.bukkit.NamespacedKey): boolean;
+ discoverRecipe(recipe: org.bukkit.NamespacedKey): boolean;
/**
* Discover a collection of recipes for this player such that they have not
* already been discovered. This method will add the keys' associated
* recipes to the player's recipe book. If a recipe in the provided
* collection has already been discovered, it will be silently ignored.
*/
- public discoverRecipes(recipes: any[] /*java.util.Collection*/): number;
+ discoverRecipes(recipes: any[] /*java.util.Collection*/): number;
/**
* Undiscover a recipe for this player such that it has already been
* discovered. This method will remove the key's associated recipe from the
* player's recipe book.
*/
- public undiscoverRecipe(recipe: org.bukkit.NamespacedKey): boolean;
+ undiscoverRecipe(recipe: org.bukkit.NamespacedKey): boolean;
/**
* Undiscover a collection of recipes for this player such that they have
* already been discovered. This method will remove the keys' associated
* recipes from the player's recipe book. If a recipe in the provided
* collection has not yet been discovered, it will be silently ignored.
*/
- public undiscoverRecipes(recipes: any[] /*java.util.Collection*/): number;
+ undiscoverRecipes(recipes: any[] /*java.util.Collection*/): number;
/**
* Gets the entity currently perched on the left shoulder or null if no
* entity.
@@ -189,7 +190,7 @@ declare namespace org {
* The returned entity will not be spawned within the world, so most
* operations are invalid unless the entity is first spawned in.
*/
- public getShoulderEntityLeft(): org.bukkit.entity.Entity;
+ getShoulderEntityLeft(): org.bukkit.entity.Entity;
/**
* Sets the entity currently perched on the left shoulder, or null to
* remove. This method will remove the entity from the world.
@@ -200,7 +201,7 @@ declare namespace org {
* Also note that the client will currently only render {@link Parrot}
* entities.
*/
- public setShoulderEntityLeft(entity: org.bukkit.entity.Entity): void;
+ setShoulderEntityLeft(entity: org.bukkit.entity.Entity): void;
/**
* Gets the entity currently perched on the right shoulder or null if no
* entity.
@@ -208,7 +209,7 @@ declare namespace org {
* The returned entity will not be spawned within the world, so most
* operations are invalid unless the entity is first spawned in.
*/
- public getShoulderEntityRight(): org.bukkit.entity.Entity;
+ getShoulderEntityRight(): org.bukkit.entity.Entity;
/**
* Sets the entity currently perched on the right shoulder, or null to
* remove. This method will remove the entity from the world.
@@ -219,7 +220,7 @@ declare namespace org {
* Also note that the client will currently only render {@link Parrot}
* entities.
*/
- public setShoulderEntityRight(entity: org.bukkit.entity.Entity): void;
+ setShoulderEntityRight(entity: org.bukkit.entity.Entity): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts b/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts
index a98150f1..f1cf1de8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts
@@ -1,18 +1,19 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Husk {
+ // @ts-ignore
+ interface Husk extends org.bukkit.entity.Zombie {
/**
* Get if this entity is in the process of converting to a Zombie as a
* result of being underwater.
*/
- public isConverting(): boolean;
+ isConverting(): boolean;
/**
* Gets the amount of ticks until this entity will be converted to a Zombie
* as a result of being underwater.
* When this reaches 0, the entity will be converted.
*/
- public getConversionTime(): number;
+ getConversionTime(): number;
/**
* Sets the amount of ticks until this entity will be converted to a Zombie
* as a result of being underwater.
@@ -20,7 +21,7 @@ declare namespace org {
* will stop the current conversion process without converting the current
* entity.
*/
- public setConversionTime(time: number): void;
+ setConversionTime(time: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts
index 2994a159..9a30e8e8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Illager {
+ // @ts-ignore
+ interface Illager extends org.bukkit.entity.Raider {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts b/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts
index 02cd2282..6ed3e41f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Illusioner {
+ // @ts-ignore
+ interface Illusioner extends org.bukkit.entity.Spellcaster {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts b/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts
index 91c5abf1..c87bb04e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class IronGolem {
+ // @ts-ignore
+ interface IronGolem extends org.bukkit.entity.Golem {
/**
* Gets whether this iron golem was built by a player.
*/
- public isPlayerCreated(): boolean;
+ isPlayerCreated(): boolean;
/**
* Sets whether this iron golem was built by a player or not.
*/
- public setPlayerCreated(playerCreated: boolean): void;
+ setPlayerCreated(playerCreated: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Item.ts b/packages/bukkit/src/typings/org.bukkit.entity.Item.ts
index 2f22b715..2a2daae5 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Item.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Item.ts
@@ -1,23 +1,24 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Item {
+ // @ts-ignore
+ interface Item extends org.bukkit.entity.Entity {
/**
* Gets the item stack associated with this item drop.
*/
- public getItemStack(): org.bukkit.inventory.ItemStack;
+ getItemStack(): org.bukkit.inventory.ItemStack;
/**
* Sets the item stack associated with this item drop.
*/
- public setItemStack(stack: org.bukkit.inventory.ItemStack): void;
+ setItemStack(stack: org.bukkit.inventory.ItemStack): void;
/**
* Gets the delay before this Item is available to be picked up by players
*/
- public getPickupDelay(): number;
+ getPickupDelay(): number;
/**
* Sets the delay before this Item is available to be picked up by players
*/
- public setPickupDelay(delay: number): void;
+ setPickupDelay(delay: number): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts b/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts
index da6e73a7..7d5547a7 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts
@@ -1,27 +1,28 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class ItemFrame {
+ // @ts-ignore
+ interface ItemFrame extends org.bukkit.entity.Hanging {
/**
* Get the item in this frame
*/
- public getItem(): org.bukkit.inventory.ItemStack;
+ getItem(): org.bukkit.inventory.ItemStack;
/**
* Set the item in this frame
*/
- public setItem(item: org.bukkit.inventory.ItemStack): void;
+ setItem(item: org.bukkit.inventory.ItemStack): void;
/**
* Set the item in this frame
*/
- public setItem(item: org.bukkit.inventory.ItemStack, playSound: boolean): void;
+ setItem(item: org.bukkit.inventory.ItemStack, playSound: boolean): void;
/**
* Get the rotation of the frame's item
*/
- public getRotation(): org.bukkit.Rotation;
+ getRotation(): org.bukkit.Rotation;
/**
* Set the rotation of the frame's item
*/
- public setRotation(rotation: org.bukkit.Rotation): void;
+ setRotation(rotation: org.bukkit.Rotation): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts
index efb24d02..20488717 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LargeFireball {
+ // @ts-ignore
+ interface LargeFireball extends org.bukkit.entity.Fireball {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts b/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts
index bb14026f..3e8e0288 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LeashHitch {
+ // @ts-ignore
+ interface LeashHitch extends org.bukkit.entity.Hanging {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts b/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts
index 20d91d6e..03f70acd 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LightningStrike {
+ // @ts-ignore
+ interface LightningStrike extends org.bukkit.entity.Entity {
/**
* Returns whether the strike is an effect that does no damage.
*/
- public isEffect(): boolean;
+ isEffect(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts
index ce0fdafb..cf978ed8 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LingeringPotion {
+ // @ts-ignore
+ interface LingeringPotion extends org.bukkit.entity.ThrownPotion {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts
index 514fe577..5397a2de 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts
@@ -1,26 +1,27 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class LivingEntity {
+ // @ts-ignore
+ interface LivingEntity extends org.bukkit.attribute.Attributable, org.bukkit.entity.Damageable, org.bukkit.projectiles.ProjectileSource {
/**
* Gets the height of the living entity's eyes above its Location.
*/
- public getEyeHeight(): number;
+ getEyeHeight(): number;
/**
* Gets the height of the living entity's eyes above its Location.
*/
- public getEyeHeight(ignorePose: boolean): number;
+ getEyeHeight(ignorePose: boolean): number;
/**
* Get a Location detailing the current eye position of the living entity.
*/
- public getEyeLocation(): org.bukkit.Location;
+ getEyeLocation(): org.bukkit.Location;
/**
* Gets all blocks along the living entity's line of sight.
* incrementStatistic(Statistic, 1)
*/
- public incrementStatistic(statistic: org.bukkit.Statistic): void;
+ incrementStatistic(statistic: org.bukkit.Statistic): void;
/**
* Decrements the given statistic for this player.
* decrementStatistic(Statistic, 1)
*/
- public decrementStatistic(statistic: org.bukkit.Statistic): void;
+ decrementStatistic(statistic: org.bukkit.Statistic): void;
/**
* Increments the given statistic for this player.
*/
- public incrementStatistic(statistic: org.bukkit.Statistic, amount: number): void;
+ incrementStatistic(statistic: org.bukkit.Statistic, amount: number): void;
/**
* Decrements the given statistic for this player.
*/
- public decrementStatistic(statistic: org.bukkit.Statistic, amount: number): void;
+ decrementStatistic(statistic: org.bukkit.Statistic, amount: number): void;
/**
* Sets the given statistic for this player.
*/
- public setStatistic(statistic: org.bukkit.Statistic, newValue: number): void;
+ setStatistic(statistic: org.bukkit.Statistic, newValue: number): void;
/**
* Gets the value of the given statistic for this player.
*/
- public getStatistic(statistic: org.bukkit.Statistic): number;
+ getStatistic(statistic: org.bukkit.Statistic): number;
/**
* Increments the given statistic for this player for the given material.
* incrementStatistic(Statistic, Material, 1)
*/
- public incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void;
+ incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void;
/**
* Decrements the given statistic for this player for the given material.
* decrementStatistic(Statistic, Material, 1)
*/
- public decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void;
+ decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void;
/**
* Gets the value of the given statistic for this player.
*/
- public getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): number;
+ getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): number;
/**
* Increments the given statistic for this player for the given material.
*/
- public incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void;
+ incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void;
/**
* Decrements the given statistic for this player for the given material.
*/
- public decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void;
+ decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void;
/**
* Sets the given statistic for this player for the given material.
*/
- public setStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, newValue: number): void;
+ setStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, newValue: number): void;
/**
* Increments the given statistic for this player for the given entity.
* incrementStatistic(Statistic, EntityType, 1)
*/
- public incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void;
+ incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void;
/**
* Decrements the given statistic for this player for the given entity.
* decrementStatistic(Statistic, EntityType, 1)
*/
- public decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void;
+ decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void;
/**
* Gets the value of the given statistic for this player.
*/
- public getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): number;
+ getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): number;
/**
* Increments the given statistic for this player for the given entity.
*/
- public incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void;
+ incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void;
/**
* Decrements the given statistic for this player for the given entity.
*/
- public decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void;
+ decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void;
/**
* Sets the given statistic for this player for the given entity.
*/
- public setStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, newValue: number): void;
+ setStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, newValue: number): void;
/**
* Sets the current time on the player's client. When relative is true the
* player's time will be kept synchronized to its world time with the
@@ -348,87 +349,87 @@ declare namespace org {
* the player's time. To restore player time to normal use
* resetPlayerTime().
*/
- public setPlayerTime(time: number, relative: boolean): void;
+ setPlayerTime(time: number, relative: boolean): void;
/**
* Returns the player's current timestamp.
*/
- public getPlayerTime(): number;
+ getPlayerTime(): number;
/**
* Returns the player's current time offset relative to server time, or
* the current player's fixed time if the player's time is absolute.
*/
- public getPlayerTimeOffset(): number;
+ getPlayerTimeOffset(): number;
/**
* Returns true if the player's time is relative to the server time,
* otherwise the player's time is absolute and will not change its current
* time unless done so with setPlayerTime().
*/
- public isPlayerTimeRelative(): boolean;
+ isPlayerTimeRelative(): boolean;
/**
* Restores the normal condition where the player's time is synchronized
* with the server time.
*
* This refers to the total amount of experience the player has collected
* over time and is only displayed as the player's "score" upon dying.
*/
- public getTotalExperience(): number;
+ getTotalExperience(): number;
/**
* Sets the players current experience points.
*
* This refers to the total amount of experience the player has collected
* over time and is only displayed as the player's "score" upon dying.
*/
- public setTotalExperience(exp: number): void;
+ setTotalExperience(exp: number): void;
/**
* Gets the players current exhaustion level.
* displayedHealth =
* getHealth() / getMaxHealth() * getHealthScale()
.
*/
- public setHealthScaled(scale: boolean): void;
+ setHealthScaled(scale: boolean): void;
/**
* Sets the number to scale health to for the client; this will also
* {@link #setHealthScaled(boolean) setHealthScaled(true)}.
@@ -621,21 +622,21 @@ declare namespace org {
* Displayed health follows a simple formula displayedHealth =
* getHealth() / getMaxHealth() * getHealthScale()
.
*/
- public setHealthScale(scale: number): void;
+ setHealthScale(scale: number): void;
/**
* Gets the number that health is scaled to for the client.
*/
- public getHealthScale(): number;
+ getHealthScale(): number;
/**
* Gets the entity which is followed by the camera when in
* {@link GameMode#SPECTATOR}.
*/
- public getSpectatorTarget(): org.bukkit.entity.Entity;
+ getSpectatorTarget(): org.bukkit.entity.Entity;
/**
* Sets the entity which is followed by the camera when in
* {@link GameMode#SPECTATOR}.
*/
- public setSpectatorTarget(entity: org.bukkit.entity.Entity): void;
+ setSpectatorTarget(entity: org.bukkit.entity.Entity): void;
/**
* Sends a title and a subtitle message to the player. If either of these
* values are null, they will not be sent and the display will remain
@@ -643,7 +644,7 @@ declare namespace org {
* such. If the strings contain a new line, only the first line will be
* sent. The titles will be displayed with the client's default timings.
*/
- public sendTitle(title: string, subtitle: string): void;
+ sendTitle(title: string, subtitle: string): void;
/**
* Sends a title and a subtitle message to the player. If either of these
* values are null, they will not be sent and the display will remain
@@ -653,99 +654,99 @@ declare namespace org {
* will use the last value sent (or the defaults if no title has been
* displayed).
*/
- public sendTitle(title: string, subtitle: string, fadeIn: number, stay: number, fadeOut: number): void;
+ sendTitle(title: string, subtitle: string, fadeIn: number, stay: number, fadeOut: number): void;
/**
* Resets the title displayed to the player. This will clear the displayed
* title / subtitle and reset timings to their default values.
*/
- public resetTitle(): void;
+ resetTitle(): 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): 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;
/**
* Return the player's progression on the specified advancement.
*/
- public getAdvancementProgress(advancement: org.bukkit.advancement.Advancement): org.bukkit.advancement.AdvancementProgress;
+ getAdvancementProgress(advancement: org.bukkit.advancement.Advancement): org.bukkit.advancement.AdvancementProgress;
/**
* Get the player's current client side view distance.
*
* Will default to the server view distance if the client has not yet
* communicated this information,
*/
- public getClientViewDistance(): number;
+ getClientViewDistance(): number;
/**
* Gets the player's current locale.
* The value of the locale String is not defined properly.
@@ -754,18 +755,18 @@ declare namespace org {
* separated by an underscore, but custom resource packs may use any format
* they wish.
*/
- public getLocale(): string;
+ getLocale(): string;
/**
* Update the list of commands sent to the client.
*
* Generally useful to ensure the client has a complete list of commands
* after permission changes are done.
*/
- public updateCommands(): void;
+ updateCommands(): void;
/**
* Open a {@link Material#WRITTEN_BOOK} for a Player
*/
- public openBook(book: org.bukkit.inventory.ItemStack): void;
+ openBook(book: org.bukkit.inventory.ItemStack): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts b/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts
index 3679cb84..5b7948a0 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class PolarBear {
+ // @ts-ignore
+ interface PolarBear extends org.bukkit.entity.Animals {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts
index 91842584..5bd1883e 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Pose {
+ // @ts-ignore
+ class Pose {
public static STANDING: org.bukkit.entity.Pose;
public static FALL_FLYING: org.bukkit.entity.Pose;
public static SLEEPING: org.bukkit.entity.Pose;
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts b/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts
index c9463b52..f57b1599 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts
@@ -1,26 +1,27 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Projectile {
+ // @ts-ignore
+ interface Projectile extends org.bukkit.entity.Entity {
/**
* Retrieve the shooter of this projectile.
*/
- public getShooter(): org.bukkit.projectiles.ProjectileSource;
+ getShooter(): org.bukkit.projectiles.ProjectileSource;
/**
* Set the shooter of this projectile.
*/
- public setShooter(source: org.bukkit.projectiles.ProjectileSource): void;
+ setShooter(source: org.bukkit.projectiles.ProjectileSource): void;
/**
* Determine if this projectile should bounce or not when it hits.
*
@@ -45,11 +46,11 @@ declare namespace org {
* location. The villager will put its head on the specified block while
* sleeping.
*/
- public sleep(location: org.bukkit.Location): boolean;
+ sleep(location: org.bukkit.Location): boolean;
/**
* Causes this villager to wake up if he's currently sleeping.
*/
- public wakeup(): void;
+ wakeup(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts
index 67b24dd8..a31e5518 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Vindicator {
+ // @ts-ignore
+ interface Vindicator extends org.bukkit.entity.Illager {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts b/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts
index 4f22b3be..c0105088 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class WanderingTrader {
+ // @ts-ignore
+ interface WanderingTrader extends org.bukkit.entity.AbstractVillager {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts b/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts
index f776cb2f..07ee96e9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class WaterMob {
+ // @ts-ignore
+ interface WaterMob extends org.bukkit.entity.Creature {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts b/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts
index 8bb65136..8b15cea2 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Witch {
+ // @ts-ignore
+ interface Witch extends org.bukkit.entity.Raider {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts b/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts
index ccd80764..c4aa35be 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Wither {
+ // @ts-ignore
+ interface Wither extends org.bukkit.entity.Monster, org.bukkit.entity.Boss {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts
index ab5b8416..06ed608f 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class WitherSkeleton {
+ // @ts-ignore
+ interface WitherSkeleton extends org.bukkit.entity.Skeleton {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts
index f19bad36..95720682 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class WitherSkull {
+ // @ts-ignore
+ interface WitherSkull extends org.bukkit.entity.Fireball {
/**
* Sets the charged status of the wither skull.
*/
- public setCharged(charged: boolean): void;
+ setCharged(charged: boolean): void;
/**
* Gets whether or not the wither skull is charged.
*/
- public isCharged(): boolean;
+ isCharged(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts b/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts
index f781be39..ac94c2a9 100644
--- a/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts
+++ b/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts
@@ -1,25 +1,26 @@
declare namespace org {
namespace bukkit {
namespace entity {
- class Wolf {
+ // @ts-ignore
+ interface Wolf extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable {
/**
* Checks if this wolf is angry
*/
- public isAngry(): boolean;
+ isAngry(): boolean;
/**
* Sets the anger of this wolf.
*
@@ -117,7 +118,7 @@ declare namespace org {
*
*/
- public getHelmetDropChance(): number;
+ getHelmetDropChance(): number;
/**
* Sets the chance of the helmet being dropped upon this creature's death.
*
@@ -125,7 +126,7 @@ declare namespace org {
*
*/
- public setHelmetDropChance(chance: number): void;
+ setHelmetDropChance(chance: number): void;
/**
* Gets the chance of the chest plate being dropped upon this creature's
* death.
@@ -134,7 +135,7 @@ declare namespace org {
*
@@ -169,7 +170,7 @@ declare namespace org {
*
*/
- public getBootsDropChance(): number;
+ getBootsDropChance(): number;
/**
* Sets the chance of the boots being dropped upon this creature's death.
*
@@ -177,11 +178,11 @@ declare namespace org {
*
*/
- public setBootsDropChance(chance: number): void;
+ setBootsDropChance(chance: number): void;
/**
* Get the entity this EntityEquipment belongs to
*/
- public getHolder(): org.bukkit.entity.Entity;
+ getHolder(): org.bukkit.entity.Entity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts b/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts
index fdc7b990..4a4ee38e 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class EquipmentSlot {
+ // @ts-ignore
+ class EquipmentSlot {
public static HAND: org.bukkit.inventory.EquipmentSlot;
public static OFF_HAND: org.bukkit.inventory.EquipmentSlot;
public static FEET: org.bukkit.inventory.EquipmentSlot;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts
index 08c4f320..958c8294 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts
@@ -1,32 +1,33 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class FurnaceInventory {
+ // @ts-ignore
+ interface FurnaceInventory extends org.bukkit.inventory.Inventory {
/**
* Get the current item in the result slot.
*/
- public getResult(): org.bukkit.inventory.ItemStack;
+ getResult(): org.bukkit.inventory.ItemStack;
/**
* Get the current fuel.
*/
- public getFuel(): org.bukkit.inventory.ItemStack;
+ getFuel(): org.bukkit.inventory.ItemStack;
/**
* Get the item currently smelting.
*/
- public getSmelting(): org.bukkit.inventory.ItemStack;
+ getSmelting(): org.bukkit.inventory.ItemStack;
/**
* Set the current fuel.
*/
- public setFuel(stack: org.bukkit.inventory.ItemStack): void;
+ setFuel(stack: org.bukkit.inventory.ItemStack): void;
/**
* Set the current item in the result slot.
*/
- public setResult(stack: org.bukkit.inventory.ItemStack): void;
+ setResult(stack: org.bukkit.inventory.ItemStack): void;
/**
* Set the item currently smelting.
*/
- public setSmelting(stack: org.bukkit.inventory.ItemStack): void;
- public getHolder(): org.bukkit.block.Furnace;
+ setSmelting(stack: org.bukkit.inventory.ItemStack): void;
+ getHolder(): org.bukkit.block.Furnace;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts
index f39e6074..f6d4bc0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class FurnaceRecipe {
+ // @ts-ignore
+ class FurnaceRecipe {
constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material)
constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData)
constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData, experience: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts
index cea441a7..9ff35ccc 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class GrindstoneInventory {
+ // @ts-ignore
+ interface GrindstoneInventory extends org.bukkit.inventory.Inventory {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts
index cf282bc0..ff58d52b 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class HorseInventory {
+ // @ts-ignore
+ interface HorseInventory extends org.bukkit.inventory.AbstractHorseInventory {
/**
* Gets the item in the horse's armor slot.
*/
- public getArmor(): org.bukkit.inventory.ItemStack;
+ getArmor(): org.bukkit.inventory.ItemStack;
/**
* Sets the item in the horse's armor slot.
*/
- public setArmor(stack: org.bukkit.inventory.ItemStack): void;
+ setArmor(stack: org.bukkit.inventory.ItemStack): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts
index 18acd95f..20e0a47e 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class Inventory {
+ // @ts-ignore
+ interface Inventory {
/**
* Returns the size of the inventory
*/
- public getSize(): number;
+ getSize(): number;
/**
* Returns the maximum stack size for an ItemStack in this inventory.
*/
- public getMaxStackSize(): number;
+ getMaxStackSize(): number;
/**
* This method allows you to change the maximum stack size for an
* inventory.
@@ -24,15 +25,15 @@ declare namespace org {
* may not display correctly in the client.
*
*/
- public setMaxStackSize(size: number): void;
+ setMaxStackSize(size: number): void;
/**
* Returns the ItemStack found in the slot at the given index
*/
- public getItem(index: number): org.bukkit.inventory.ItemStack;
+ getItem(index: number): org.bukkit.inventory.ItemStack;
/**
* Stores the ItemStack at the given index of the inventory.
*/
- public setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
+ setItem(index: number, item: org.bukkit.inventory.ItemStack): void;
/**
* Stores the given ItemStacks in the inventory. This will try to fill
* existing stacks and empty slots as well as it can.
@@ -53,7 +54,7 @@ declare namespace org {
* the inputted argument amount to the number of that item not placed in
* slots.
*/
- public addItem(items: org.bukkit.inventory.ItemStack): any;
+ addItem(items: org.bukkit.inventory.ItemStack): any;
/**
* Removes the given ItemStacks from the inventory.
*
* This will not change the selected trades of players currently trading
* with this merchant.
*/
- public setRecipes(recipes: any[] /*java.util.List*/): void;
+ setRecipes(recipes: any[] /*java.util.List*/): void;
/**
* Get the recipe at a certain index of this merchant's trade list.
*/
- public getRecipe(i: number): org.bukkit.inventory.MerchantRecipe;
+ getRecipe(i: number): org.bukkit.inventory.MerchantRecipe;
/**
* Set the recipe at a certain index of this merchant's trade list.
*/
- public setRecipe(i: number, recipe: org.bukkit.inventory.MerchantRecipe): void;
+ setRecipe(i: number, recipe: org.bukkit.inventory.MerchantRecipe): void;
/**
* Get the number of trades this merchant currently has available.
*/
- public getRecipeCount(): number;
+ getRecipeCount(): number;
/**
* Gets whether this merchant is currently trading.
*/
- public isTrading(): boolean;
+ isTrading(): boolean;
/**
* Gets the player this merchant is trading with, or null if it is not
* currently trading.
*/
- public getTrader(): org.bukkit.entity.HumanEntity;
+ getTrader(): org.bukkit.entity.HumanEntity;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts
index fcbe5516..f7ad06b5 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace inventory {
- class MerchantInventory {
+ // @ts-ignore
+ interface MerchantInventory extends org.bukkit.inventory.Inventory {
/**
* Get the index of the currently selected recipe.
*/
- public getSelectedRecipeIndex(): number;
+ getSelectedRecipeIndex(): number;
/**
* Get the currently active recipe.
*
@@ -13,23 +14,23 @@ declare namespace org {
* will not be contained within {@link #getStorageContents()} or
* {@link #getArmorContents()}
*/
- public getExtraContents(): org.bukkit.inventory.ItemStack[];
+ getExtraContents(): org.bukkit.inventory.ItemStack[];
/**
* Return the ItemStack from the helmet slot
*/
- public getHelmet(): org.bukkit.inventory.ItemStack;
+ getHelmet(): org.bukkit.inventory.ItemStack;
/**
* Return the ItemStack from the chestplate slot
*/
- public getChestplate(): org.bukkit.inventory.ItemStack;
+ getChestplate(): org.bukkit.inventory.ItemStack;
/**
* Return the ItemStack from the leg slot
*/
- public getLeggings(): org.bukkit.inventory.ItemStack;
+ getLeggings(): org.bukkit.inventory.ItemStack;
/**
* Return the ItemStack from the boots slot
*/
- public getBoots(): org.bukkit.inventory.ItemStack;
+ getBoots(): org.bukkit.inventory.ItemStack;
/**
* Stores the ItemStack at the given index of the inventory.
*
* See {@link #getExtraContents()} for an explanation of extra slots.
*/
- public setExtraContents(items: org.bukkit.inventory.ItemStack): void;
+ setExtraContents(items: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStack into the helmet slot. This does not check if
* the ItemStack is a helmet
*/
- public setHelmet(helmet: org.bukkit.inventory.ItemStack): void;
+ setHelmet(helmet: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStack into the chestplate slot. This does not check
* if the ItemStack is a chestplate
*/
- public setChestplate(chestplate: org.bukkit.inventory.ItemStack): void;
+ setChestplate(chestplate: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStack into the leg slot. This does not check if the
* ItemStack is a pair of leggings
*/
- public setLeggings(leggings: org.bukkit.inventory.ItemStack): void;
+ setLeggings(leggings: org.bukkit.inventory.ItemStack): void;
/**
* Put the given ItemStack into the boots slot. This does not check if the
* ItemStack is a boots
*/
- public setBoots(boots: org.bukkit.inventory.ItemStack): void;
+ setBoots(boots: org.bukkit.inventory.ItemStack): void;
/**
* Gets a copy of the item the player is currently holding
* in their main hand.
*/
- public getItemInMainHand(): org.bukkit.inventory.ItemStack;
+ getItemInMainHand(): org.bukkit.inventory.ItemStack;
/**
* Sets the item the player is holding in their main hand.
*/
- public setItemInMainHand(item: org.bukkit.inventory.ItemStack): void;
+ setItemInMainHand(item: org.bukkit.inventory.ItemStack): void;
/**
* Gets a copy of the item the player is currently holding
* in their off hand.
*/
- public getItemInOffHand(): org.bukkit.inventory.ItemStack;
+ getItemInOffHand(): org.bukkit.inventory.ItemStack;
/**
* Sets the item the player is holding in their off hand.
*/
- public setItemInOffHand(item: org.bukkit.inventory.ItemStack): void;
+ setItemInOffHand(item: org.bukkit.inventory.ItemStack): void;
/**
* Gets a copy of the item the player is currently holding
*/
- public getItemInHand(): org.bukkit.inventory.ItemStack;
+ getItemInHand(): org.bukkit.inventory.ItemStack;
/**
* Sets the item the player is holding
*/
- public setItemInHand(stack: org.bukkit.inventory.ItemStack): void;
+ setItemInHand(stack: org.bukkit.inventory.ItemStack): void;
/**
* Get the slot number of the currently held item
*/
- public getHeldItemSlot(): number;
+ getHeldItemSlot(): number;
/**
* Set the slot number of the currently held item.
* true
* before calling this method.
*/
- public getDisplayName(): string;
+ getDisplayName(): string;
/**
* Sets the display name.
*/
- public setDisplayName(name: string): void;
+ setDisplayName(name: string): void;
/**
* Checks for existence of a localized name.
*/
- public hasLocalizedName(): boolean;
+ hasLocalizedName(): boolean;
/**
* Gets the localized display name that is set.
* true
* before calling this method.
*/
- public getLocalizedName(): string;
+ getLocalizedName(): string;
/**
* Sets the localized name.
*/
- public setLocalizedName(name: string): void;
+ setLocalizedName(name: string): void;
/**
* Checks for existence of lore.
*/
- public hasLore(): boolean;
+ hasLore(): boolean;
/**
* Gets the lore that is set.
* true
before
* calling this method.
*/
- public getLore(): any[] /*java.util.List*/;
+ getLore(): any[] /*java.util.List*/;
/**
* Sets the lore for this item.
* Removes lore when given null.
*/
- public setLore(lore: any[] /*java.util.List*/): void;
+ setLore(lore: any[] /*java.util.List*/): void;
/**
* Checks for existence of custom model data.
* true
* before calling this method.
*/
- public getCustomModelData(): number;
+ getCustomModelData(): number;
/**
* Sets the custom model data.
*
* Returns an empty map if none.
*/
- public getEnchants(): Map
* Returns null if none exist.
*/
- public getAttributeModifiers(): any;
+ getAttributeModifiers(): any;
/**
* Return an immutable copy of all {@link Attribute}s and their
* {@link AttributeModifier}s for a given {@link EquipmentSlot}.
@@ -147,12 +148,12 @@ declare namespace org {
* If there are no attributes set for the given slot, an empty map
* will be returned.
*/
- public getAttributeModifiers(slot: org.bukkit.inventory.EquipmentSlot): any;
+ getAttributeModifiers(slot: org.bukkit.inventory.EquipmentSlot): any;
/**
* Return an immutable copy of all {@link AttributeModifier}s
* for a given {@link Attribute}
*/
- public getAttributeModifiers(attribute: org.bukkit.attribute.Attribute): any[] /*java.util.Collection*/;
+ getAttributeModifiers(attribute: org.bukkit.attribute.Attribute): any[] /*java.util.Collection*/;
/**
* Add an Attribute and it's Modifier.
* AttributeModifiers can now support {@link EquipmentSlot}s.
@@ -161,7 +162,7 @@ declare namespace org {
* Two {@link AttributeModifier}s that have the same {@link java.util.UUID}
* cannot exist on the same Attribute.
*/
- public addAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean;
+ addAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean;
/**
* Set all {@link Attribute}s and their {@link AttributeModifier}s.
* To clear all currently set Attributes and AttributeModifiers use
@@ -169,25 +170,25 @@ declare namespace org {
* If not null nor empty, this will filter all entries that are not-null
* and add them to the ItemStack.
*/
- public setAttributeModifiers(attributeModifiers: any): void;
+ setAttributeModifiers(attributeModifiers: any): void;
/**
* Remove all {@link AttributeModifier}s associated with the given
* {@link Attribute}.
* This will return false if nothing was removed.
*/
- public removeAttributeModifier(attribute: org.bukkit.attribute.Attribute): boolean;
+ removeAttributeModifier(attribute: org.bukkit.attribute.Attribute): boolean;
/**
* Remove all {@link Attribute}s and {@link AttributeModifier}s for a
* given {@link EquipmentSlot}.
* If the given {@link EquipmentSlot} is null, this will remove all
* {@link AttributeModifier}s that do not have an EquipmentSlot set.
*/
- public removeAttributeModifier(slot: org.bukkit.inventory.EquipmentSlot): boolean;
+ removeAttributeModifier(slot: org.bukkit.inventory.EquipmentSlot): boolean;
/**
* Remove a specific {@link Attribute} and {@link AttributeModifier}.
* AttributeModifiers are matched according to their {@link java.util.UUID}.
*/
- public removeAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean;
+ removeAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean;
/**
* Returns a public custom tag container capable of storing tags on the
* item.
@@ -196,12 +197,12 @@ declare namespace org {
* a NBT Tag notification on the item.
* These tags can also be modified by the client once in creative mode
*/
- public getCustomTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer;
+ getCustomTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer;
/**
* Internal use only! Do not use under any circumstances!
*/
- public setVersion(version: number): void;
- public clone(): org.bukkit.inventory.meta.ItemMeta;
+ setVersion(version: number): void;
+ clone(): org.bukkit.inventory.meta.ItemMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts
index e75f05b1..50ecfeef 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts
@@ -2,25 +2,26 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class KnowledgeBookMeta {
+ // @ts-ignore
+ interface KnowledgeBookMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Checks for the existence of recipes in the book.
*/
- public hasRecipes(): boolean;
+ hasRecipes(): boolean;
/**
* Gets all the recipes in the book.
*/
- public getRecipes(): any[] /*java.util.List*/;
+ getRecipes(): any[] /*java.util.List*/;
/**
* Clears the existing book recipes, and sets the book to use the provided
* recipes.
*/
- public setRecipes(recipes: any[] /*java.util.List*/): void;
+ setRecipes(recipes: any[] /*java.util.List*/): void;
/**
* Adds new recipe to the end of the book.
*/
- public addRecipe(recipes: org.bukkit.NamespacedKey): void;
- public clone(): org.bukkit.inventory.meta.KnowledgeBookMeta;
+ addRecipe(recipes: org.bukkit.NamespacedKey): void;
+ clone(): org.bukkit.inventory.meta.KnowledgeBookMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts
index 92b2f62f..c19bee0f 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts
@@ -2,17 +2,18 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class LeatherArmorMeta {
+ // @ts-ignore
+ interface LeatherArmorMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Gets the color of the armor. If it has not been set otherwise, it will
* be {@link ItemFactory#getDefaultLeatherColor()}.
*/
- public getColor(): org.bukkit.Color;
+ getColor(): org.bukkit.Color;
/**
* Sets the color of the armor.
*/
- public setColor(color: org.bukkit.Color): void;
- public clone(): org.bukkit.inventory.meta.LeatherArmorMeta;
+ setColor(color: org.bukkit.Color): void;
+ clone(): org.bukkit.inventory.meta.LeatherArmorMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts
index c68c5179..42117831 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts
@@ -2,11 +2,12 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class MapMeta {
+ // @ts-ignore
+ interface MapMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Checks for existence of a map ID number.
*/
- public hasMapId(): boolean;
+ hasMapId(): boolean;
/**
* Gets the map ID that is set. This is used to determine what map is
* displayed.
@@ -14,22 +15,22 @@ declare namespace org {
* Plugins should check that hasMapId() returns true
before
* calling this method.
*/
- public getMapId(): number;
+ getMapId(): number;
/**
* Sets the map ID. This is used to determine what map is displayed.
*/
- public setMapId(id: number): void;
+ setMapId(id: number): void;
/**
* Checks for existence of an associated map.
*/
- public hasMapView(): boolean;
+ hasMapView(): boolean;
/**
* Gets the map view that is associated with this map item.
* true
before
* calling this method.
*/
- public getMapView(): org.bukkit.map.MapView;
+ getMapView(): org.bukkit.map.MapView;
/**
* Sets the associated map. This is used to determine what map is displayed.
* true
* before calling this method.
*/
- public getLocationName(): string;
+ getLocationName(): string;
/**
* Sets the location name. A custom map color will alter the display of the
* map in an inventory slot.
*/
- public setLocationName(name: string): void;
+ setLocationName(name: string): void;
/**
* Checks for existence of a map color.
*/
- public hasColor(): boolean;
+ hasColor(): boolean;
/**
* Gets the map color that is set. A custom map color will alter the display
* of the map in an inventory slot.
@@ -73,13 +74,13 @@ declare namespace org {
* Plugins should check that hasColor() returns true
before
* calling this method.
*/
- public getColor(): org.bukkit.Color;
+ getColor(): org.bukkit.Color;
/**
* Sets the map color. A custom map color will alter the display of the map
* in an inventory slot.
*/
- public setColor(color: org.bukkit.Color): void;
- public clone(): org.bukkit.inventory.meta.MapMeta;
+ setColor(color: org.bukkit.Color): void;
+ clone(): org.bukkit.inventory.meta.MapMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts
index 0ab5ceaa..fa3b736a 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts
@@ -2,19 +2,20 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class PotionMeta {
+ // @ts-ignore
+ interface PotionMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Sets the underlying potion data
*/
- public setBasePotionData(data: org.bukkit.potion.PotionData): void;
+ setBasePotionData(data: org.bukkit.potion.PotionData): void;
/**
* Returns the potion data about the base potion
*/
- public getBasePotionData(): org.bukkit.potion.PotionData;
+ getBasePotionData(): org.bukkit.potion.PotionData;
/**
* Checks for the presence of custom potion effects.
*/
- public hasCustomEffects(): boolean;
+ hasCustomEffects(): boolean;
/**
* Gets an immutable list containing all custom potion effects applied to
* this potion.
@@ -22,33 +23,33 @@ declare namespace org {
* Plugins should check that hasCustomEffects() returns true before calling
* this method.
*/
- public getCustomEffects(): any[] /*java.util.List*/;
+ getCustomEffects(): any[] /*java.util.List*/;
/**
* Adds a custom potion effect to this potion.
*/
- public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
+ addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean;
/**
* Removes a custom potion effect from this potion.
*/
- public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Checks for a specific custom potion effect type on this potion.
*/
- public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
+ hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean;
/**
* Moves a potion effect to the top of the potion effect list.
* true
before
* calling this method.
*/
- public getColor(): org.bukkit.Color;
+ getColor(): org.bukkit.Color;
/**
* Sets the potion color. A custom potion color will alter the display of
* the potion in an inventory slot.
*/
- public setColor(color: org.bukkit.Color): void;
- public clone(): org.bukkit.inventory.meta.PotionMeta;
+ setColor(color: org.bukkit.Color): void;
+ clone(): org.bukkit.inventory.meta.PotionMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts
index 226282ba..84f01fd0 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts
@@ -2,20 +2,21 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class Repairable {
+ // @ts-ignore
+ interface Repairable {
/**
* Checks to see if this has a repair penalty
*/
- public hasRepairCost(): boolean;
+ hasRepairCost(): boolean;
/**
* Gets the repair penalty
*/
- public getRepairCost(): number;
+ getRepairCost(): number;
/**
* Sets the repair penalty
*/
- public setRepairCost(cost: number): void;
- public clone(): org.bukkit.inventory.meta.Repairable;
+ setRepairCost(cost: number): void;
+ clone(): org.bukkit.inventory.meta.Repairable;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts
index 3021f6ef..9cf8b864 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts
@@ -2,31 +2,32 @@ declare namespace org {
namespace bukkit {
namespace inventory {
namespace meta {
- class SkullMeta {
+ // @ts-ignore
+ interface SkullMeta extends org.bukkit.inventory.meta.ItemMeta {
/**
* Gets the owner of the skull.
*/
- public getOwner(): string;
+ getOwner(): string;
/**
* Checks to see if the skull has an owner.
*/
- public hasOwner(): boolean;
+ hasOwner(): boolean;
/**
* Sets the owner of the skull.
*/
- public setOwner(owner: string): boolean;
+ setOwner(owner: string): boolean;
/**
* Gets the owner of the skull.
*/
- public getOwningPlayer(): org.bukkit.OfflinePlayer;
+ getOwningPlayer(): org.bukkit.OfflinePlayer;
/**
* Sets the owner of the skull.
* true
before
* calling this method.
*/
- public getPatternColor(): org.bukkit.DyeColor;
+ getPatternColor(): org.bukkit.DyeColor;
/**
* Sets the color of the fish's pattern.
* false
will initialize
* all other values to unspecified defaults.
*/
- public setPatternColor(color: org.bukkit.DyeColor): void;
+ setPatternColor(color: org.bukkit.DyeColor): void;
/**
* Gets the color of the fish's body.
* true
before
* calling this method.
*/
- public getBodyColor(): org.bukkit.DyeColor;
+ getBodyColor(): org.bukkit.DyeColor;
/**
* Sets the color of the fish's body.
* false
will initialize
* all other values to unspecified defaults.
*/
- public setBodyColor(color: org.bukkit.DyeColor): void;
+ setBodyColor(color: org.bukkit.DyeColor): void;
/**
* Gets the fish's pattern.
* true
before
* calling this method.
*/
- public getPattern(): org.bukkit.entity.TropicalFish.Pattern;
+ getPattern(): org.bukkit.entity.TropicalFish.Pattern;
/**
* Sets the fish's pattern.
* false
will initialize
* all other values to unspecified defaults.
*/
- public setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void;
+ setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void;
/**
* Checks for existence of a variant tag indicating a specific fish will be
* spawned.
*/
- public hasVariant(): boolean;
- public clone(): org.bukkit.inventory.meta.TropicalFishBucketMeta;
+ hasVariant(): boolean;
+ clone(): org.bukkit.inventory.meta.TropicalFishBucketMeta;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts
index 2248f0bc..f6f70106 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts
@@ -3,14 +3,15 @@ declare namespace org {
namespace inventory {
namespace meta {
namespace tags {
- class CustomItemTagContainer {
+ // @ts-ignore
+ interface CustomItemTagContainer {
/**
* Stores a custom value on the {@link ItemMeta}.
* This API cannot be used to manipulate minecraft tags, as the values will
* be stored using your namespace. This method will override any existing
* value the meta may have stored under the provided key.
*/
- public setCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType, value: any): void;
+ setCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType, value: any): void;
/**
* Returns if the item meta has a custom tag registered matching the
* provided parameters.
@@ -25,24 +26,24 @@ declare namespace org {
* tags, like the the display name, will not work as the values are stored
* using your namespace.
*/
- public hasCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): boolean;
+ hasCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): boolean;
/**
* Returns the custom tag's value that is stored on the item.
*/
- public getCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): any;
+ getCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): any;
/**
* Removes a custom key from the item meta.
*/
- public removeCustomTag(key: org.bukkit.NamespacedKey): void;
+ removeCustomTag(key: org.bukkit.NamespacedKey): void;
/**
* Returns if the container instance is empty, therefore has no entries
* inside it.
*/
- public isEmpty(): boolean;
+ isEmpty(): boolean;
/**
* Returns the adapter context this tag container uses.
*/
- public getAdapterContext(): org.bukkit.inventory.meta.tags.ItemTagAdapterContext;
+ getAdapterContext(): org.bukkit.inventory.meta.tags.ItemTagAdapterContext;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts
index 890bc881..fb8df6f5 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts
@@ -3,11 +3,12 @@ declare namespace org {
namespace inventory {
namespace meta {
namespace tags {
- class ItemTagAdapterContext {
+ // @ts-ignore
+ interface ItemTagAdapterContext {
/**
* Creates a new and empty tag container instance.
*/
- public newTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer;
+ newTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts
index e82021ee..90a972ee 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts
@@ -4,7 +4,8 @@ declare namespace org {
namespace meta {
namespace tags {
namespace ItemTagType {
- class PrimitiveTagType {
+ // @ts-ignore
+ class PrimitiveTagType implements org.bukkit.inventory.meta.tags.ItemTagType {
public getPrimitiveType(): any;
public getComplexType(): any;
public toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any;
diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts
index a1d071d8..c1fddb91 100644
--- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts
+++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts
@@ -3,35 +3,36 @@ declare namespace org {
namespace inventory {
namespace meta {
namespace tags {
- class ItemTagType {
- public static BYTE: org.bukkit.inventory.meta.tags.ItemTagType;
- public static SHORT: org.bukkit.inventory.meta.tags.ItemTagType;
- public static INTEGER: org.bukkit.inventory.meta.tags.ItemTagType;
- public static LONG: org.bukkit.inventory.meta.tags.ItemTagType;
- public static FLOAT: org.bukkit.inventory.meta.tags.ItemTagType;
- public static DOUBLE: org.bukkit.inventory.meta.tags.ItemTagType;
- public static STRING: org.bukkit.inventory.meta.tags.ItemTagType;
- public static BYTE_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
- public static INTEGER_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
- public static LONG_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
- public static TAG_CONTAINER: org.bukkit.inventory.meta.tags.ItemTagType;
+ // @ts-ignore
+ interface ItemTagType {
+ BYTE: org.bukkit.inventory.meta.tags.ItemTagType;
+ SHORT: org.bukkit.inventory.meta.tags.ItemTagType;
+ INTEGER: org.bukkit.inventory.meta.tags.ItemTagType;
+ LONG: org.bukkit.inventory.meta.tags.ItemTagType;
+ FLOAT: org.bukkit.inventory.meta.tags.ItemTagType;
+ DOUBLE: org.bukkit.inventory.meta.tags.ItemTagType;
+ STRING: org.bukkit.inventory.meta.tags.ItemTagType;
+ BYTE_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
+ INTEGER_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
+ LONG_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType;
+ TAG_CONTAINER: org.bukkit.inventory.meta.tags.ItemTagType;
/**
* Returns the primitive data type of this tag.
*/
- public getPrimitiveType(): any;
+ getPrimitiveType(): any;
/**
* Returns the complex object type the primitive value resembles.
*/
- public getComplexType(): any;
+ getComplexType(): any;
/**
* Returns the primitive data that resembles the complex object passed to
* this method.
*/
- public toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any;
+ toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any;
/**
* Creates a complex object based of the passed primitive value
*/
- public fromPrimitive(primitive: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any;
+ fromPrimitive(primitive: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts
index f94fcc3e..98e4f54d 100644
--- a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace loot {
namespace LootContext {
- class Builder {
+ // @ts-ignore
+ class Builder {
/**
* Creates a new LootContext.Builder instance to facilitate easy
* creation of {@link LootContext}s.
diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts
index f2047953..4894f323 100644
--- a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts
+++ b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace loot {
- class LootContext {
+ // @ts-ignore
+ class LootContext {
public static DEFAULT_LOOT_MODIFIER: number;
/**
* The {@link Location} to store where the loot will be generated.
diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts
index a34cd3b8..089df7ef 100644
--- a/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace loot {
- class LootTable {
+ // @ts-ignore
+ interface LootTable extends org.bukkit.Keyed {
/**
* Returns a mutable list of loot generated by this LootTable.
*/
- public populateLoot(random: any, context: org.bukkit.loot.LootContext): any[] /*java.util.Collection*/;
+ populateLoot(random: any, context: org.bukkit.loot.LootContext): any[] /*java.util.Collection*/;
/**
* Attempt to fill an inventory with this LootTable's loot.
*/
- public fillInventory(inventory: org.bukkit.inventory.Inventory, random: any, context: org.bukkit.loot.LootContext): void;
+ fillInventory(inventory: org.bukkit.inventory.Inventory, random: any, context: org.bukkit.loot.LootContext): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts
index 58e2748d..c8220375 100644
--- a/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts
+++ b/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace loot {
- class LootTables {
+ // @ts-ignore
+ class LootTables implements org.bukkit.Keyed {
public static EMPTY: org.bukkit.loot.LootTables;
public static ABANDONED_MINESHAFT: org.bukkit.loot.LootTables;
public static BURIED_TREASURE: org.bukkit.loot.LootTables;
diff --git a/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts b/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts
index 1364080f..0c9dbe60 100644
--- a/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts
@@ -1,31 +1,32 @@
declare namespace org {
namespace bukkit {
namespace loot {
- class Lootable {
+ // @ts-ignore
+ interface Lootable {
/**
* Set the loot table for a container or entity.
*
* To remove a loot table use null. Do not use {@link LootTables#EMPTY} to
* clear a LootTable.
*/
- public setLootTable(table: org.bukkit.loot.LootTable): void;
+ setLootTable(table: org.bukkit.loot.LootTable): void;
/**
* Gets the Loot Table attached to this block or entity.
*
* If an block/entity does not have a loot table, this will return null, NOT
* an empty loot table.
*/
- public getLootTable(): org.bukkit.loot.LootTable;
+ getLootTable(): org.bukkit.loot.LootTable;
/**
* Set the seed used when this Loot Table generates loot.
*/
- public setSeed(seed: number): void;
+ setSeed(seed: number): void;
/**
* Get the Loot Table's seed.
*
* The seed is used when generating loot.
*/
- public getSeed(): number;
+ getSeed(): number;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts
index 78c9ccbe..29a48b18 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts
@@ -1,44 +1,45 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapCanvas {
+ // @ts-ignore
+ interface MapCanvas {
/**
* Get the map this canvas is attached to.
*/
- public getMapView(): org.bukkit.map.MapView;
+ getMapView(): org.bukkit.map.MapView;
/**
* Get the cursor collection associated with this canvas.
*/
- public getCursors(): org.bukkit.map.MapCursorCollection;
+ getCursors(): org.bukkit.map.MapCursorCollection;
/**
* Set the cursor collection associated with this canvas. This does not
* usually need to be called since a MapCursorCollection is already
* provided.
*/
- public setCursors(cursors: org.bukkit.map.MapCursorCollection): void;
+ setCursors(cursors: org.bukkit.map.MapCursorCollection): void;
/**
* Draw a pixel to the canvas.
*/
- public setPixel(x: number, y: number, color: number): void;
+ setPixel(x: number, y: number, color: number): void;
/**
* Get a pixel from the canvas.
*/
- public getPixel(x: number, y: number): number;
+ getPixel(x: number, y: number): number;
/**
* Get a pixel from the layers below this canvas.
*/
- public getBasePixel(x: number, y: number): number;
+ getBasePixel(x: number, y: number): number;
/**
* Draw an image to the map. The image will be clipped if necessary.
*/
- public drawImage(x: number, y: number, image: any): void;
+ drawImage(x: number, y: number, image: any): void;
/**
* Render text to the map using fancy formatting. Newline (\n) characters
* will move down one line and return to the original column, and the text
* color can be changed using sequences such as "§12;", replacing 12 with
* the palette index of the color (see {@link MapPalette}).
*/
- public drawText(x: number, y: number, font: org.bukkit.map.MapFont, text: string): void;
+ drawText(x: number, y: number, font: org.bukkit.map.MapFont, text: string): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts
index 92ece9e5..6a51ed4b 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace map {
namespace MapCursor {
- class Type {
+ // @ts-ignore
+ class Type {
public static WHITE_POINTER: org.bukkit.map.MapCursor.Type;
public static GREEN_POINTER: org.bukkit.map.MapCursor.Type;
public static RED_POINTER: org.bukkit.map.MapCursor.Type;
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts
index ac325911..b6ff9591 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapCursor {
+ // @ts-ignore
+ class MapCursor {
/**
* Initialize the map cursor.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts
index 432762a6..1cca7a92 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapCursorCollection {
+ // @ts-ignore
+ class MapCursorCollection {
constructor()
/**
* Get the amount of cursors in this collection.
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts b/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts
index 6194adf2..ec0b40d4 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace map {
namespace MapFont {
- class CharacterSprite {
+ // @ts-ignore
+ class CharacterSprite {
constructor(width: number, height: number, data: boolean)
/**
* Get the value of a pixel of the character.
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts b/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts
index fd170091..8fa0f78b 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapFont {
+ // @ts-ignore
+ class MapFont {
constructor()
protected malleable: boolean;
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts b/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts
index bf102d4d..4c3896f7 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapPalette {
+ // @ts-ignore
+ class MapPalette {
public static TRANSPARENT: number;
public static LIGHT_GREEN: number;
public static LIGHT_BROWN: number;
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts b/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts
index 7f154547..08faac15 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace map {
+ // @ts-ignore
abstract class MapRenderer {
/**
* Initialize the map renderer base to be non-contextual. See {@link
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts b/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts
index ce1f2fcc..f67daf65 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace map {
namespace MapView {
- class Scale {
+ // @ts-ignore
+ class Scale {
public static CLOSEST: org.bukkit.map.MapView.Scale;
public static CLOSE: org.bukkit.map.MapView.Scale;
public static NORMAL: org.bukkit.map.MapView.Scale;
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapView.ts b/packages/bukkit/src/typings/org.bukkit.map.MapView.ts
index 711df881..759a9840 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MapView.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MapView.ts
@@ -1,93 +1,94 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MapView {
+ // @ts-ignore
+ interface MapView {
/**
* Get the ID of this map item for use with {@link MapMeta}.
*/
- public getId(): number;
+ getId(): number;
/**
* Check whether this map is virtual. A map is virtual if its lowermost
* MapRenderer is plugin-provided.
*/
- public isVirtual(): boolean;
+ isVirtual(): boolean;
/**
* Get the scale of this map.
*/
- public getScale(): org.bukkit.map.MapView.Scale;
+ getScale(): org.bukkit.map.MapView.Scale;
/**
* Set the scale of this map.
*/
- public setScale(scale: org.bukkit.map.MapView.Scale): void;
+ setScale(scale: org.bukkit.map.MapView.Scale): void;
/**
* Get the center X position of this map.
*/
- public getCenterX(): number;
+ getCenterX(): number;
/**
* Get the center Z position of this map.
*/
- public getCenterZ(): number;
+ getCenterZ(): number;
/**
* Set the center X position of this map.
*/
- public setCenterX(x: number): void;
+ setCenterX(x: number): void;
/**
* Set the center Z position of this map.
*/
- public setCenterZ(z: number): void;
+ setCenterZ(z: number): void;
/**
* Get the world that this map is associated with. Primarily used by the
* internal renderer, but may be used by external renderers. May return
* null if the world the map is associated with is not loaded.
*/
- public getWorld(): org.bukkit.World;
+ getWorld(): org.bukkit.World;
/**
* Set the world that this map is associated with. The world is used by
* the internal renderer, and may also be used by external renderers.
*/
- public setWorld(world: org.bukkit.World): void;
+ setWorld(world: org.bukkit.World): void;
/**
* Get a list of MapRenderers currently in effect.
*/
- public getRenderers(): any[] /*java.util.List*/;
+ getRenderers(): any[] /*java.util.List*/;
/**
* Add a renderer to this map.
*/
- public addRenderer(renderer: org.bukkit.map.MapRenderer): void;
+ addRenderer(renderer: org.bukkit.map.MapRenderer): void;
/**
* Remove a renderer from this map.
*/
- public removeRenderer(renderer: org.bukkit.map.MapRenderer): boolean;
+ removeRenderer(renderer: org.bukkit.map.MapRenderer): boolean;
/**
* Gets whether a position cursor should be shown when the map is near its
* center.
*/
- public isTrackingPosition(): boolean;
+ isTrackingPosition(): boolean;
/**
* Sets whether a position cursor should be shown when the map is near its
* center.
*/
- public setTrackingPosition(trackingPosition: boolean): void;
+ setTrackingPosition(trackingPosition: boolean): void;
/**
* Whether the map will show a smaller position cursor (true), or no
* position cursor (false) when cursor is outside of map's range.
*/
- public isUnlimitedTracking(): boolean;
+ isUnlimitedTracking(): boolean;
/**
* Whether the map will show a smaller position cursor (true), or no
* position cursor (false) when cursor is outside of map's range.
*/
- public setUnlimitedTracking(unlimited: boolean): void;
+ setUnlimitedTracking(unlimited: boolean): void;
/**
* Gets whether the map is locked or not.
* A locked map may not be explored further.
*/
- public isLocked(): boolean;
+ isLocked(): boolean;
/**
* Gets whether the map is locked or not.
* A locked map may not be explored further.
*/
- public setLocked(locked: boolean): void;
+ setLocked(locked: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts b/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts
index 27f16e05..3ff057b8 100644
--- a/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts
+++ b/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace map {
- class MinecraftFont {
+ // @ts-ignore
+ class MinecraftFont {
/**
* Initialize a new MinecraftFont.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts b/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts
index 2f94e760..686c051c 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Attachable {
+ // @ts-ignore
+ interface Attachable extends org.bukkit.material.Directional {
/**
* Gets the face that this block is attached on
*/
- public getAttachedFace(): org.bukkit.block.BlockFace;
+ getAttachedFace(): org.bukkit.block.BlockFace;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Banner.ts b/packages/bukkit/src/typings/org.bukkit.material.Banner.ts
index 47d89ec1..52061a85 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Banner.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Banner.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Banner {
+ // @ts-ignore
+ class Banner implements org.bukkit.material.Attachable {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Bed.ts b/packages/bukkit/src/typings/org.bukkit.material.Bed.ts
index a5bba2d4..137b1f9a 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Bed.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Bed.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Bed {
+ // @ts-ignore
+ class Bed implements org.bukkit.material.Directional {
/**
* Default constructor for a bed.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Button.ts b/packages/bukkit/src/typings/org.bukkit.material.Button.ts
index afc3b463..0906aaba 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Button.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Button.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Button {
+ // @ts-ignore
+ class Button implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Cake.ts b/packages/bukkit/src/typings/org.bukkit.material.Cake.ts
index 5cc8a480..d382f6a2 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Cake.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Cake.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Cake {
+ // @ts-ignore
+ class Cake {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts b/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts
index a2592034..e15399df 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Cauldron {
+ // @ts-ignore
+ class Cauldron {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Chest.ts b/packages/bukkit/src/typings/org.bukkit.material.Chest.ts
index dd7070a0..60ad3cef 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Chest.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Chest.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Chest {
+ // @ts-ignore
+ class Chest {
constructor()
/**
* Instantiate a chest facing in a particular direction.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Coal.ts b/packages/bukkit/src/typings/org.bukkit.material.Coal.ts
index 7c471c4e..130c4976 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Coal.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Coal.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Coal {
+ // @ts-ignore
+ class Coal {
constructor()
constructor(type: org.bukkit.CoalType)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts
index 6b197eba..a0d0c834 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace material {
namespace CocoaPlant {
- class CocoaPlantSize {
+ // @ts-ignore
+ class CocoaPlantSize {
public static SMALL: org.bukkit.material.CocoaPlant.CocoaPlantSize;
public static MEDIUM: org.bukkit.material.CocoaPlant.CocoaPlantSize;
public static LARGE: org.bukkit.material.CocoaPlant.CocoaPlantSize;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts
index 2925951b..5feaf073 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class CocoaPlant {
+ // @ts-ignore
+ class CocoaPlant implements org.bukkit.material.Directional, org.bukkit.material.Attachable {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(sz: org.bukkit.material.CocoaPlant.CocoaPlantSize)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts b/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts
index 9db2e1ee..e4063ab6 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts
@@ -1,21 +1,22 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Colorable {
+ // @ts-ignore
+ interface Colorable {
/**
* Gets the color of this object.
*
* This may be null to represent the default color of an object, if the
* object has a special default color (e.g Shulkers).
*/
- public getColor(): org.bukkit.DyeColor;
+ getColor(): org.bukkit.DyeColor;
/**
* Sets the color of this object to the specified DyeColor.
*
* This may be null to represent the default color of an object, if the
* object has a special default color (e.g Shulkers).
*/
- public setColor(color: org.bukkit.DyeColor): void;
+ setColor(color: org.bukkit.DyeColor): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Command.ts b/packages/bukkit/src/typings/org.bukkit.material.Command.ts
index a3691adf..d2d30dc6 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Command.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Command.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Command {
+ // @ts-ignore
+ class Command implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts
index e4cbace2..06326ff1 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Comparator {
+ // @ts-ignore
+ class Comparator implements org.bukkit.material.Directional, org.bukkit.material.Redstone {
/**
* Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north).
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Crops.ts b/packages/bukkit/src/typings/org.bukkit.material.Crops.ts
index ffcd8e02..1f387731 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Crops.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Crops.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Crops {
+ // @ts-ignore
+ class Crops {
/**
* Constructs a wheat crop block in the seeded state.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts b/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts
index 47356712..d20a1b5e 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class DetectorRail {
+ // @ts-ignore
+ class DetectorRail implements org.bukkit.material.PressureSensor {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Diode.ts b/packages/bukkit/src/typings/org.bukkit.material.Diode.ts
index 69978bfc..92be1ff9 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Diode.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Diode.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Diode {
+ // @ts-ignore
+ class Diode implements org.bukkit.material.Directional, org.bukkit.material.Redstone {
/**
* Constructs a diode switched on, with a delay of 1 and facing the default
* direction (north).
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Directional.ts b/packages/bukkit/src/typings/org.bukkit.material.Directional.ts
index 1e877e68..0a2b2e03 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Directional.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Directional.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Directional {
+ // @ts-ignore
+ interface Directional {
/**
* Sets the direction that this block is facing in
*/
- public setFacingDirection(face: org.bukkit.block.BlockFace): void;
+ setFacingDirection(face: org.bukkit.block.BlockFace): void;
/**
* Gets the direction this block is facing
*/
- public getFacing(): org.bukkit.block.BlockFace;
+ getFacing(): org.bukkit.block.BlockFace;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts b/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts
index 1e9cb4f3..e9770a0d 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class DirectionalContainer {
+ // @ts-ignore
+ class DirectionalContainer implements org.bukkit.material.Directional {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
public setFacingDirection(face: org.bukkit.block.BlockFace): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts
index cc032b69..68a2590c 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Dispenser {
+ // @ts-ignore
+ class Dispenser {
constructor()
constructor(direction: org.bukkit.block.BlockFace)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Door.ts b/packages/bukkit/src/typings/org.bukkit.material.Door.ts
index 6f61b911..e0127087 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Door.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Door.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Door {
+ // @ts-ignore
+ class Door implements org.bukkit.material.Directional, org.bukkit.material.Openable {
constructor()
constructor(type: org.bukkit.Material)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Dye.ts b/packages/bukkit/src/typings/org.bukkit.material.Dye.ts
index 0affc23a..72ca6499 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Dye.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Dye.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Dye {
+ // @ts-ignore
+ class Dye implements org.bukkit.material.Colorable {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts
index b315594e..4ecbb454 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class EnderChest {
+ // @ts-ignore
+ class EnderChest {
constructor()
/**
* Instantiate an ender chest facing in a particular direction.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts b/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts
index f4181570..fe4c9535 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class ExtendedRails {
+ // @ts-ignore
+ class ExtendedRails {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
public isCurve(): boolean;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts b/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts
index f506a3b3..c86e94cd 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class FlowerPot {
+ // @ts-ignore
+ class FlowerPot {
/**
* Default constructor for a flower pot.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts
index 206c824e..93b4237f 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Furnace {
+ // @ts-ignore
+ class Furnace {
constructor()
/**
* Instantiate a furnace facing in a particular direction.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts b/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts
index bcb8c29f..5e65015f 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class FurnaceAndDispenser {
+ // @ts-ignore
+ class FurnaceAndDispenser {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
public clone(): org.bukkit.material.FurnaceAndDispenser;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Gate.ts b/packages/bukkit/src/typings/org.bukkit.material.Gate.ts
index dbc37462..5a24649f 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Gate.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Gate.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Gate {
+ // @ts-ignore
+ class Gate implements org.bukkit.material.Directional, org.bukkit.material.Openable {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts
index e747555c..27f8bae8 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Hopper {
+ // @ts-ignore
+ class Hopper implements org.bukkit.material.Directional, org.bukkit.material.Redstone {
/**
* Constructs a hopper facing the default direction (down) and initially
* active.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts b/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts
index abecc2d1..e42dd2fa 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Ladder {
+ // @ts-ignore
+ class Ladder {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts
index 9e212f6b..7b5a2c89 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Leaves {
+ // @ts-ignore
+ class Leaves {
/**
* Constructs a leaf block.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Lever.ts b/packages/bukkit/src/typings/org.bukkit.material.Lever.ts
index f393e93e..91f67500 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Lever.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Lever.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Lever {
+ // @ts-ignore
+ class Lever implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts b/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts
index cf6a26f4..a68e18a4 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class LongGrass {
+ // @ts-ignore
+ class LongGrass {
constructor()
constructor(species: org.bukkit.GrassSpecies)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts b/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts
index 7c8fa865..0c514093 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class MaterialData {
+ // @ts-ignore
+ class MaterialData {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts b/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts
index b3148028..835e90a7 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class MonsterEggs {
+ // @ts-ignore
+ class MonsterEggs {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts b/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts
index 931e2dd6..38baf5b3 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Mushroom {
+ // @ts-ignore
+ class Mushroom {
/**
* Constructs a brown/red mushroom block with all sides set to pores.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts b/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts
index f28cd19f..866e4181 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class NetherWarts {
+ // @ts-ignore
+ class NetherWarts {
constructor()
constructor(state: org.bukkit.NetherWartsState)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Observer.ts b/packages/bukkit/src/typings/org.bukkit.material.Observer.ts
index 05d8d914..2ba85556 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Observer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Observer.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Observer {
+ // @ts-ignore
+ class Observer implements org.bukkit.material.Directional, org.bukkit.material.Redstone {
constructor()
constructor(direction: org.bukkit.block.BlockFace)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Openable.ts b/packages/bukkit/src/typings/org.bukkit.material.Openable.ts
index 0ed47d15..6431950d 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Openable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Openable.ts
@@ -1,15 +1,16 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Openable {
+ // @ts-ignore
+ interface Openable {
/**
* Check to see if the door is open.
*/
- public isOpen(): boolean;
+ isOpen(): boolean;
/**
* Configure this door to be either open or closed;
*/
- public setOpen(isOpen: boolean): void;
+ setOpen(isOpen: boolean): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts
index 2a7b0e0f..7f39665b 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class PistonBaseMaterial {
+ // @ts-ignore
+ class PistonBaseMaterial implements org.bukkit.material.Directional, org.bukkit.material.Redstone {
constructor(type: org.bukkit.Material)
/**
* Constructs a PistonBaseMaterial.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts
index f7dc2918..8adc5de8 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class PistonExtensionMaterial {
+ // @ts-ignore
+ class PistonExtensionMaterial implements org.bukkit.material.Attachable {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
public setFacingDirection(face: org.bukkit.block.BlockFace): void;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts b/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts
index 48ae1a88..1b0aeb2f 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class PoweredRail {
+ // @ts-ignore
+ class PoweredRail implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts b/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts
index e855e5bb..0416c30c 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class PressurePlate {
+ // @ts-ignore
+ class PressurePlate implements org.bukkit.material.PressureSensor {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts b/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts
index e1ed910d..66ade423 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts
@@ -1,8 +1,9 @@
declare namespace org {
namespace bukkit {
namespace material {
- class PressureSensor {
- public isPressed(): boolean;
+ // @ts-ignore
+ interface PressureSensor {
+ isPressed(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts b/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts
index 9495381a..7da9e994 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Pumpkin {
+ // @ts-ignore
+ class Pumpkin implements org.bukkit.material.Directional {
constructor()
/**
* Instantiate a pumpkin facing in a particular direction.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Rails.ts b/packages/bukkit/src/typings/org.bukkit.material.Rails.ts
index 1f44f1ca..0bc8df41 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Rails.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Rails.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Rails {
+ // @ts-ignore
+ class Rails {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts b/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts
index ec40d344..cd649bb7 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts
@@ -1,12 +1,13 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Redstone {
+ // @ts-ignore
+ interface Redstone {
/**
* Gets the current state of this Material, indicating if it's powered or
* unpowered
*/
- public isPowered(): boolean;
+ isPowered(): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts b/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts
index cc64534b..21b80708 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class RedstoneTorch {
+ // @ts-ignore
+ class RedstoneTorch implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts b/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts
index 518372f6..bdb20415 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class RedstoneWire {
+ // @ts-ignore
+ class RedstoneWire implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts b/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts
index a15c368b..c3ecff67 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Sandstone {
+ // @ts-ignore
+ class Sandstone {
constructor()
constructor(type: org.bukkit.SandstoneType)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts b/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts
index 41420167..0f8caea3 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Sapling {
+ // @ts-ignore
+ class Sapling {
/**
* Constructs a sapling.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sign.ts b/packages/bukkit/src/typings/org.bukkit.material.Sign.ts
index e4b9690e..9ad9d87c 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Sign.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Sign.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Sign {
+ // @ts-ignore
+ class Sign implements org.bukkit.material.Attachable {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts b/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts
index 1e6414dd..ee7944f8 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- abstract class SimpleAttachableMaterialData {
+ // @ts-ignore
+ abstract class SimpleAttachableMaterialData implements org.bukkit.material.Attachable {
constructor(type: org.bukkit.Material, direction: org.bukkit.block.BlockFace)
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Skull.ts b/packages/bukkit/src/typings/org.bukkit.material.Skull.ts
index f5ac94d7..dfad5ad0 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Skull.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Skull.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Skull {
+ // @ts-ignore
+ class Skull implements org.bukkit.material.Directional {
constructor()
/**
* Instantiate a skull facing in a particular direction.
diff --git a/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts b/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts
index 234a7955..47c43c13 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class SmoothBrick {
+ // @ts-ignore
+ class SmoothBrick {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts b/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts
index ffb10b13..ddd93004 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class SpawnEgg {
+ // @ts-ignore
+ class SpawnEgg {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts b/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts
index 3d9ee9d2..1ffc4d72 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Stairs {
+ // @ts-ignore
+ class Stairs implements org.bukkit.material.Directional {
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
public getAscendingDirection(): org.bukkit.block.BlockFace;
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Step.ts b/packages/bukkit/src/typings/org.bukkit.material.Step.ts
index 94c6bc37..a935f3b8 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Step.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Step.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Step {
+ // @ts-ignore
+ class Step {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts
index 092e9d42..9cf6c853 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace material {
+ // @ts-ignore
abstract class TexturedMaterial {
constructor(m: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Torch.ts b/packages/bukkit/src/typings/org.bukkit.material.Torch.ts
index bc00dafc..157f4344 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Torch.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Torch.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Torch {
+ // @ts-ignore
+ class Torch {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts b/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts
index 53e2e816..52ded1f2 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class TrapDoor {
+ // @ts-ignore
+ class TrapDoor implements org.bukkit.material.Openable {
constructor()
constructor(type: org.bukkit.Material)
constructor(type: org.bukkit.Material, data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Tree.ts b/packages/bukkit/src/typings/org.bukkit.material.Tree.ts
index 63310800..dfa3526e 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Tree.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Tree.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Tree {
+ // @ts-ignore
+ class Tree {
/**
* Constructs a tree block.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts b/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts
index 8e22f7a2..e8758c82 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Tripwire {
+ // @ts-ignore
+ class Tripwire {
constructor()
constructor(type: org.bukkit.Material, data: number)
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts b/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts
index b2838ef5..a5472150 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class TripwireHook {
+ // @ts-ignore
+ class TripwireHook implements org.bukkit.material.Redstone {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(dir: org.bukkit.block.BlockFace)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Vine.ts b/packages/bukkit/src/typings/org.bukkit.material.Vine.ts
index 5b36abc1..182027ac 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Vine.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Vine.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Vine {
+ // @ts-ignore
+ class Vine {
constructor()
constructor(type: org.bukkit.Material, data: number)
constructor(data: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Wood.ts b/packages/bukkit/src/typings/org.bukkit.material.Wood.ts
index dda46dc8..e3df7efa 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Wood.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Wood.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Wood {
+ // @ts-ignore
+ class Wood {
/**
* Constructs a wood block.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts b/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts
index 93c4d83c..ff61f1bb 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class WoodenStep {
+ // @ts-ignore
+ class WoodenStep {
/**
* Constructs a wooden step.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.material.Wool.ts b/packages/bukkit/src/typings/org.bukkit.material.Wool.ts
index 89e97ce5..f76ca428 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.Wool.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.Wool.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace material {
- class Wool {
+ // @ts-ignore
+ class Wool implements org.bukkit.material.Colorable {
constructor()
constructor(color: org.bukkit.DyeColor)
constructor(type: org.bukkit.Material)
diff --git a/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts b/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts
index fb98942d..5ca72913 100644
--- a/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts
+++ b/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace material {
namespace types {
- class MushroomBlockTexture {
+ // @ts-ignore
+ class MushroomBlockTexture {
public static ALL_PORES: org.bukkit.material.types.MushroomBlockTexture;
public static CAP_NORTH_WEST: org.bukkit.material.types.MushroomBlockTexture;
public static CAP_NORTH: org.bukkit.material.types.MushroomBlockTexture;
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts
index 6c04f059..1b5a084c 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class FixedMetadataValue {
+ // @ts-ignore
+ class FixedMetadataValue {
/**
* Initializes a FixedMetadataValue with an Object
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts
index 0a12cd3c..4dd8ef94 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace metadata {
namespace LazyMetadataValue {
- class CacheStrategy {
+ // @ts-ignore
+ class CacheStrategy {
public static CACHE_AFTER_FIRST_EVAL: org.bukkit.metadata.LazyMetadataValue.CacheStrategy;
public static NEVER_CACHE: org.bukkit.metadata.LazyMetadataValue.CacheStrategy;
public static CACHE_ETERNALLY: org.bukkit.metadata.LazyMetadataValue.CacheStrategy;
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts
index dc65fb28..bf32a84e 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class LazyMetadataValue {
+ // @ts-ignore
+ class LazyMetadataValue {
/**
* Initialized a LazyMetadataValue object with the default
* CACHE_AFTER_FIRST_EVAL cache strategy.
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts
index 80586cc3..fa872836 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class MetadataConversionException {
+ // @ts-ignore
+ class MetadataConversionException {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts
index 3553c483..2be244fa 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class MetadataEvaluationException {
+ // @ts-ignore
+ class MetadataEvaluationException {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts
index c0bc87e4..14494821 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts
@@ -1,30 +1,31 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class MetadataStore {
+ // @ts-ignore
+ interface MetadataStore {
/**
* Adds a metadata value to an object.
*/
- public setMetadata(subject: any, metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void;
+ setMetadata(subject: any, metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void;
/**
* Returns all metadata values attached to an object. If multiple plugins
* have attached metadata, each will value will be included.
*/
- public getMetadata(subject: any, metadataKey: string): any[] /*java.util.List*/;
+ getMetadata(subject: any, metadataKey: string): any[] /*java.util.List*/;
/**
* Tests to see if a metadata attribute has been set on an object.
*/
- public hasMetadata(subject: any, metadataKey: string): boolean;
+ hasMetadata(subject: any, metadataKey: string): boolean;
/**
* Removes a metadata item owned by a plugin from a subject.
*/
- public removeMetadata(subject: any, metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void;
+ removeMetadata(subject: any, metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void;
/**
* Invalidates all metadata in the metadata store that originates from the
* given plugin. Doing this will force each invalidated metadata item to
* be recalculated the next time it is accessed.
*/
- public invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void;
+ invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts
index 3a942455..eefc230c 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts
@@ -1,6 +1,7 @@
declare namespace org {
namespace bukkit {
namespace metadata {
+ // @ts-ignore
abstract class MetadataStoreBase {
constructor()
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts
index fbf2c920..554b6f96 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts
@@ -1,52 +1,53 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class MetadataValue {
+ // @ts-ignore
+ interface MetadataValue {
/**
* Fetches the value of this metadata item.
*/
- public value(): any;
+ value(): any;
/**
* Attempts to convert the value of this metadata item into an int.
*/
- public asInt(): number;
+ asInt(): number;
/**
* Attempts to convert the value of this metadata item into a float.
*/
- public asFloat(): number;
+ asFloat(): number;
/**
* Attempts to convert the value of this metadata item into a double.
*/
- public asDouble(): number;
+ asDouble(): number;
/**
* Attempts to convert the value of this metadata item into a long.
*/
- public asLong(): number;
+ asLong(): number;
/**
* Attempts to convert the value of this metadata item into a short.
*/
- public asShort(): number;
+ asShort(): number;
/**
* Attempts to convert the value of this metadata item into a byte.
*/
- public asByte(): number;
+ asByte(): number;
/**
* Attempts to convert the value of this metadata item into a boolean.
*/
- public asBoolean(): boolean;
+ asBoolean(): boolean;
/**
* Attempts to convert the value of this metadata item into a string.
*/
- public asString(): string;
+ asString(): string;
/**
* Returns the {@link Plugin} that created this metadata item.
*/
- public getOwningPlugin(): org.bukkit.plugin.Plugin;
+ getOwningPlugin(): org.bukkit.plugin.Plugin;
/**
* Invalidates this metadata item, forcing it to recompute when next
* accessed.
*/
- public invalidate(): void;
+ invalidate(): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts
index e853e23a..d2cba9ef 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- abstract class MetadataValueAdapter {
+ // @ts-ignore
+ abstract class MetadataValueAdapter implements org.bukkit.metadata.MetadataValue {
constructor(owningPlugin: org.bukkit.plugin.Plugin)
protected owningPlugin: any;
public getOwningPlugin(): org.bukkit.plugin.Plugin;
diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts b/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts
index a95c7f38..f97223c0 100644
--- a/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts
+++ b/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts
@@ -1,26 +1,27 @@
declare namespace org {
namespace bukkit {
namespace metadata {
- class Metadatable {
+ // @ts-ignore
+ interface Metadatable {
/**
* Sets a metadata value in the implementing object's metadata store.
*/
- public setMetadata(metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void;
+ setMetadata(metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void;
/**
* Returns a list of previously set metadata values from the implementing
* object's metadata store.
*/
- public getMetadata(metadataKey: string): any[] /*java.util.List*/;
+ getMetadata(metadataKey: string): any[] /*java.util.List*/;
/**
* Tests to see whether the implementing object contains the given
* metadata value in its metadata store.
*/
- public hasMetadata(metadataKey: string): boolean;
+ hasMetadata(metadataKey: string): boolean;
/**
* Removes the given metadata value from the implementing object's
* metadata store.
*/
- public removeMetadata(metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void;
+ removeMetadata(metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts b/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts
index 640d4102..f24e2daf 100644
--- a/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts
+++ b/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts
@@ -1,66 +1,67 @@
declare namespace org {
namespace bukkit {
namespace permissions {
- class Permissible {
+ // @ts-ignore
+ interface Permissible extends org.bukkit.permissions.ServerOperator {
/**
* Checks if this object contains an override for the specified
* permission, by fully qualified name
*/
- public isPermissionSet(name: string): boolean;
+ isPermissionSet(name: string): boolean;
/**
* Checks if this object contains an override for the specified {@link
* Permission}
*/
- public isPermissionSet(perm: org.bukkit.permissions.Permission): boolean;
+ isPermissionSet(perm: org.bukkit.permissions.Permission): boolean;
/**
* Gets the value of the specified permission, if set.
* IllegalPluginAccessException
* without detail message.
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts
index 2735b860..28a01465 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class InvalidDescriptionException {
+ // @ts-ignore
+ class InvalidDescriptionException {
/**
* Constructs a new InvalidDescriptionException based on the given
* Exception
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts
index 85a8f3c2..6f5349fe 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class InvalidPluginException {
+ // @ts-ignore
+ class InvalidPluginException {
/**
* Constructs a new InvalidPluginException based on the given Exception
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts b/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts
index 092703d3..3bf8d130 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts
@@ -1,16 +1,17 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class Plugin {
+ // @ts-ignore
+ interface Plugin extends org.bukkit.command.TabExecutor {
/**
* Returns the folder that the plugin data's files are located in. The
* folder may not yet exist.
*/
- public getDataFolder(): any;
+ getDataFolder(): any;
/**
* Returns the plugin.yaml file containing the details for this plugin
*/
- public getDescription(): org.bukkit.plugin.PluginDescriptionFile;
+ getDescription(): org.bukkit.plugin.PluginDescriptionFile;
/**
* Gets a {@link FileConfiguration} for this plugin, read through
* "config.yml"
@@ -18,22 +19,22 @@ declare namespace org {
* If there is a default config.yml embedded in this plugin, it will be
* provided as a default for this Configuration.
*/
- public getConfig(): org.bukkit.configuration.file.FileConfiguration;
+ getConfig(): org.bukkit.configuration.file.FileConfiguration;
/**
* Gets an embedded resource in this plugin
*/
- public getResource(filename: string): any;
+ getResource(filename: string): any;
/**
* Saves the {@link FileConfiguration} retrievable by {@link #getConfig()}.
*/
- public saveConfig(): void;
+ saveConfig(): void;
/**
* Saves the raw contents of the default config.yml file to the location
* retrievable by {@link #getConfig()}.
* load(service)
later, as that
* would be a non-thread safe situation.
*/
- public isProvidedFor(service: any): boolean;
+ isProvidedFor(service: any): boolean;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts
index 9a7efbd7..3ecfd982 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class SimplePluginManager {
+ // @ts-ignore
+ class SimplePluginManager implements org.bukkit.plugin.PluginManager {
constructor(instance: org.bukkit.Server, commandMap: org.bukkit.command.SimpleCommandMap)
/**
* Registers the specified plugin loader
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts
index 87d2042f..2fcd2b58 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class SimpleServicesManager {
+ // @ts-ignore
+ class SimpleServicesManager implements org.bukkit.plugin.ServicesManager {
constructor()
/**
* Register a provider of a service.
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts
index 196d57d9..a9d84976 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class TimedRegisteredListener {
+ // @ts-ignore
+ class TimedRegisteredListener {
constructor(pluginListener: org.bukkit.event.Listener, eventExecutor: org.bukkit.plugin.EventExecutor, eventPriority: org.bukkit.event.EventPriority, registeredPlugin: org.bukkit.plugin.Plugin, listenCancelled: boolean)
public callEvent(event: org.bukkit.event.Event): void;
/**
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts
index e964f10f..3abcfe9a 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace plugin {
- class UnknownDependencyException {
+ // @ts-ignore
+ class UnknownDependencyException {
/**
* Constructs a new UnknownDependencyException based on the given
* Exception
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts
index 86c763f6..6506e4aa 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts
@@ -2,6 +2,7 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace java {
+ // @ts-ignore
abstract class JavaPlugin {
constructor()
constructor(loader: org.bukkit.plugin.java.JavaPluginLoader, description: org.bukkit.plugin.PluginDescriptionFile, dataFolder: any, file: any)
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts
index 5445cbcc..62e8389c 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace java {
- class JavaPluginLoader {
+ // @ts-ignore
+ class JavaPluginLoader implements org.bukkit.plugin.PluginLoader {
/**
* This class was not meant to be constructed explicitly
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts
index ed42c239..34d61133 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class ChannelNameTooLongException {
+ // @ts-ignore
+ class ChannelNameTooLongException {
constructor()
constructor(channel: string)
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts
index c323430a..55642438 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class ChannelNotRegisteredException {
+ // @ts-ignore
+ class ChannelNotRegisteredException {
constructor()
constructor(channel: string)
}
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts
index cec02a82..1d7ce4b4 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class MessageTooLargeException {
+ // @ts-ignore
+ class MessageTooLargeException {
constructor()
constructor(message: number)
constructor(length: number)
diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts
index 31d7470e..dea45a5e 100644
--- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts
+++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts
@@ -2,108 +2,109 @@ declare namespace org {
namespace bukkit {
namespace plugin {
namespace messaging {
- class Messenger {
- public static MAX_MESSAGE_SIZE: number;
- public static MAX_CHANNEL_SIZE: number;
+ // @ts-ignore
+ interface Messenger {
+ MAX_MESSAGE_SIZE: number;
+ MAX_CHANNEL_SIZE: number;
/**
* Checks if the specified channel is a reserved name.
*
* All channels within the "minecraft" namespace except for
* "minecraft:brand" are reserved.
*/
- public isReservedChannel(channel: string): boolean;
+ isReservedChannel(channel: string): boolean;
/**
* Registers the specific plugin to the requested outgoing plugin channel,
* allowing it to send messages through that channel to any clients.
*/
- public registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
+ registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
/**
* Unregisters the specific plugin from the requested outgoing plugin
* channel, no longer allowing it to send messages through that channel to
* any clients.
*/
- public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
+ unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
/**
* Unregisters the specific plugin from all outgoing plugin channels, no
* longer allowing it to send any plugin messages.
*/
- public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin): void;
+ unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin): void;
/**
* Registers the specific plugin for listening on the requested incoming
* plugin channel, allowing it to act upon any plugin messages.
*/
- public registerIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): org.bukkit.plugin.messaging.PluginMessageListenerRegistration;
+ registerIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): org.bukkit.plugin.messaging.PluginMessageListenerRegistration;
/**
* Unregisters the specific plugin's listener from listening on the
* requested incoming plugin channel, no longer allowing it to act upon
* any plugin messages.
*/
- public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): void;
+ unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): void;
/**
* Unregisters the specific plugin from listening on the requested
* incoming plugin channel, no longer allowing it to act upon any plugin
* messages.
*/
- public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
+ unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void;
/**
* Unregisters the specific plugin from listening on all plugin channels
* through all listeners.
*/
- public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void;
+ unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void;
/**
* Gets a set containing all the outgoing plugin channels.
*/
- public getOutgoingChannels(): any[] /*java.util.Set*/;
+ getOutgoingChannels(): any[] /*java.util.Set*/;
/**
* Gets a set containing all the outgoing plugin channels that the
* specified plugin is registered to.
*/
- public getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
+ getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
/**
* Gets a set containing all the incoming plugin channels.
*/
- public getIncomingChannels(): any[] /*java.util.Set*/;
+ getIncomingChannels(): any[] /*java.util.Set*/;
/**
* Gets a set containing all the incoming plugin channels that the
* specified plugin is registered for.
*/
- public getIncomingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
+ getIncomingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
/**
* Gets a set containing all the incoming plugin channel registrations
* that the specified plugin has.
*/
- public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
+ getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/;
/**
* Gets a set containing all the incoming plugin channel registrations
* that are on the requested channel.
*/
- public getIncomingChannelRegistrations(channel: string): any[] /*java.util.Set*/;
+ getIncomingChannelRegistrations(channel: string): any[] /*java.util.Set*/;
/**
* Gets a set containing all the incoming plugin channel registrations
* that the specified plugin has on the requested channel.
*/
- public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): any[] /*java.util.Set*/;
+ getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): any[] /*java.util.Set*/;
/**
* Checks if the specified plugin message listener registration is valid.
*
* This only sets the team outline, other occurrences of colors such as in
* names are handled by prefixes / suffixes.
*/
- public getColor(): org.bukkit.ChatColor;
+ getColor(): org.bukkit.ChatColor;
/**
* Sets the color of the team.
*
* This only sets the team outline, other occurrences of colors such as in
* names are handled by prefixes / suffixes.
*/
- public setColor(color: org.bukkit.ChatColor): void;
+ setColor(color: org.bukkit.ChatColor): void;
/**
* Gets the team friendly fire state
*/
- public allowFriendlyFire(): boolean;
+ allowFriendlyFire(): boolean;
/**
* Sets the team friendly fire state
*/
- public setAllowFriendlyFire(enabled: boolean): void;
+ setAllowFriendlyFire(enabled: boolean): void;
/**
* Gets the team's ability to see {@link PotionEffectType#INVISIBILITY
* invisible} teammates.
*/
- public canSeeFriendlyInvisibles(): boolean;
+ canSeeFriendlyInvisibles(): boolean;
/**
* Sets the team's ability to see {@link PotionEffectType#INVISIBILITY
* invisible} teammates.
*/
- public setCanSeeFriendlyInvisibles(enabled: boolean): void;
+ setCanSeeFriendlyInvisibles(enabled: boolean): void;
/**
* Gets the team's ability to see name tags
*/
- public getNameTagVisibility(): org.bukkit.scoreboard.NameTagVisibility;
+ getNameTagVisibility(): org.bukkit.scoreboard.NameTagVisibility;
/**
* Set's the team's ability to see name tags
*/
- public setNameTagVisibility(visibility: org.bukkit.scoreboard.NameTagVisibility): void;
+ setNameTagVisibility(visibility: org.bukkit.scoreboard.NameTagVisibility): void;
/**
* Gets the Set of players on the team
*/
- public getPlayers(): any[] /*java.util.Set*/;
+ getPlayers(): any[] /*java.util.Set*/;
/**
* Gets the Set of entries on the team
*/
- public getEntries(): any[] /*java.util.Set*/;
+ getEntries(): any[] /*java.util.Set*/;
/**
* Gets the size of the team
*/
- public getSize(): number;
+ getSize(): number;
/**
* Gets the Scoreboard to which this team is attached
*/
- public getScoreboard(): org.bukkit.scoreboard.Scoreboard;
+ getScoreboard(): org.bukkit.scoreboard.Scoreboard;
/**
* This puts the specified player onto this team for the scoreboard.
* 0
.
diff --git a/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts b/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts
index 3962b78b..21645424 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class CachedServerIcon {
+ // @ts-ignore
+ interface CachedServerIcon {
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts
index b84f13d7..c9d41e52 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace ChatPaginator {
- class ChatPage {
+ // @ts-ignore
+ class ChatPage {
constructor(lines: string, pageNumber: number, totalPages: number)
public getPageNumber(): number;
public getTotalPages(): number;
diff --git a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts
index d8969a45..cc35b3e6 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class ChatPaginator {
+ // @ts-ignore
+ class ChatPaginator {
constructor()
public static GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH: number;
public static AVERAGE_CHAT_PAGE_WIDTH: number;
diff --git a/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts b/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts
index 975b13c5..fcc7edb4 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts
@@ -1,11 +1,12 @@
declare namespace org {
namespace bukkit {
namespace util {
- class Consumer {
+ // @ts-ignore
+ interface Consumer {
/**
* Performs this operation on the given argument.
*/
- public accept(t: any): void;
+ accept(t: any): void;
}
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts b/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts
index 0d852706..ec4fa68f 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class EulerAngle {
+ // @ts-ignore
+ class EulerAngle {
/**
* Creates a EularAngle with each axis set to the
* passed angle in radians
diff --git a/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts b/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts
index 0cd5bdfc..3f5f9d4b 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class FileUtil {
+ // @ts-ignore
+ class FileUtil {
constructor()
/**
* This method copies one file to another location
diff --git a/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts b/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts
index 3809539a..4a52aa5b 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class NumberConversions {
+ // @ts-ignore
+ class NumberConversions {
public static floor(num: number): number;
public static ceil(num: number): number;
public static round(num: number): number;
diff --git a/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts b/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts
index 3520b4b3..5fc337c8 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class RayTraceResult {
+ // @ts-ignore
+ class RayTraceResult {
/**
* Creates a RayTraceResult.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts b/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts
index 13c51453..d706a459 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class StringUtil {
+ // @ts-ignore
+ class StringUtil {
constructor()
/**
* Copies all elements from the iterable collection of originals to the
diff --git a/packages/bukkit/src/typings/org.bukkit.util.Vector.ts b/packages/bukkit/src/typings/org.bukkit.util.Vector.ts
index e49e5839..5c914f32 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.Vector.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.Vector.ts
@@ -1,7 +1,8 @@
declare namespace org {
namespace bukkit {
namespace util {
- class Vector {
+ // @ts-ignore
+ class Vector implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Construct the vector with all components as 0.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts
index 51c88ad6..9fcc2f39 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace io {
- class BukkitObjectInputStream {
+ // @ts-ignore
+ class BukkitObjectInputStream {
/**
* Constructor provided to mirror super functionality.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts
index 320e432b..a7ef7c1f 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace io {
- class BukkitObjectOutputStream {
+ // @ts-ignore
+ class BukkitObjectOutputStream {
/**
* Constructor provided to mirror super functionality.
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts
index e4e13f7b..5a761a4e 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts
@@ -2,6 +2,7 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
+ // @ts-ignore
abstract class NoiseGenerator {
constructor()
protected perm: number[];
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts
index 2154bc16..d9916329 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts
@@ -2,6 +2,7 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
+ // @ts-ignore
abstract class OctaveGenerator {
constructor(octaves: org.bukkit.util.noise.NoiseGenerator)
protected octaves: org.bukkit.util.noise.NoiseGenerator[];
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts
index c6f70e3e..bb75a9ce 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
- class PerlinNoiseGenerator {
+ // @ts-ignore
+ class PerlinNoiseGenerator {
constructor()
/**
* Creates a seeded perlin noise generator for the given world
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts
index 941a96e4..61e5ec76 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
- class PerlinOctaveGenerator {
+ // @ts-ignore
+ class PerlinOctaveGenerator {
/**
* Creates a perlin octave generator for the given world
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts
index e9926c32..331b2f63 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
- class SimplexNoiseGenerator {
+ // @ts-ignore
+ class SimplexNoiseGenerator {
constructor()
/**
* Creates a seeded simplex noise generator for the given world
diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts
index c3e851bb..6215a7a0 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace noise {
- class SimplexOctaveGenerator {
+ // @ts-ignore
+ class SimplexOctaveGenerator {
/**
* Creates a simplex octave generator for the given world
*/
diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts
index 1ba69f0e..f0866c55 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace permissions {
- class BroadcastPermissions {
+ // @ts-ignore
+ class BroadcastPermissions {
public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission;
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts
index 67d5ea27..35d9d003 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace permissions {
- class CommandPermissions {
+ // @ts-ignore
+ class CommandPermissions {
public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission;
}
}
diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts
index b7925aca..a4befbda 100644
--- a/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts
+++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts
@@ -2,7 +2,8 @@ declare namespace org {
namespace bukkit {
namespace util {
namespace permissions {
- class DefaultPermissions {
+ // @ts-ignore
+ class DefaultPermissions {
public static registerPermission(perm: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission;
public static registerPermission(perm: org.bukkit.permissions.Permission, withLegacy: boolean): org.bukkit.permissions.Permission;
public static registerPermission(perm: org.bukkit.permissions.Permission, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission;