feat: add type extend and interface
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
a616a07553
commit
b8c3d0d19d
@ -1,6 +1,7 @@
|
||||
declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace command {
|
||||
// @ts-ignore
|
||||
interface CommandSender extends org.bukkit.permissions.Permissible {
|
||||
/**
|
||||
* Sends this sender a message
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace command {
|
||||
// @ts-ignore
|
||||
class FormattedCommandAlias {
|
||||
class FormattedCommandAlias extends org.bukkit.command.Command {
|
||||
constructor(alias: string, formatStrings: string)
|
||||
public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace command {
|
||||
// @ts-ignore
|
||||
class MultipleCommandAlias {
|
||||
class MultipleCommandAlias extends org.bukkit.command.Command {
|
||||
constructor(name: string, commands: org.bukkit.command.Command)
|
||||
/**
|
||||
* Gets the commands associated with the multi-command alias.
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace command {
|
||||
// @ts-ignore
|
||||
class PluginCommand implements org.bukkit.command.PluginIdentifiableCommand {
|
||||
class PluginCommand extends org.bukkit.command.Command implements org.bukkit.command.PluginIdentifiableCommand {
|
||||
constructor(name: string, owner: org.bukkit.plugin.Plugin)
|
||||
/**
|
||||
* Executes the command, returning its success
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
abstract class BukkitCommand {
|
||||
abstract class BukkitCommand extends org.bukkit.command.Command {
|
||||
constructor(name: string)
|
||||
constructor(name: string, description: string, usageMessage: string, aliases: any[] /*java.util.List*/)
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
class HelpCommand {
|
||||
class HelpCommand extends org.bukkit.command.defaults.BukkitCommand {
|
||||
constructor()
|
||||
public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean;
|
||||
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
class PluginsCommand {
|
||||
class PluginsCommand extends org.bukkit.command.defaults.BukkitCommand {
|
||||
constructor(name: string)
|
||||
public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean;
|
||||
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
class ReloadCommand {
|
||||
class ReloadCommand extends org.bukkit.command.defaults.BukkitCommand {
|
||||
constructor(name: string)
|
||||
public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean;
|
||||
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
class TimingsCommand {
|
||||
class TimingsCommand extends org.bukkit.command.defaults.BukkitCommand {
|
||||
constructor(name: string)
|
||||
public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean;
|
||||
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace command {
|
||||
namespace defaults {
|
||||
// @ts-ignore
|
||||
class VersionCommand {
|
||||
class VersionCommand extends org.bukkit.command.defaults.BukkitCommand {
|
||||
constructor(name: string)
|
||||
public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean;
|
||||
public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/;
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace configuration {
|
||||
// @ts-ignore
|
||||
class MemoryConfiguration implements org.bukkit.configuration.Configuration {
|
||||
class MemoryConfiguration extends org.bukkit.configuration.MemorySection implements org.bukkit.configuration.Configuration {
|
||||
/**
|
||||
* Creates an empty {@link MemoryConfiguration} with no default values.
|
||||
*/
|
||||
|
@ -2,11 +2,8 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace configuration {
|
||||
// @ts-ignore
|
||||
class MemoryConfigurationOptions {
|
||||
class MemoryConfigurationOptions extends org.bukkit.configuration.ConfigurationOptions {
|
||||
constructor(configuration: org.bukkit.configuration.MemoryConfiguration)
|
||||
public configuration(): org.bukkit.configuration.MemoryConfiguration;
|
||||
public copyDefaults(value: boolean): org.bukkit.configuration.MemoryConfigurationOptions;
|
||||
public pathSeparator(value: string): org.bukkit.configuration.MemoryConfigurationOptions;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace configuration {
|
||||
namespace file {
|
||||
// @ts-ignore
|
||||
abstract class FileConfiguration {
|
||||
abstract class FileConfiguration extends org.bukkit.configuration.MemoryConfiguration {
|
||||
/**
|
||||
* Creates an empty {@link FileConfiguration} with no default values.
|
||||
*/
|
||||
|
@ -3,11 +3,8 @@ declare namespace org {
|
||||
namespace configuration {
|
||||
namespace file {
|
||||
// @ts-ignore
|
||||
class FileConfigurationOptions {
|
||||
class FileConfigurationOptions extends org.bukkit.configuration.MemoryConfigurationOptions {
|
||||
constructor(configuration: org.bukkit.configuration.MemoryConfiguration)
|
||||
public configuration(): org.bukkit.configuration.file.FileConfiguration;
|
||||
public copyDefaults(value: boolean): org.bukkit.configuration.file.FileConfigurationOptions;
|
||||
public pathSeparator(value: string): org.bukkit.configuration.file.FileConfigurationOptions;
|
||||
/**
|
||||
* Gets the header that will be applied to the top of the saved output.
|
||||
* <p>
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace configuration {
|
||||
namespace file {
|
||||
// @ts-ignore
|
||||
class YamlConfiguration {
|
||||
class YamlConfiguration extends org.bukkit.configuration.file.FileConfiguration {
|
||||
constructor()
|
||||
protected static COMMENT_PREFIX: string;
|
||||
protected static BLANK_CONFIG: string;
|
||||
@ -12,7 +12,6 @@ declare namespace org {
|
||||
protected convertMapsToSections(input: Map<any, any> /*java.util.Map*/, section: org.bukkit.configuration.ConfigurationSection): void;
|
||||
protected parseHeader(input: string): string;
|
||||
protected buildHeader(): string;
|
||||
public options(): org.bukkit.configuration.file.YamlConfigurationOptions;
|
||||
/**
|
||||
* Creates a new {@link YamlConfiguration}, loading from the given file.
|
||||
* <p>
|
||||
|
@ -3,13 +3,9 @@ declare namespace org {
|
||||
namespace configuration {
|
||||
namespace file {
|
||||
// @ts-ignore
|
||||
class YamlConfigurationOptions {
|
||||
class YamlConfigurationOptions extends org.bukkit.configuration.file.FileConfigurationOptions {
|
||||
constructor(configuration: org.bukkit.configuration.file.YamlConfiguration)
|
||||
public configuration(): org.bukkit.configuration.file.YamlConfiguration;
|
||||
public copyDefaults(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions;
|
||||
public pathSeparator(value: string): org.bukkit.configuration.file.YamlConfigurationOptions;
|
||||
public header(value: string): org.bukkit.configuration.file.YamlConfigurationOptions;
|
||||
public copyHeader(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions;
|
||||
/**
|
||||
* Gets how much spaces should be used to indent each line.
|
||||
* <p>
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace conversations {
|
||||
// @ts-ignore
|
||||
abstract class BooleanPrompt {
|
||||
abstract class BooleanPrompt extends org.bukkit.conversations.ValidatingPrompt {
|
||||
constructor()
|
||||
protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
|
||||
protected acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt;
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace conversations {
|
||||
// @ts-ignore
|
||||
abstract class FixedSetPrompt {
|
||||
abstract class FixedSetPrompt extends org.bukkit.conversations.ValidatingPrompt {
|
||||
/**
|
||||
* Creates a FixedSetPrompt from a set of strings.
|
||||
* <p>
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace conversations {
|
||||
// @ts-ignore
|
||||
abstract class NumericPrompt {
|
||||
abstract class NumericPrompt extends org.bukkit.conversations.ValidatingPrompt {
|
||||
constructor()
|
||||
protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
|
||||
/**
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace conversations {
|
||||
// @ts-ignore
|
||||
abstract class PlayerNamePrompt {
|
||||
abstract class PlayerNamePrompt extends org.bukkit.conversations.ValidatingPrompt {
|
||||
constructor(plugin: org.bukkit.plugin.Plugin)
|
||||
protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
|
||||
protected acceptValidatedInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt;
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace conversations {
|
||||
// @ts-ignore
|
||||
abstract class RegexPrompt {
|
||||
abstract class RegexPrompt extends org.bukkit.conversations.ValidatingPrompt {
|
||||
constructor(regex: string)
|
||||
constructor(pattern: any)
|
||||
protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean;
|
||||
|
@ -2,7 +2,7 @@ declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace enchantments {
|
||||
// @ts-ignore
|
||||
class EnchantmentWrapper {
|
||||
class EnchantmentWrapper extends org.bukkit.enchantments.Enchantment {
|
||||
constructor(name: string)
|
||||
/**
|
||||
* Gets the enchantment bound to this wrapper
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockBreakEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockBreakEvent extends org.bukkit.event.block.BlockExpEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockBurnEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockBurnEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(block: org.bukkit.block.Block)
|
||||
constructor(block: org.bukkit.block.Block, ignitingBlock: org.bukkit.block.Block)
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockCanBuildEvent {
|
||||
class BlockCanBuildEvent extends org.bukkit.event.block.BlockEvent {
|
||||
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;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockCookEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockCookEvent extends org.bukkit.event.block.BlockEvent 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
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockDamageEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockDamageEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockDispenseArmorEvent {
|
||||
class BlockDispenseArmorEvent extends org.bukkit.event.block.BlockDispenseEvent {
|
||||
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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockDispenseEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockDispenseEvent extends org.bukkit.event.block.BlockEvent 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
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockDropItemEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockDropItemEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
abstract class BlockEvent {
|
||||
abstract class BlockEvent extends org.bukkit.event.Event {
|
||||
constructor(theBlock: org.bukkit.block.Block)
|
||||
protected block: org.bukkit.block.Block;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockExpEvent {
|
||||
class BlockExpEvent extends org.bukkit.event.block.BlockEvent {
|
||||
constructor(block: org.bukkit.block.Block, exp: number)
|
||||
/**
|
||||
* Get the experience dropped by the block after the event has processed
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockExplodeEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockExplodeEvent extends org.bukkit.event.block.BlockEvent 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;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockFadeEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockFadeEvent extends org.bukkit.event.block.BlockEvent 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
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockFertilizeEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockFertilizeEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockFormEvent {
|
||||
class BlockFormEvent extends org.bukkit.event.block.BlockGrowEvent {
|
||||
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
|
||||
public getHandlers(): org.bukkit.event.HandlerList;
|
||||
public static getHandlerList(): org.bukkit.event.HandlerList;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockFromToEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockFromToEvent extends org.bukkit.event.block.BlockEvent 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;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockGrowEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockGrowEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockIgniteEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockIgniteEvent extends org.bukkit.event.block.BlockEvent 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)
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockMultiPlaceEvent {
|
||||
class BlockMultiPlaceEvent extends org.bukkit.event.block.BlockPlaceEvent {
|
||||
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
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockPhysicsEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockPhysicsEvent extends org.bukkit.event.block.BlockEvent 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)
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
abstract class BlockPistonEvent implements org.bukkit.event.Cancellable {
|
||||
abstract class BlockPistonEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(block: org.bukkit.block.Block, direction: org.bukkit.block.BlockFace)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancelled: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockPistonExtendEvent {
|
||||
class BlockPistonExtendEvent extends org.bukkit.event.block.BlockPistonEvent {
|
||||
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)
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockPistonRetractEvent {
|
||||
class BlockPistonRetractEvent extends org.bukkit.event.block.BlockPistonEvent {
|
||||
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
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockPlaceEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockPlaceEvent extends org.bukkit.event.block.BlockEvent 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;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockRedstoneEvent {
|
||||
class BlockRedstoneEvent extends org.bukkit.event.block.BlockEvent {
|
||||
constructor(block: org.bukkit.block.Block, oldCurrent: number, newCurrent: number)
|
||||
/**
|
||||
* Gets the old current of this block
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockShearEntityEvent implements org.bukkit.event.Cancellable {
|
||||
class BlockShearEntityEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class BlockSpreadEvent {
|
||||
class BlockSpreadEvent extends org.bukkit.event.block.BlockFormEvent {
|
||||
constructor(block: org.bukkit.block.Block, source: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
|
||||
/**
|
||||
* Gets the source block involved in this event.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class CauldronLevelChangeEvent implements org.bukkit.event.Cancellable {
|
||||
class CauldronLevelChangeEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class EntityBlockFormEvent {
|
||||
class EntityBlockFormEvent extends org.bukkit.event.block.BlockFormEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block, blockstate: org.bukkit.block.BlockState)
|
||||
/**
|
||||
* Get the entity that formed the block.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class FluidLevelChangeEvent implements org.bukkit.event.Cancellable {
|
||||
class FluidLevelChangeEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class LeavesDecayEvent implements org.bukkit.event.Cancellable {
|
||||
class LeavesDecayEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(block: org.bukkit.block.Block)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class MoistureChangeEvent implements org.bukkit.event.Cancellable {
|
||||
class MoistureChangeEvent extends org.bukkit.event.block.BlockEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState)
|
||||
/**
|
||||
* Gets the new state of the affected block.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class NotePlayEvent implements org.bukkit.event.Cancellable {
|
||||
class NotePlayEvent extends org.bukkit.event.block.BlockEvent 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;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class SignChangeEvent implements org.bukkit.event.Cancellable {
|
||||
class SignChangeEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace block {
|
||||
// @ts-ignore
|
||||
class SpongeAbsorbEvent implements org.bukkit.event.Cancellable {
|
||||
class SpongeAbsorbEvent extends org.bukkit.event.block.BlockEvent 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.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace enchantment {
|
||||
// @ts-ignore
|
||||
class EnchantItemEvent implements org.bukkit.event.Cancellable {
|
||||
class EnchantItemEvent extends org.bukkit.event.inventory.InventoryEvent 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<any, any> /*java.util.Map*/, i: number)
|
||||
/**
|
||||
* Gets the player enchanting the item
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace enchantment {
|
||||
// @ts-ignore
|
||||
class PrepareItemEnchantEvent implements org.bukkit.event.Cancellable {
|
||||
class PrepareItemEnchantEvent extends org.bukkit.event.inventory.InventoryEvent 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, offers: org.bukkit.enchantments.EnchantmentOffer, bonus: number)
|
||||
/**
|
||||
* Gets the player enchanting the item
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class AreaEffectCloudApplyEvent implements org.bukkit.event.Cancellable {
|
||||
class AreaEffectCloudApplyEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.AreaEffectCloud, affectedEntities: any[] /*java.util.List*/)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class BatToggleSleepEvent implements org.bukkit.event.Cancellable {
|
||||
class BatToggleSleepEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Bat, awake: boolean)
|
||||
/**
|
||||
* Get whether or not the bat is attempting to awaken.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class CreatureSpawnEvent {
|
||||
class CreatureSpawnEvent extends org.bukkit.event.entity.EntitySpawnEvent {
|
||||
constructor(spawnee: org.bukkit.entity.LivingEntity, spawnReason: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class CreeperPowerEvent implements org.bukkit.event.Cancellable {
|
||||
class CreeperPowerEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(creeper: org.bukkit.entity.Creeper, bolt: org.bukkit.entity.LightningStrike, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause)
|
||||
constructor(creeper: org.bukkit.entity.Creeper, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause)
|
||||
public isCancelled(): boolean;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EnderDragonChangePhaseEvent implements org.bukkit.event.Cancellable {
|
||||
class EnderDragonChangePhaseEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(enderDragon: org.bukkit.entity.EnderDragon, currentPhase: org.bukkit.entity.EnderDragon.Phase, newPhase: org.bukkit.entity.EnderDragon.Phase)
|
||||
public getEntity(): org.bukkit.entity.EnderDragon;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityAirChangeEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityAirChangeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Entity, amount: number)
|
||||
/**
|
||||
* Gets the amount of air the entity has left (measured in ticks).
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityBreakDoorEvent {
|
||||
class EntityBreakDoorEvent extends org.bukkit.event.entity.EntityChangeBlockEvent {
|
||||
constructor(entity: org.bukkit.entity.LivingEntity, targetBlock: org.bukkit.block.Block)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityBreedEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityBreedEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(child: org.bukkit.entity.LivingEntity, mother: org.bukkit.entity.LivingEntity, father: org.bukkit.entity.LivingEntity, breeder: org.bukkit.entity.LivingEntity, bredWith: org.bukkit.inventory.ItemStack, experience: number)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityChangeBlockEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityChangeBlockEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Entity, block: org.bukkit.block.Block, to: org.bukkit.block.data.BlockData)
|
||||
/**
|
||||
* Gets the block the entity is changing
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityCombustByBlockEvent {
|
||||
class EntityCombustByBlockEvent extends org.bukkit.event.entity.EntityCombustEvent {
|
||||
constructor(combuster: org.bukkit.block.Block, combustee: org.bukkit.entity.Entity, duration: number)
|
||||
/**
|
||||
* The combuster can be lava or a block that is on fire.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityCombustByEntityEvent {
|
||||
class EntityCombustByEntityEvent extends org.bukkit.event.entity.EntityCombustEvent {
|
||||
constructor(combuster: org.bukkit.entity.Entity, combustee: org.bukkit.entity.Entity, duration: number)
|
||||
/**
|
||||
* Get the entity that caused the combustion event.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityCombustEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityCombustEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(combustee: org.bukkit.entity.Entity, duration: number)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityCreatePortalEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityCreatePortalEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.LivingEntity, blocks: any[] /*java.util.List*/, type: org.bukkit.PortalType)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityDamageByBlockEvent {
|
||||
class EntityDamageByBlockEvent extends org.bukkit.event.entity.EntityDamageEvent {
|
||||
constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number)
|
||||
constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map<any, any> /*java.util.Map*/, modifierFunctions: Map<any, any> /*java.util.Map*/)
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityDamageByEntityEvent {
|
||||
class EntityDamageByEntityEvent extends org.bukkit.event.entity.EntityDamageEvent {
|
||||
constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number)
|
||||
constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map<any, any> /*java.util.Map*/, modifierFunctions: Map<any, any> /*java.util.Map*/)
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityDamageEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityDamageEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number)
|
||||
constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map<any, any> /*java.util.Map*/, modifierFunctions: Map<any, any> /*java.util.Map*/)
|
||||
public isCancelled(): boolean;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityDeathEvent {
|
||||
class EntityDeathEvent extends org.bukkit.event.entity.EntityEvent {
|
||||
constructor(entity: org.bukkit.entity.LivingEntity, drops: any[] /*java.util.List*/)
|
||||
constructor(what: org.bukkit.entity.LivingEntity, drops: any[] /*java.util.List*/, droppedExp: number)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityDropItemEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityDropItemEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.Entity, drop: org.bukkit.entity.Item)
|
||||
/**
|
||||
* Gets the Item created by the entity
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
abstract class EntityEvent {
|
||||
abstract class EntityEvent extends org.bukkit.event.Event {
|
||||
constructor(what: org.bukkit.entity.Entity)
|
||||
protected entity: org.bukkit.entity.Entity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityExplodeEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityExplodeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Entity, location: org.bukkit.Location, blocks: any[] /*java.util.List*/, yield: number)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityInteractEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityInteractEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block)
|
||||
protected block: org.bukkit.block.Block;
|
||||
public isCancelled(): boolean;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPickupItemEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityPickupItemEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.LivingEntity, item: org.bukkit.entity.Item, remaining: number)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPlaceEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityPlaceEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.Entity, player: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace)
|
||||
/**
|
||||
* Returns the player placing the entity
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPortalEnterEvent {
|
||||
class EntityPortalEnterEvent extends org.bukkit.event.entity.EntityEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, location: org.bukkit.Location)
|
||||
/**
|
||||
* Gets the portal block the entity is touching
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPortalEvent {
|
||||
class EntityPortalEvent extends org.bukkit.event.entity.EntityTeleportEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location)
|
||||
public getHandlers(): org.bukkit.event.HandlerList;
|
||||
public static getHandlerList(): org.bukkit.event.HandlerList;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPortalExitEvent {
|
||||
class EntityPortalExitEvent extends org.bukkit.event.entity.EntityTeleportEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location, before: org.bukkit.util.Vector, after: org.bukkit.util.Vector)
|
||||
/**
|
||||
* Gets a copy of the velocity that the entity has before entering the
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPoseChangeEvent {
|
||||
class EntityPoseChangeEvent extends org.bukkit.event.entity.EntityEvent {
|
||||
constructor(who: org.bukkit.entity.Entity, pose: org.bukkit.entity.Pose)
|
||||
/**
|
||||
* Gets the entity's new pose.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityPotionEffectEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityPotionEffectEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(livingEntity: org.bukkit.entity.LivingEntity, oldEffect: org.bukkit.potion.PotionEffect, newEffect: org.bukkit.potion.PotionEffect, cause: org.bukkit.event.entity.EntityPotionEffectEvent.Cause, action: org.bukkit.event.entity.EntityPotionEffectEvent.Action, override: boolean)
|
||||
/**
|
||||
* Gets the old potion effect of the changed type, which will be removed.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityRegainHealthEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityRegainHealthEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.Entity, amount: number, regainReason: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason)
|
||||
/**
|
||||
* Gets the amount of regained health
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityResurrectEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityResurrectEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.LivingEntity)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
public isCancelled(): boolean;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityShootBowEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityShootBowEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(shooter: org.bukkit.entity.LivingEntity, bow: org.bukkit.inventory.ItemStack, projectile: org.bukkit.entity.Entity, force: number)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntitySpawnEvent implements org.bukkit.event.Cancellable {
|
||||
class EntitySpawnEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(spawnee: org.bukkit.entity.Entity)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityTameEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityTameEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.LivingEntity, owner: org.bukkit.entity.AnimalTamer)
|
||||
public getEntity(): org.bukkit.entity.LivingEntity;
|
||||
public isCancelled(): boolean;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityTargetEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityTargetEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityTargetLivingEntityEvent {
|
||||
class EntityTargetLivingEntityEvent extends org.bukkit.event.entity.EntityTargetEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.LivingEntity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason)
|
||||
public getTarget(): org.bukkit.entity.LivingEntity;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityTeleportEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityTeleportEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityToggleGlideEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityToggleGlideEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(who: org.bukkit.entity.LivingEntity, isGliding: boolean)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityToggleSwimEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityToggleSwimEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(who: org.bukkit.entity.LivingEntity, isSwimming: boolean)
|
||||
public isCancelled(): boolean;
|
||||
public setCancelled(cancel: boolean): void;
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityTransformEvent implements org.bukkit.event.Cancellable {
|
||||
class EntityTransformEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(original: org.bukkit.entity.Entity, convertedList: any[] /*java.util.List*/, transformReason: org.bukkit.event.entity.EntityTransformEvent.TransformReason)
|
||||
/**
|
||||
* Gets the entity that the original entity was transformed to.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class EntityUnleashEvent {
|
||||
class EntityUnleashEvent extends org.bukkit.event.entity.EntityEvent {
|
||||
constructor(entity: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason)
|
||||
/**
|
||||
* Returns the reason for the unleashing.
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class ExpBottleEvent {
|
||||
class ExpBottleEvent extends org.bukkit.event.entity.ProjectileHitEvent {
|
||||
constructor(bottle: org.bukkit.entity.ThrownExpBottle, exp: number)
|
||||
public getEntity(): org.bukkit.entity.ThrownExpBottle;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ declare namespace org {
|
||||
namespace event {
|
||||
namespace entity {
|
||||
// @ts-ignore
|
||||
class ExplosionPrimeEvent implements org.bukkit.event.Cancellable {
|
||||
class ExplosionPrimeEvent extends org.bukkit.event.entity.EntityEvent implements org.bukkit.event.Cancellable {
|
||||
constructor(what: org.bukkit.entity.Entity, radius: number, fire: boolean)
|
||||
constructor(explosive: org.bukkit.entity.Explosive)
|
||||
public isCancelled(): boolean;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user