feat: add bukkit sponge jdk type

This commit is contained in:
2019-11-07 15:13:28 +08:00
parent 9fa3ed704a
commit be59ae480b
4632 changed files with 319971 additions and 0 deletions

View File

@@ -0,0 +1,958 @@
/// <reference path="./org.bukkit.Achievement.d.ts" />
/// <reference path="./org.bukkit.Art.d.ts" />
/// <reference path="./org.bukkit.Axis.d.ts" />
/// <reference path="./org.bukkit.BanEntry.d.ts" />
/// <reference path="./org.bukkit.BanList.Type.d.ts" />
/// <reference path="./org.bukkit.BanList.d.ts" />
/// <reference path="./org.bukkit.BlockChangeDelegate.d.ts" />
/// <reference path="./org.bukkit.Bukkit.d.ts" />
/// <reference path="./org.bukkit.ChatColor.d.ts" />
/// <reference path="./org.bukkit.Chunk.d.ts" />
/// <reference path="./org.bukkit.ChunkSnapshot.d.ts" />
/// <reference path="./org.bukkit.CoalType.d.ts" />
/// <reference path="./org.bukkit.Color.d.ts" />
/// <reference path="./org.bukkit.CropState.d.ts" />
/// <reference path="./org.bukkit.Difficulty.d.ts" />
/// <reference path="./org.bukkit.DyeColor.d.ts" />
/// <reference path="./org.bukkit.Effect.Type.d.ts" />
/// <reference path="./org.bukkit.Effect.d.ts" />
/// <reference path="./org.bukkit.EntityEffect.d.ts" />
/// <reference path="./org.bukkit.FireworkEffect.Builder.d.ts" />
/// <reference path="./org.bukkit.FireworkEffect.Type.d.ts" />
/// <reference path="./org.bukkit.FireworkEffect.d.ts" />
/// <reference path="./org.bukkit.FluidCollisionMode.d.ts" />
/// <reference path="./org.bukkit.GameMode.d.ts" />
/// <reference path="./org.bukkit.GameRule.d.ts" />
/// <reference path="./org.bukkit.GrassSpecies.d.ts" />
/// <reference path="./org.bukkit.Instrument.d.ts" />
/// <reference path="./org.bukkit.Keyed.d.ts" />
/// <reference path="./org.bukkit.Location.d.ts" />
/// <reference path="./org.bukkit.Material.d.ts" />
/// <reference path="./org.bukkit.Nameable.d.ts" />
/// <reference path="./org.bukkit.NamespacedKey.d.ts" />
/// <reference path="./org.bukkit.NetherWartsState.d.ts" />
/// <reference path="./org.bukkit.Note.Tone.d.ts" />
/// <reference path="./org.bukkit.Note.d.ts" />
/// <reference path="./org.bukkit.OfflinePlayer.d.ts" />
/// <reference path="./org.bukkit.Particle.DustOptions.d.ts" />
/// <reference path="./org.bukkit.Particle.d.ts" />
/// <reference path="./org.bukkit.PortalType.d.ts" />
/// <reference path="./org.bukkit.Registry.SimpleRegistry.d.ts" />
/// <reference path="./org.bukkit.Registry.d.ts" />
/// <reference path="./org.bukkit.Rotation.d.ts" />
/// <reference path="./org.bukkit.SandstoneType.d.ts" />
/// <reference path="./org.bukkit.Server.d.ts" />
/// <reference path="./org.bukkit.SkullType.d.ts" />
/// <reference path="./org.bukkit.Sound.d.ts" />
/// <reference path="./org.bukkit.SoundCategory.d.ts" />
/// <reference path="./org.bukkit.Statistic.Type.d.ts" />
/// <reference path="./org.bukkit.Statistic.d.ts" />
/// <reference path="./org.bukkit.StructureType.d.ts" />
/// <reference path="./org.bukkit.Tag.d.ts" />
/// <reference path="./org.bukkit.TreeSpecies.d.ts" />
/// <reference path="./org.bukkit.TreeType.d.ts" />
/// <reference path="./org.bukkit.UndefinedNullability.d.ts" />
/// <reference path="./org.bukkit.UnsafeValues.d.ts" />
/// <reference path="./org.bukkit.Utility.d.ts" />
/// <reference path="./org.bukkit.Warning.WarningState.d.ts" />
/// <reference path="./org.bukkit.Warning.d.ts" />
/// <reference path="./org.bukkit.WeatherType.d.ts" />
/// <reference path="./org.bukkit.World.Environment.d.ts" />
/// <reference path="./org.bukkit.World.d.ts" />
/// <reference path="./org.bukkit.WorldBorder.d.ts" />
/// <reference path="./org.bukkit.WorldCreator.d.ts" />
/// <reference path="./org.bukkit.WorldType.d.ts" />
/// <reference path="./org.bukkit.advancement.Advancement.d.ts" />
/// <reference path="./org.bukkit.advancement.AdvancementProgress.d.ts" />
/// <reference path="./org.bukkit.attribute.Attributable.d.ts" />
/// <reference path="./org.bukkit.attribute.Attribute.d.ts" />
/// <reference path="./org.bukkit.attribute.AttributeInstance.d.ts" />
/// <reference path="./org.bukkit.attribute.AttributeModifier.Operation.d.ts" />
/// <reference path="./org.bukkit.attribute.AttributeModifier.d.ts" />
/// <reference path="./org.bukkit.block.Banner.d.ts" />
/// <reference path="./org.bukkit.block.Barrel.d.ts" />
/// <reference path="./org.bukkit.block.Beacon.d.ts" />
/// <reference path="./org.bukkit.block.Bed.d.ts" />
/// <reference path="./org.bukkit.block.Bell.d.ts" />
/// <reference path="./org.bukkit.block.Biome.d.ts" />
/// <reference path="./org.bukkit.block.BlastFurnace.d.ts" />
/// <reference path="./org.bukkit.block.Block.d.ts" />
/// <reference path="./org.bukkit.block.BlockFace.d.ts" />
/// <reference path="./org.bukkit.block.BlockState.d.ts" />
/// <reference path="./org.bukkit.block.BrewingStand.d.ts" />
/// <reference path="./org.bukkit.block.Campfire.d.ts" />
/// <reference path="./org.bukkit.block.Chest.d.ts" />
/// <reference path="./org.bukkit.block.CommandBlock.d.ts" />
/// <reference path="./org.bukkit.block.Comparator.d.ts" />
/// <reference path="./org.bukkit.block.Conduit.d.ts" />
/// <reference path="./org.bukkit.block.Container.d.ts" />
/// <reference path="./org.bukkit.block.CreatureSpawner.d.ts" />
/// <reference path="./org.bukkit.block.DaylightDetector.d.ts" />
/// <reference path="./org.bukkit.block.Dispenser.d.ts" />
/// <reference path="./org.bukkit.block.DoubleChest.d.ts" />
/// <reference path="./org.bukkit.block.Dropper.d.ts" />
/// <reference path="./org.bukkit.block.EnchantingTable.d.ts" />
/// <reference path="./org.bukkit.block.EndGateway.d.ts" />
/// <reference path="./org.bukkit.block.EnderChest.d.ts" />
/// <reference path="./org.bukkit.block.FlowerPot.d.ts" />
/// <reference path="./org.bukkit.block.Furnace.d.ts" />
/// <reference path="./org.bukkit.block.Hopper.d.ts" />
/// <reference path="./org.bukkit.block.Jigsaw.d.ts" />
/// <reference path="./org.bukkit.block.Jukebox.d.ts" />
/// <reference path="./org.bukkit.block.Lectern.d.ts" />
/// <reference path="./org.bukkit.block.Lockable.d.ts" />
/// <reference path="./org.bukkit.block.NoteBlock.d.ts" />
/// <reference path="./org.bukkit.block.PistonMoveReaction.d.ts" />
/// <reference path="./org.bukkit.block.ShulkerBox.d.ts" />
/// <reference path="./org.bukkit.block.Sign.d.ts" />
/// <reference path="./org.bukkit.block.Skull.d.ts" />
/// <reference path="./org.bukkit.block.Smoker.d.ts" />
/// <reference path="./org.bukkit.block.Structure.d.ts" />
/// <reference path="./org.bukkit.block.TileState.d.ts" />
/// <reference path="./org.bukkit.block.banner.Pattern.d.ts" />
/// <reference path="./org.bukkit.block.banner.PatternType.d.ts" />
/// <reference path="./org.bukkit.block.data.Ageable.d.ts" />
/// <reference path="./org.bukkit.block.data.AnaloguePowerable.d.ts" />
/// <reference path="./org.bukkit.block.data.Attachable.d.ts" />
/// <reference path="./org.bukkit.block.data.Bisected.Half.d.ts" />
/// <reference path="./org.bukkit.block.data.Bisected.d.ts" />
/// <reference path="./org.bukkit.block.data.BlockData.d.ts" />
/// <reference path="./org.bukkit.block.data.Directional.d.ts" />
/// <reference path="./org.bukkit.block.data.Levelled.d.ts" />
/// <reference path="./org.bukkit.block.data.Lightable.d.ts" />
/// <reference path="./org.bukkit.block.data.MultipleFacing.d.ts" />
/// <reference path="./org.bukkit.block.data.Openable.d.ts" />
/// <reference path="./org.bukkit.block.data.Orientable.d.ts" />
/// <reference path="./org.bukkit.block.data.Powerable.d.ts" />
/// <reference path="./org.bukkit.block.data.Rail.Shape.d.ts" />
/// <reference path="./org.bukkit.block.data.Rail.d.ts" />
/// <reference path="./org.bukkit.block.data.Rotatable.d.ts" />
/// <reference path="./org.bukkit.block.data.Snowable.d.ts" />
/// <reference path="./org.bukkit.block.data.Waterlogged.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bamboo.Leaves.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bamboo.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bed.Part.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bed.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bell.Attachment.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Bell.d.ts" />
/// <reference path="./org.bukkit.block.data.type.BrewingStand.d.ts" />
/// <reference path="./org.bukkit.block.data.type.BubbleColumn.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Cake.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Campfire.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Chest.Type.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Chest.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Cocoa.d.ts" />
/// <reference path="./org.bukkit.block.data.type.CommandBlock.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Comparator.Mode.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Comparator.d.ts" />
/// <reference path="./org.bukkit.block.data.type.CoralWallFan.d.ts" />
/// <reference path="./org.bukkit.block.data.type.DaylightDetector.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Dispenser.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Door.Hinge.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Door.d.ts" />
/// <reference path="./org.bukkit.block.data.type.EndPortalFrame.d.ts" />
/// <reference path="./org.bukkit.block.data.type.EnderChest.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Farmland.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Fence.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Fire.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Furnace.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Gate.d.ts" />
/// <reference path="./org.bukkit.block.data.type.GlassPane.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Hopper.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Jukebox.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Ladder.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Lantern.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Leaves.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Lectern.d.ts" />
/// <reference path="./org.bukkit.block.data.type.NoteBlock.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Observer.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Piston.d.ts" />
/// <reference path="./org.bukkit.block.data.type.PistonHead.d.ts" />
/// <reference path="./org.bukkit.block.data.type.RedstoneRail.d.ts" />
/// <reference path="./org.bukkit.block.data.type.RedstoneWallTorch.d.ts" />
/// <reference path="./org.bukkit.block.data.type.RedstoneWire.Connection.d.ts" />
/// <reference path="./org.bukkit.block.data.type.RedstoneWire.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Repeater.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Sapling.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Scaffolding.d.ts" />
/// <reference path="./org.bukkit.block.data.type.SeaPickle.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Sign.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Slab.Type.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Slab.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Snow.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Stairs.Shape.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Stairs.d.ts" />
/// <reference path="./org.bukkit.block.data.type.StructureBlock.Mode.d.ts" />
/// <reference path="./org.bukkit.block.data.type.StructureBlock.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Switch.Face.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Switch.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TNT.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TechnicalPiston.Type.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TechnicalPiston.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TrapDoor.d.ts" />
/// <reference path="./org.bukkit.block.data.type.Tripwire.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TripwireHook.d.ts" />
/// <reference path="./org.bukkit.block.data.type.TurtleEgg.d.ts" />
/// <reference path="./org.bukkit.block.data.type.WallSign.d.ts" />
/// <reference path="./org.bukkit.block.structure.Mirror.d.ts" />
/// <reference path="./org.bukkit.block.structure.StructureRotation.d.ts" />
/// <reference path="./org.bukkit.block.structure.UsageMode.d.ts" />
/// <reference path="./org.bukkit.boss.BarColor.d.ts" />
/// <reference path="./org.bukkit.boss.BarFlag.d.ts" />
/// <reference path="./org.bukkit.boss.BarStyle.d.ts" />
/// <reference path="./org.bukkit.boss.BossBar.d.ts" />
/// <reference path="./org.bukkit.boss.KeyedBossBar.d.ts" />
/// <reference path="./org.bukkit.command.BlockCommandSender.d.ts" />
/// <reference path="./org.bukkit.command.Command.d.ts" />
/// <reference path="./org.bukkit.command.CommandException.d.ts" />
/// <reference path="./org.bukkit.command.CommandExecutor.d.ts" />
/// <reference path="./org.bukkit.command.CommandMap.d.ts" />
/// <reference path="./org.bukkit.command.CommandSender.d.ts" />
/// <reference path="./org.bukkit.command.ConsoleCommandSender.d.ts" />
/// <reference path="./org.bukkit.command.FormattedCommandAlias.d.ts" />
/// <reference path="./org.bukkit.command.MultipleCommandAlias.d.ts" />
/// <reference path="./org.bukkit.command.PluginCommand.d.ts" />
/// <reference path="./org.bukkit.command.PluginCommandYamlParser.d.ts" />
/// <reference path="./org.bukkit.command.PluginIdentifiableCommand.d.ts" />
/// <reference path="./org.bukkit.command.ProxiedCommandSender.d.ts" />
/// <reference path="./org.bukkit.command.RemoteConsoleCommandSender.d.ts" />
/// <reference path="./org.bukkit.command.SimpleCommandMap.d.ts" />
/// <reference path="./org.bukkit.command.TabCompleter.d.ts" />
/// <reference path="./org.bukkit.command.TabExecutor.d.ts" />
/// <reference path="./org.bukkit.command.defaults.BukkitCommand.d.ts" />
/// <reference path="./org.bukkit.command.defaults.HelpCommand.d.ts" />
/// <reference path="./org.bukkit.command.defaults.PluginsCommand.d.ts" />
/// <reference path="./org.bukkit.command.defaults.ReloadCommand.d.ts" />
/// <reference path="./org.bukkit.command.defaults.TimingsCommand.d.ts" />
/// <reference path="./org.bukkit.command.defaults.VersionCommand.d.ts" />
/// <reference path="./org.bukkit.configuration.Configuration.d.ts" />
/// <reference path="./org.bukkit.configuration.ConfigurationOptions.d.ts" />
/// <reference path="./org.bukkit.configuration.ConfigurationSection.d.ts" />
/// <reference path="./org.bukkit.configuration.InvalidConfigurationException.d.ts" />
/// <reference path="./org.bukkit.configuration.MemoryConfiguration.d.ts" />
/// <reference path="./org.bukkit.configuration.MemoryConfigurationOptions.d.ts" />
/// <reference path="./org.bukkit.configuration.MemorySection.d.ts" />
/// <reference path="./org.bukkit.configuration.file.FileConfiguration.d.ts" />
/// <reference path="./org.bukkit.configuration.file.FileConfigurationOptions.d.ts" />
/// <reference path="./org.bukkit.configuration.file.YamlConfiguration.d.ts" />
/// <reference path="./org.bukkit.configuration.file.YamlConfigurationOptions.d.ts" />
/// <reference path="./org.bukkit.configuration.file.YamlConstructor.d.ts" />
/// <reference path="./org.bukkit.configuration.file.YamlRepresenter.d.ts" />
/// <reference path="./org.bukkit.configuration.serialization.ConfigurationSerializable.d.ts" />
/// <reference path="./org.bukkit.configuration.serialization.ConfigurationSerialization.d.ts" />
/// <reference path="./org.bukkit.configuration.serialization.DelegateDeserialization.d.ts" />
/// <reference path="./org.bukkit.configuration.serialization.SerializableAs.d.ts" />
/// <reference path="./org.bukkit.conversations.BooleanPrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.Conversable.d.ts" />
/// <reference path="./org.bukkit.conversations.Conversation.ConversationState.d.ts" />
/// <reference path="./org.bukkit.conversations.Conversation.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationAbandonedEvent.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationAbandonedListener.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationCanceller.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationContext.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationFactory.d.ts" />
/// <reference path="./org.bukkit.conversations.ConversationPrefix.d.ts" />
/// <reference path="./org.bukkit.conversations.ExactMatchConversationCanceller.d.ts" />
/// <reference path="./org.bukkit.conversations.FixedSetPrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.InactivityConversationCanceller.d.ts" />
/// <reference path="./org.bukkit.conversations.ManuallyAbandonedConversationCanceller.d.ts" />
/// <reference path="./org.bukkit.conversations.MessagePrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.NullConversationPrefix.d.ts" />
/// <reference path="./org.bukkit.conversations.NumericPrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.PlayerNamePrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.PluginNameConversationPrefix.d.ts" />
/// <reference path="./org.bukkit.conversations.Prompt.d.ts" />
/// <reference path="./org.bukkit.conversations.RegexPrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.StringPrompt.d.ts" />
/// <reference path="./org.bukkit.conversations.ValidatingPrompt.d.ts" />
/// <reference path="./org.bukkit.enchantments.Enchantment.d.ts" />
/// <reference path="./org.bukkit.enchantments.EnchantmentOffer.d.ts" />
/// <reference path="./org.bukkit.enchantments.EnchantmentTarget.d.ts" />
/// <reference path="./org.bukkit.enchantments.EnchantmentWrapper.d.ts" />
/// <reference path="./org.bukkit.entity.AbstractArrow.PickupStatus.d.ts" />
/// <reference path="./org.bukkit.entity.AbstractArrow.d.ts" />
/// <reference path="./org.bukkit.entity.AbstractHorse.d.ts" />
/// <reference path="./org.bukkit.entity.AbstractVillager.d.ts" />
/// <reference path="./org.bukkit.entity.Ageable.d.ts" />
/// <reference path="./org.bukkit.entity.Ambient.d.ts" />
/// <reference path="./org.bukkit.entity.AnimalTamer.d.ts" />
/// <reference path="./org.bukkit.entity.Animals.d.ts" />
/// <reference path="./org.bukkit.entity.AreaEffectCloud.d.ts" />
/// <reference path="./org.bukkit.entity.ArmorStand.d.ts" />
/// <reference path="./org.bukkit.entity.Arrow.d.ts" />
/// <reference path="./org.bukkit.entity.Bat.d.ts" />
/// <reference path="./org.bukkit.entity.Blaze.d.ts" />
/// <reference path="./org.bukkit.entity.Boat.d.ts" />
/// <reference path="./org.bukkit.entity.Boss.d.ts" />
/// <reference path="./org.bukkit.entity.Cat.Type.d.ts" />
/// <reference path="./org.bukkit.entity.Cat.d.ts" />
/// <reference path="./org.bukkit.entity.CaveSpider.d.ts" />
/// <reference path="./org.bukkit.entity.ChestedHorse.d.ts" />
/// <reference path="./org.bukkit.entity.Chicken.d.ts" />
/// <reference path="./org.bukkit.entity.Cod.d.ts" />
/// <reference path="./org.bukkit.entity.ComplexEntityPart.d.ts" />
/// <reference path="./org.bukkit.entity.ComplexLivingEntity.d.ts" />
/// <reference path="./org.bukkit.entity.Cow.d.ts" />
/// <reference path="./org.bukkit.entity.Creature.d.ts" />
/// <reference path="./org.bukkit.entity.Creeper.d.ts" />
/// <reference path="./org.bukkit.entity.Damageable.d.ts" />
/// <reference path="./org.bukkit.entity.Dolphin.d.ts" />
/// <reference path="./org.bukkit.entity.Donkey.d.ts" />
/// <reference path="./org.bukkit.entity.DragonFireball.d.ts" />
/// <reference path="./org.bukkit.entity.Drowned.d.ts" />
/// <reference path="./org.bukkit.entity.Egg.d.ts" />
/// <reference path="./org.bukkit.entity.ElderGuardian.d.ts" />
/// <reference path="./org.bukkit.entity.EnderCrystal.d.ts" />
/// <reference path="./org.bukkit.entity.EnderDragon.Phase.d.ts" />
/// <reference path="./org.bukkit.entity.EnderDragon.d.ts" />
/// <reference path="./org.bukkit.entity.EnderDragonPart.d.ts" />
/// <reference path="./org.bukkit.entity.EnderPearl.d.ts" />
/// <reference path="./org.bukkit.entity.EnderSignal.d.ts" />
/// <reference path="./org.bukkit.entity.Enderman.d.ts" />
/// <reference path="./org.bukkit.entity.Endermite.d.ts" />
/// <reference path="./org.bukkit.entity.Entity.d.ts" />
/// <reference path="./org.bukkit.entity.EntityType.d.ts" />
/// <reference path="./org.bukkit.entity.Evoker.Spell.d.ts" />
/// <reference path="./org.bukkit.entity.Evoker.d.ts" />
/// <reference path="./org.bukkit.entity.EvokerFangs.d.ts" />
/// <reference path="./org.bukkit.entity.ExperienceOrb.d.ts" />
/// <reference path="./org.bukkit.entity.Explosive.d.ts" />
/// <reference path="./org.bukkit.entity.FallingBlock.d.ts" />
/// <reference path="./org.bukkit.entity.Fireball.d.ts" />
/// <reference path="./org.bukkit.entity.Firework.d.ts" />
/// <reference path="./org.bukkit.entity.Fish.d.ts" />
/// <reference path="./org.bukkit.entity.FishHook.d.ts" />
/// <reference path="./org.bukkit.entity.Flying.d.ts" />
/// <reference path="./org.bukkit.entity.Fox.Type.d.ts" />
/// <reference path="./org.bukkit.entity.Fox.d.ts" />
/// <reference path="./org.bukkit.entity.Ghast.d.ts" />
/// <reference path="./org.bukkit.entity.Giant.d.ts" />
/// <reference path="./org.bukkit.entity.Golem.d.ts" />
/// <reference path="./org.bukkit.entity.Guardian.d.ts" />
/// <reference path="./org.bukkit.entity.Hanging.d.ts" />
/// <reference path="./org.bukkit.entity.Horse.Color.d.ts" />
/// <reference path="./org.bukkit.entity.Horse.Style.d.ts" />
/// <reference path="./org.bukkit.entity.Horse.Variant.d.ts" />
/// <reference path="./org.bukkit.entity.Horse.d.ts" />
/// <reference path="./org.bukkit.entity.HumanEntity.d.ts" />
/// <reference path="./org.bukkit.entity.Husk.d.ts" />
/// <reference path="./org.bukkit.entity.Illager.d.ts" />
/// <reference path="./org.bukkit.entity.Illusioner.d.ts" />
/// <reference path="./org.bukkit.entity.IronGolem.d.ts" />
/// <reference path="./org.bukkit.entity.Item.d.ts" />
/// <reference path="./org.bukkit.entity.ItemFrame.d.ts" />
/// <reference path="./org.bukkit.entity.LargeFireball.d.ts" />
/// <reference path="./org.bukkit.entity.LeashHitch.d.ts" />
/// <reference path="./org.bukkit.entity.LightningStrike.d.ts" />
/// <reference path="./org.bukkit.entity.LingeringPotion.d.ts" />
/// <reference path="./org.bukkit.entity.LivingEntity.d.ts" />
/// <reference path="./org.bukkit.entity.Llama.Color.d.ts" />
/// <reference path="./org.bukkit.entity.Llama.d.ts" />
/// <reference path="./org.bukkit.entity.LlamaSpit.d.ts" />
/// <reference path="./org.bukkit.entity.MagmaCube.d.ts" />
/// <reference path="./org.bukkit.entity.Minecart.d.ts" />
/// <reference path="./org.bukkit.entity.Mob.d.ts" />
/// <reference path="./org.bukkit.entity.Monster.d.ts" />
/// <reference path="./org.bukkit.entity.Mule.d.ts" />
/// <reference path="./org.bukkit.entity.MushroomCow.Variant.d.ts" />
/// <reference path="./org.bukkit.entity.MushroomCow.d.ts" />
/// <reference path="./org.bukkit.entity.NPC.d.ts" />
/// <reference path="./org.bukkit.entity.Ocelot.Type.d.ts" />
/// <reference path="./org.bukkit.entity.Ocelot.d.ts" />
/// <reference path="./org.bukkit.entity.Painting.d.ts" />
/// <reference path="./org.bukkit.entity.Panda.Gene.d.ts" />
/// <reference path="./org.bukkit.entity.Panda.d.ts" />
/// <reference path="./org.bukkit.entity.Parrot.Variant.d.ts" />
/// <reference path="./org.bukkit.entity.Parrot.d.ts" />
/// <reference path="./org.bukkit.entity.Phantom.d.ts" />
/// <reference path="./org.bukkit.entity.Pig.d.ts" />
/// <reference path="./org.bukkit.entity.PigZombie.d.ts" />
/// <reference path="./org.bukkit.entity.Pillager.d.ts" />
/// <reference path="./org.bukkit.entity.Player.d.ts" />
/// <reference path="./org.bukkit.entity.PolarBear.d.ts" />
/// <reference path="./org.bukkit.entity.Pose.d.ts" />
/// <reference path="./org.bukkit.entity.Projectile.d.ts" />
/// <reference path="./org.bukkit.entity.PufferFish.d.ts" />
/// <reference path="./org.bukkit.entity.Rabbit.Type.d.ts" />
/// <reference path="./org.bukkit.entity.Rabbit.d.ts" />
/// <reference path="./org.bukkit.entity.Raider.d.ts" />
/// <reference path="./org.bukkit.entity.Ravager.d.ts" />
/// <reference path="./org.bukkit.entity.Salmon.d.ts" />
/// <reference path="./org.bukkit.entity.Sheep.d.ts" />
/// <reference path="./org.bukkit.entity.Shulker.d.ts" />
/// <reference path="./org.bukkit.entity.ShulkerBullet.d.ts" />
/// <reference path="./org.bukkit.entity.Silverfish.d.ts" />
/// <reference path="./org.bukkit.entity.Sittable.d.ts" />
/// <reference path="./org.bukkit.entity.Skeleton.SkeletonType.d.ts" />
/// <reference path="./org.bukkit.entity.Skeleton.d.ts" />
/// <reference path="./org.bukkit.entity.SkeletonHorse.d.ts" />
/// <reference path="./org.bukkit.entity.Slime.d.ts" />
/// <reference path="./org.bukkit.entity.SmallFireball.d.ts" />
/// <reference path="./org.bukkit.entity.Snowball.d.ts" />
/// <reference path="./org.bukkit.entity.Snowman.d.ts" />
/// <reference path="./org.bukkit.entity.SpectralArrow.d.ts" />
/// <reference path="./org.bukkit.entity.Spellcaster.Spell.d.ts" />
/// <reference path="./org.bukkit.entity.Spellcaster.d.ts" />
/// <reference path="./org.bukkit.entity.Spider.d.ts" />
/// <reference path="./org.bukkit.entity.SplashPotion.d.ts" />
/// <reference path="./org.bukkit.entity.Squid.d.ts" />
/// <reference path="./org.bukkit.entity.Stray.d.ts" />
/// <reference path="./org.bukkit.entity.TNTPrimed.d.ts" />
/// <reference path="./org.bukkit.entity.Tameable.d.ts" />
/// <reference path="./org.bukkit.entity.ThrownExpBottle.d.ts" />
/// <reference path="./org.bukkit.entity.ThrownPotion.d.ts" />
/// <reference path="./org.bukkit.entity.TippedArrow.d.ts" />
/// <reference path="./org.bukkit.entity.TraderLlama.d.ts" />
/// <reference path="./org.bukkit.entity.Trident.d.ts" />
/// <reference path="./org.bukkit.entity.TropicalFish.Pattern.d.ts" />
/// <reference path="./org.bukkit.entity.TropicalFish.d.ts" />
/// <reference path="./org.bukkit.entity.Turtle.d.ts" />
/// <reference path="./org.bukkit.entity.Vehicle.d.ts" />
/// <reference path="./org.bukkit.entity.Vex.d.ts" />
/// <reference path="./org.bukkit.entity.Villager.Profession.d.ts" />
/// <reference path="./org.bukkit.entity.Villager.Type.d.ts" />
/// <reference path="./org.bukkit.entity.Villager.d.ts" />
/// <reference path="./org.bukkit.entity.Vindicator.d.ts" />
/// <reference path="./org.bukkit.entity.WanderingTrader.d.ts" />
/// <reference path="./org.bukkit.entity.WaterMob.d.ts" />
/// <reference path="./org.bukkit.entity.Witch.d.ts" />
/// <reference path="./org.bukkit.entity.Wither.d.ts" />
/// <reference path="./org.bukkit.entity.WitherSkeleton.d.ts" />
/// <reference path="./org.bukkit.entity.WitherSkull.d.ts" />
/// <reference path="./org.bukkit.entity.Wolf.d.ts" />
/// <reference path="./org.bukkit.entity.Zombie.d.ts" />
/// <reference path="./org.bukkit.entity.ZombieHorse.d.ts" />
/// <reference path="./org.bukkit.entity.ZombieVillager.d.ts" />
/// <reference path="./org.bukkit.entity.memory.MemoryKey.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.CommandMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.ExplosiveMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.HopperMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.PoweredMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.RideableMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.SpawnerMinecart.d.ts" />
/// <reference path="./org.bukkit.entity.minecart.StorageMinecart.d.ts" />
/// <reference path="./org.bukkit.event.Cancellable.d.ts" />
/// <reference path="./org.bukkit.event.Event.Result.d.ts" />
/// <reference path="./org.bukkit.event.Event.d.ts" />
/// <reference path="./org.bukkit.event.EventException.d.ts" />
/// <reference path="./org.bukkit.event.EventHandler.d.ts" />
/// <reference path="./org.bukkit.event.EventPriority.d.ts" />
/// <reference path="./org.bukkit.event.HandlerList.d.ts" />
/// <reference path="./org.bukkit.event.Listener.d.ts" />
/// <reference path="./org.bukkit.event.block.Action.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockBreakEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockBurnEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockCanBuildEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockCookEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockDamageEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockDispenseArmorEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockDispenseEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockDropItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockExpEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockExplodeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockFadeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockFertilizeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockFormEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockFromToEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockGrowEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockIgniteEvent.IgniteCause.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockIgniteEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockMultiPlaceEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockPhysicsEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockPistonEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockPistonExtendEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockPistonRetractEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockPlaceEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockRedstoneEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockShearEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.BlockSpreadEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.d.ts" />
/// <reference path="./org.bukkit.event.block.CauldronLevelChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.EntityBlockFormEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.FluidLevelChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.LeavesDecayEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.MoistureChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.NotePlayEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.SignChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.block.SpongeAbsorbEvent.d.ts" />
/// <reference path="./org.bukkit.event.enchantment.EnchantItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.enchantment.PrepareItemEnchantEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.AreaEffectCloudApplyEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.BatToggleSleepEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.CreatureSpawnEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.CreeperPowerEvent.PowerCause.d.ts" />
/// <reference path="./org.bukkit.event.entity.CreeperPowerEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EnderDragonChangePhaseEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityAirChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityBreakDoorEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityBreedEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityChangeBlockEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityCombustByBlockEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityCombustByEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityCombustEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityCreatePortalEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDamageByBlockEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDamageByEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDamageEvent.DamageCause.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDamageEvent.DamageModifier.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDamageEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDeathEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityDropItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityExplodeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityInteractEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPickupItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPlaceEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPortalEnterEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPortalEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPortalExitEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPoseChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPotionEffectEvent.Action.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPotionEffectEvent.Cause.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityPotionEffectEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityRegainHealthEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityResurrectEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityShootBowEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntitySpawnEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTameEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTargetEvent.TargetReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTargetEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTargetLivingEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTeleportEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityToggleGlideEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityToggleSwimEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTransformEvent.TransformReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityTransformEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.EntityUnleashEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ExpBottleEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ExplosionPrimeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.FireworkExplodeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.FoodLevelChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.HorseJumpEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ItemDespawnEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ItemMergeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ItemSpawnEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.LingeringPotionSplashEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.PigZapEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.PigZombieAngerEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.PlayerDeathEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.PlayerLeashEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.PotionSplashEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ProjectileHitEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.ProjectileLaunchEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.SheepDyeWoolEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.SheepRegrowWoolEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.SlimeSplitEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.VillagerAcquireTradeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.d.ts" />
/// <reference path="./org.bukkit.event.entity.VillagerCareerChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.entity.VillagerReplenishTradeEvent.d.ts" />
/// <reference path="./org.bukkit.event.hanging.HangingBreakByEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.d.ts" />
/// <reference path="./org.bukkit.event.hanging.HangingBreakEvent.d.ts" />
/// <reference path="./org.bukkit.event.hanging.HangingEvent.d.ts" />
/// <reference path="./org.bukkit.event.hanging.HangingPlaceEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.BrewEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.BrewingStandFuelEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.ClickType.d.ts" />
/// <reference path="./org.bukkit.event.inventory.CraftItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.DragType.d.ts" />
/// <reference path="./org.bukkit.event.inventory.FurnaceBurnEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.FurnaceExtractEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.FurnaceSmeltEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryAction.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryClickEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryCloseEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryCreativeEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryDragEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryInteractEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryMoveItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryOpenEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryPickupItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryType.SlotType.d.ts" />
/// <reference path="./org.bukkit.event.inventory.InventoryType.d.ts" />
/// <reference path="./org.bukkit.event.inventory.PrepareAnvilEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.PrepareItemCraftEvent.d.ts" />
/// <reference path="./org.bukkit.event.inventory.TradeSelectEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.AsyncPlayerChatEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.d.ts" />
/// <reference path="./org.bukkit.event.player.AsyncPlayerPreLoginEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerAchievementAwardedEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerAdvancementDoneEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerAnimationEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerAnimationType.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerArmorStandManipulateEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBedEnterEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBedLeaveEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBucketEmptyEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBucketEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerBucketFillEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerChangedMainHandEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerChangedWorldEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerChannelEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerChatEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerChatTabCompleteEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerCommandPreprocessEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerCommandSendEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerDropItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerEditBookEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerEggThrowEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerExpChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerFishEvent.State.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerFishEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerGameModeChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerInteractAtEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerInteractEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerInteractEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerItemBreakEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerItemConsumeEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerItemDamageEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerItemHeldEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerItemMendEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerJoinEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerKickEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerLevelChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerLocaleChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerLoginEvent.Result.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerLoginEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerMoveEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerPickupArrowEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerPickupItemEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerPortalEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerPreLoginEvent.Result.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerPreLoginEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerQuitEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerRecipeDiscoverEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerRegisterChannelEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerResourcePackStatusEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerRespawnEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerRiptideEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerShearEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerStatisticIncrementEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerSwapHandItemsEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerTakeLecternBookEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerTeleportEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerToggleFlightEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerToggleSneakEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerToggleSprintEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerUnleashEntityEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerUnregisterChannelEvent.d.ts" />
/// <reference path="./org.bukkit.event.player.PlayerVelocityEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.BroadcastMessageEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.MapInitializeEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.PluginDisableEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.PluginEnableEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.PluginEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.RemoteServerCommandEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServerCommandEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServerEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServerListPingEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServerLoadEvent.LoadType.d.ts" />
/// <reference path="./org.bukkit.event.server.ServerLoadEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServiceEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServiceRegisterEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.ServiceUnregisterEvent.d.ts" />
/// <reference path="./org.bukkit.event.server.TabCompleteEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleBlockCollisionEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleCollisionEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleCreateEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleDamageEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleDestroyEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleEnterEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleEntityCollisionEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleExitEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleMoveEvent.d.ts" />
/// <reference path="./org.bukkit.event.vehicle.VehicleUpdateEvent.d.ts" />
/// <reference path="./org.bukkit.event.weather.LightningStrikeEvent.Cause.d.ts" />
/// <reference path="./org.bukkit.event.weather.LightningStrikeEvent.d.ts" />
/// <reference path="./org.bukkit.event.weather.ThunderChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.weather.WeatherChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.weather.WeatherEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.ChunkEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.ChunkLoadEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.ChunkPopulateEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.ChunkUnloadEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.PortalCreateEvent.CreateReason.d.ts" />
/// <reference path="./org.bukkit.event.world.PortalCreateEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.SpawnChangeEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.StructureGrowEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.WorldEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.WorldInitEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.WorldLoadEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.WorldSaveEvent.d.ts" />
/// <reference path="./org.bukkit.event.world.WorldUnloadEvent.d.ts" />
/// <reference path="./org.bukkit.generator.BlockPopulator.d.ts" />
/// <reference path="./org.bukkit.generator.ChunkGenerator.BiomeGrid.d.ts" />
/// <reference path="./org.bukkit.generator.ChunkGenerator.ChunkData.d.ts" />
/// <reference path="./org.bukkit.generator.ChunkGenerator.d.ts" />
/// <reference path="./org.bukkit.help.GenericCommandHelpTopic.d.ts" />
/// <reference path="./org.bukkit.help.HelpMap.d.ts" />
/// <reference path="./org.bukkit.help.HelpTopic.d.ts" />
/// <reference path="./org.bukkit.help.HelpTopicComparator.TopicNameComparator.d.ts" />
/// <reference path="./org.bukkit.help.HelpTopicComparator.d.ts" />
/// <reference path="./org.bukkit.help.HelpTopicFactory.d.ts" />
/// <reference path="./org.bukkit.help.IndexHelpTopic.d.ts" />
/// <reference path="./org.bukkit.inventory.AbstractHorseInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.AnvilInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.BeaconInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.BlastingRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.BlockInventoryHolder.d.ts" />
/// <reference path="./org.bukkit.inventory.BrewerInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.CampfireRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.CartographyInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.CookingRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.CraftingInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.DoubleChestInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.EnchantingInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.EntityEquipment.d.ts" />
/// <reference path="./org.bukkit.inventory.EquipmentSlot.d.ts" />
/// <reference path="./org.bukkit.inventory.FurnaceInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.FurnaceRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.GrindstoneInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.HorseInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.Inventory.d.ts" />
/// <reference path="./org.bukkit.inventory.InventoryHolder.d.ts" />
/// <reference path="./org.bukkit.inventory.InventoryView.Property.d.ts" />
/// <reference path="./org.bukkit.inventory.InventoryView.d.ts" />
/// <reference path="./org.bukkit.inventory.ItemFactory.d.ts" />
/// <reference path="./org.bukkit.inventory.ItemFlag.d.ts" />
/// <reference path="./org.bukkit.inventory.ItemStack.d.ts" />
/// <reference path="./org.bukkit.inventory.LecternInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.LlamaInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.LoomInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.MainHand.d.ts" />
/// <reference path="./org.bukkit.inventory.Merchant.d.ts" />
/// <reference path="./org.bukkit.inventory.MerchantInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.MerchantRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.PlayerInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.Recipe.d.ts" />
/// <reference path="./org.bukkit.inventory.RecipeChoice.ExactChoice.d.ts" />
/// <reference path="./org.bukkit.inventory.RecipeChoice.MaterialChoice.d.ts" />
/// <reference path="./org.bukkit.inventory.RecipeChoice.d.ts" />
/// <reference path="./org.bukkit.inventory.ShapedRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.ShapelessRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.SmokingRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.StonecutterInventory.d.ts" />
/// <reference path="./org.bukkit.inventory.StonecuttingRecipe.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.BannerMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.BlockDataMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.BlockStateMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.BookMeta.Generation.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.BookMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.CrossbowMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.Damageable.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.EnchantmentStorageMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.FireworkEffectMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.FireworkMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.ItemMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.KnowledgeBookMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.LeatherArmorMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.MapMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.PotionMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.Repairable.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.SkullMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.SpawnEggMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.TropicalFishBucketMeta.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.tags.CustomItemTagContainer.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.tags.ItemTagAdapterContext.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.d.ts" />
/// <reference path="./org.bukkit.inventory.meta.tags.ItemTagType.d.ts" />
/// <reference path="./org.bukkit.loot.LootContext.Builder.d.ts" />
/// <reference path="./org.bukkit.loot.LootContext.d.ts" />
/// <reference path="./org.bukkit.loot.LootTable.d.ts" />
/// <reference path="./org.bukkit.loot.LootTables.d.ts" />
/// <reference path="./org.bukkit.loot.Lootable.d.ts" />
/// <reference path="./org.bukkit.map.MapCanvas.d.ts" />
/// <reference path="./org.bukkit.map.MapCursor.Type.d.ts" />
/// <reference path="./org.bukkit.map.MapCursor.d.ts" />
/// <reference path="./org.bukkit.map.MapCursorCollection.d.ts" />
/// <reference path="./org.bukkit.map.MapFont.CharacterSprite.d.ts" />
/// <reference path="./org.bukkit.map.MapFont.d.ts" />
/// <reference path="./org.bukkit.map.MapPalette.d.ts" />
/// <reference path="./org.bukkit.map.MapRenderer.d.ts" />
/// <reference path="./org.bukkit.map.MapView.Scale.d.ts" />
/// <reference path="./org.bukkit.map.MapView.d.ts" />
/// <reference path="./org.bukkit.map.MinecraftFont.d.ts" />
/// <reference path="./org.bukkit.material.Attachable.d.ts" />
/// <reference path="./org.bukkit.material.Banner.d.ts" />
/// <reference path="./org.bukkit.material.Bed.d.ts" />
/// <reference path="./org.bukkit.material.Button.d.ts" />
/// <reference path="./org.bukkit.material.Cake.d.ts" />
/// <reference path="./org.bukkit.material.Cauldron.d.ts" />
/// <reference path="./org.bukkit.material.Chest.d.ts" />
/// <reference path="./org.bukkit.material.Coal.d.ts" />
/// <reference path="./org.bukkit.material.CocoaPlant.CocoaPlantSize.d.ts" />
/// <reference path="./org.bukkit.material.CocoaPlant.d.ts" />
/// <reference path="./org.bukkit.material.Colorable.d.ts" />
/// <reference path="./org.bukkit.material.Command.d.ts" />
/// <reference path="./org.bukkit.material.Comparator.d.ts" />
/// <reference path="./org.bukkit.material.Crops.d.ts" />
/// <reference path="./org.bukkit.material.DetectorRail.d.ts" />
/// <reference path="./org.bukkit.material.Diode.d.ts" />
/// <reference path="./org.bukkit.material.Directional.d.ts" />
/// <reference path="./org.bukkit.material.DirectionalContainer.d.ts" />
/// <reference path="./org.bukkit.material.Dispenser.d.ts" />
/// <reference path="./org.bukkit.material.Door.d.ts" />
/// <reference path="./org.bukkit.material.Dye.d.ts" />
/// <reference path="./org.bukkit.material.EnderChest.d.ts" />
/// <reference path="./org.bukkit.material.ExtendedRails.d.ts" />
/// <reference path="./org.bukkit.material.FlowerPot.d.ts" />
/// <reference path="./org.bukkit.material.Furnace.d.ts" />
/// <reference path="./org.bukkit.material.FurnaceAndDispenser.d.ts" />
/// <reference path="./org.bukkit.material.Gate.d.ts" />
/// <reference path="./org.bukkit.material.Hopper.d.ts" />
/// <reference path="./org.bukkit.material.Ladder.d.ts" />
/// <reference path="./org.bukkit.material.Leaves.d.ts" />
/// <reference path="./org.bukkit.material.Lever.d.ts" />
/// <reference path="./org.bukkit.material.LongGrass.d.ts" />
/// <reference path="./org.bukkit.material.MaterialData.d.ts" />
/// <reference path="./org.bukkit.material.MonsterEggs.d.ts" />
/// <reference path="./org.bukkit.material.Mushroom.d.ts" />
/// <reference path="./org.bukkit.material.NetherWarts.d.ts" />
/// <reference path="./org.bukkit.material.Observer.d.ts" />
/// <reference path="./org.bukkit.material.Openable.d.ts" />
/// <reference path="./org.bukkit.material.PistonBaseMaterial.d.ts" />
/// <reference path="./org.bukkit.material.PistonExtensionMaterial.d.ts" />
/// <reference path="./org.bukkit.material.PoweredRail.d.ts" />
/// <reference path="./org.bukkit.material.PressurePlate.d.ts" />
/// <reference path="./org.bukkit.material.PressureSensor.d.ts" />
/// <reference path="./org.bukkit.material.Pumpkin.d.ts" />
/// <reference path="./org.bukkit.material.Rails.d.ts" />
/// <reference path="./org.bukkit.material.Redstone.d.ts" />
/// <reference path="./org.bukkit.material.RedstoneTorch.d.ts" />
/// <reference path="./org.bukkit.material.RedstoneWire.d.ts" />
/// <reference path="./org.bukkit.material.Sandstone.d.ts" />
/// <reference path="./org.bukkit.material.Sapling.d.ts" />
/// <reference path="./org.bukkit.material.Sign.d.ts" />
/// <reference path="./org.bukkit.material.SimpleAttachableMaterialData.d.ts" />
/// <reference path="./org.bukkit.material.Skull.d.ts" />
/// <reference path="./org.bukkit.material.SmoothBrick.d.ts" />
/// <reference path="./org.bukkit.material.SpawnEgg.d.ts" />
/// <reference path="./org.bukkit.material.Stairs.d.ts" />
/// <reference path="./org.bukkit.material.Step.d.ts" />
/// <reference path="./org.bukkit.material.TexturedMaterial.d.ts" />
/// <reference path="./org.bukkit.material.Torch.d.ts" />
/// <reference path="./org.bukkit.material.TrapDoor.d.ts" />
/// <reference path="./org.bukkit.material.Tree.d.ts" />
/// <reference path="./org.bukkit.material.Tripwire.d.ts" />
/// <reference path="./org.bukkit.material.TripwireHook.d.ts" />
/// <reference path="./org.bukkit.material.Vine.d.ts" />
/// <reference path="./org.bukkit.material.Wood.d.ts" />
/// <reference path="./org.bukkit.material.WoodenStep.d.ts" />
/// <reference path="./org.bukkit.material.Wool.d.ts" />
/// <reference path="./org.bukkit.material.types.MushroomBlockTexture.d.ts" />
/// <reference path="./org.bukkit.metadata.FixedMetadataValue.d.ts" />
/// <reference path="./org.bukkit.metadata.LazyMetadataValue.CacheStrategy.d.ts" />
/// <reference path="./org.bukkit.metadata.LazyMetadataValue.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataConversionException.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataEvaluationException.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataStore.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataStoreBase.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataValue.d.ts" />
/// <reference path="./org.bukkit.metadata.MetadataValueAdapter.d.ts" />
/// <reference path="./org.bukkit.metadata.Metadatable.d.ts" />
/// <reference path="./org.bukkit.permissions.Permissible.d.ts" />
/// <reference path="./org.bukkit.permissions.PermissibleBase.d.ts" />
/// <reference path="./org.bukkit.permissions.Permission.d.ts" />
/// <reference path="./org.bukkit.permissions.PermissionAttachment.d.ts" />
/// <reference path="./org.bukkit.permissions.PermissionAttachmentInfo.d.ts" />
/// <reference path="./org.bukkit.permissions.PermissionDefault.d.ts" />
/// <reference path="./org.bukkit.permissions.PermissionRemovedExecutor.d.ts" />
/// <reference path="./org.bukkit.permissions.ServerOperator.d.ts" />
/// <reference path="./org.bukkit.persistence.PersistentDataAdapterContext.d.ts" />
/// <reference path="./org.bukkit.persistence.PersistentDataContainer.d.ts" />
/// <reference path="./org.bukkit.persistence.PersistentDataHolder.d.ts" />
/// <reference path="./org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.d.ts" />
/// <reference path="./org.bukkit.persistence.PersistentDataType.d.ts" />
/// <reference path="./org.bukkit.plugin.AuthorNagException.d.ts" />
/// <reference path="./org.bukkit.plugin.EventExecutor.d.ts" />
/// <reference path="./org.bukkit.plugin.IllegalPluginAccessException.d.ts" />
/// <reference path="./org.bukkit.plugin.InvalidDescriptionException.d.ts" />
/// <reference path="./org.bukkit.plugin.InvalidPluginException.d.ts" />
/// <reference path="./org.bukkit.plugin.Plugin.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginAwareness.Flags.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginAwareness.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginBase.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginDescriptionFile.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginLoadOrder.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginLoader.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginLogger.d.ts" />
/// <reference path="./org.bukkit.plugin.PluginManager.d.ts" />
/// <reference path="./org.bukkit.plugin.RegisteredListener.d.ts" />
/// <reference path="./org.bukkit.plugin.RegisteredServiceProvider.d.ts" />
/// <reference path="./org.bukkit.plugin.ServicePriority.d.ts" />
/// <reference path="./org.bukkit.plugin.ServicesManager.d.ts" />
/// <reference path="./org.bukkit.plugin.SimplePluginManager.d.ts" />
/// <reference path="./org.bukkit.plugin.SimpleServicesManager.d.ts" />
/// <reference path="./org.bukkit.plugin.TimedRegisteredListener.d.ts" />
/// <reference path="./org.bukkit.plugin.UnknownDependencyException.d.ts" />
/// <reference path="./org.bukkit.plugin.java.JavaPlugin.d.ts" />
/// <reference path="./org.bukkit.plugin.java.JavaPluginLoader.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.ChannelNameTooLongException.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.ChannelNotRegisteredException.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.MessageTooLargeException.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.Messenger.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.PluginChannelDirection.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.PluginMessageListener.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.PluginMessageListenerRegistration.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.PluginMessageRecipient.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.ReservedChannelException.d.ts" />
/// <reference path="./org.bukkit.plugin.messaging.StandardMessenger.d.ts" />
/// <reference path="./org.bukkit.potion.Potion.d.ts" />
/// <reference path="./org.bukkit.potion.PotionBrewer.d.ts" />
/// <reference path="./org.bukkit.potion.PotionData.d.ts" />
/// <reference path="./org.bukkit.potion.PotionEffect.d.ts" />
/// <reference path="./org.bukkit.potion.PotionEffectType.d.ts" />
/// <reference path="./org.bukkit.potion.PotionEffectTypeWrapper.d.ts" />
/// <reference path="./org.bukkit.potion.PotionType.d.ts" />
/// <reference path="./org.bukkit.projectiles.BlockProjectileSource.d.ts" />
/// <reference path="./org.bukkit.projectiles.ProjectileSource.d.ts" />
/// <reference path="./org.bukkit.scheduler.BukkitRunnable.d.ts" />
/// <reference path="./org.bukkit.scheduler.BukkitScheduler.d.ts" />
/// <reference path="./org.bukkit.scheduler.BukkitTask.d.ts" />
/// <reference path="./org.bukkit.scheduler.BukkitWorker.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Criterias.d.ts" />
/// <reference path="./org.bukkit.scoreboard.DisplaySlot.d.ts" />
/// <reference path="./org.bukkit.scoreboard.NameTagVisibility.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Objective.d.ts" />
/// <reference path="./org.bukkit.scoreboard.RenderType.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Score.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Scoreboard.d.ts" />
/// <reference path="./org.bukkit.scoreboard.ScoreboardManager.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Team.Option.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Team.OptionStatus.d.ts" />
/// <reference path="./org.bukkit.scoreboard.Team.d.ts" />
/// <reference path="./org.bukkit.util.BlockIterator.d.ts" />
/// <reference path="./org.bukkit.util.BlockVector.d.ts" />
/// <reference path="./org.bukkit.util.BoundingBox.d.ts" />
/// <reference path="./org.bukkit.util.CachedServerIcon.d.ts" />
/// <reference path="./org.bukkit.util.ChatPaginator.ChatPage.d.ts" />
/// <reference path="./org.bukkit.util.ChatPaginator.d.ts" />
/// <reference path="./org.bukkit.util.Consumer.d.ts" />
/// <reference path="./org.bukkit.util.EulerAngle.d.ts" />
/// <reference path="./org.bukkit.util.FileUtil.d.ts" />
/// <reference path="./org.bukkit.util.NumberConversions.d.ts" />
/// <reference path="./org.bukkit.util.RayTraceResult.d.ts" />
/// <reference path="./org.bukkit.util.StringUtil.d.ts" />
/// <reference path="./org.bukkit.util.Vector.d.ts" />
/// <reference path="./org.bukkit.util.io.BukkitObjectInputStream.d.ts" />
/// <reference path="./org.bukkit.util.io.BukkitObjectOutputStream.d.ts" />
/// <reference path="./org.bukkit.util.noise.NoiseGenerator.d.ts" />
/// <reference path="./org.bukkit.util.noise.OctaveGenerator.d.ts" />
/// <reference path="./org.bukkit.util.noise.PerlinNoiseGenerator.d.ts" />
/// <reference path="./org.bukkit.util.noise.PerlinOctaveGenerator.d.ts" />
/// <reference path="./org.bukkit.util.noise.SimplexNoiseGenerator.d.ts" />
/// <reference path="./org.bukkit.util.noise.SimplexOctaveGenerator.d.ts" />
/// <reference path="./org.bukkit.util.permissions.BroadcastPermissions.d.ts" />
/// <reference path="./org.bukkit.util.permissions.CommandPermissions.d.ts" />
/// <reference path="./org.bukkit.util.permissions.DefaultPermissions.d.ts" />

View File

@@ -0,0 +1,90 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Achievement extends java.lang.Enum {
// @ts-ignore
public static OPEN_INVENTORY: org.bukkit.Achievement;
// @ts-ignore
public static MINE_WOOD: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_WORKBENCH: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_PICKAXE: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_FURNACE: org.bukkit.Achievement;
// @ts-ignore
public static ACQUIRE_IRON: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_HOE: org.bukkit.Achievement;
// @ts-ignore
public static MAKE_BREAD: org.bukkit.Achievement;
// @ts-ignore
public static BAKE_CAKE: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_BETTER_PICKAXE: org.bukkit.Achievement;
// @ts-ignore
public static COOK_FISH: org.bukkit.Achievement;
// @ts-ignore
public static ON_A_RAIL: org.bukkit.Achievement;
// @ts-ignore
public static BUILD_SWORD: org.bukkit.Achievement;
// @ts-ignore
public static KILL_ENEMY: org.bukkit.Achievement;
// @ts-ignore
public static KILL_COW: org.bukkit.Achievement;
// @ts-ignore
public static FLY_PIG: org.bukkit.Achievement;
// @ts-ignore
public static SNIPE_SKELETON: org.bukkit.Achievement;
// @ts-ignore
public static GET_DIAMONDS: org.bukkit.Achievement;
// @ts-ignore
public static NETHER_PORTAL: org.bukkit.Achievement;
// @ts-ignore
public static GHAST_RETURN: org.bukkit.Achievement;
// @ts-ignore
public static GET_BLAZE_ROD: org.bukkit.Achievement;
// @ts-ignore
public static BREW_POTION: org.bukkit.Achievement;
// @ts-ignore
public static END_PORTAL: org.bukkit.Achievement;
// @ts-ignore
public static THE_END: org.bukkit.Achievement;
// @ts-ignore
public static ENCHANTMENTS: org.bukkit.Achievement;
// @ts-ignore
public static OVERKILL: org.bukkit.Achievement;
// @ts-ignore
public static BOOKCASE: org.bukkit.Achievement;
// @ts-ignore
public static EXPLORE_ALL_BIOMES: org.bukkit.Achievement;
// @ts-ignore
public static SPAWN_WITHER: org.bukkit.Achievement;
// @ts-ignore
public static KILL_WITHER: org.bukkit.Achievement;
// @ts-ignore
public static FULL_BEACON: org.bukkit.Achievement;
// @ts-ignore
public static BREED_COW: org.bukkit.Achievement;
// @ts-ignore
public static DIAMONDS_TO_YOU: org.bukkit.Achievement;
// @ts-ignore
public static OVERPOWERED: org.bukkit.Achievement;
// @ts-ignore
public static values(): org.bukkit.Achievement[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Achievement;
/**
* Returns whether or not this achievement has a parent achievement.
*/
// @ts-ignore
public hasParent(): boolean;
/**
* Returns the parent achievement of this achievement, or null if none.
*/
// @ts-ignore
public getParent(): org.bukkit.Achievement;
}
}
}

View File

@@ -0,0 +1,93 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Art extends java.lang.Enum implements org.bukkit.Keyed {
// @ts-ignore
public static KEBAB: org.bukkit.Art;
// @ts-ignore
public static AZTEC: org.bukkit.Art;
// @ts-ignore
public static ALBAN: org.bukkit.Art;
// @ts-ignore
public static AZTEC2: org.bukkit.Art;
// @ts-ignore
public static BOMB: org.bukkit.Art;
// @ts-ignore
public static PLANT: org.bukkit.Art;
// @ts-ignore
public static WASTELAND: org.bukkit.Art;
// @ts-ignore
public static POOL: org.bukkit.Art;
// @ts-ignore
public static COURBET: org.bukkit.Art;
// @ts-ignore
public static SEA: org.bukkit.Art;
// @ts-ignore
public static SUNSET: org.bukkit.Art;
// @ts-ignore
public static CREEBET: org.bukkit.Art;
// @ts-ignore
public static WANDERER: org.bukkit.Art;
// @ts-ignore
public static GRAHAM: org.bukkit.Art;
// @ts-ignore
public static MATCH: org.bukkit.Art;
// @ts-ignore
public static BUST: org.bukkit.Art;
// @ts-ignore
public static STAGE: org.bukkit.Art;
// @ts-ignore
public static VOID: org.bukkit.Art;
// @ts-ignore
public static SKULL_AND_ROSES: org.bukkit.Art;
// @ts-ignore
public static WITHER: org.bukkit.Art;
// @ts-ignore
public static FIGHTERS: org.bukkit.Art;
// @ts-ignore
public static POINTER: org.bukkit.Art;
// @ts-ignore
public static PIGSCENE: org.bukkit.Art;
// @ts-ignore
public static BURNING_SKULL: org.bukkit.Art;
// @ts-ignore
public static SKELETON: org.bukkit.Art;
// @ts-ignore
public static DONKEY_KONG: org.bukkit.Art;
// @ts-ignore
public static values(): org.bukkit.Art[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Art;
/**
* Gets the width of the painting, in blocks
*/
// @ts-ignore
public getBlockWidth(): number;
/**
* Gets the height of the painting, in blocks
*/
// @ts-ignore
public getBlockHeight(): number;
/**
* Get the ID of this painting.
*/
// @ts-ignore
public getId(): number;
// @ts-ignore
public getKey(): org.bukkit.NamespacedKey;
/**
* Get a painting by its numeric ID
*/
// @ts-ignore
public static getById(id: number): org.bukkit.Art;
/**
* Get a painting by its unique name
* <p>
* This ignores underscores and capitalization
*/
// @ts-ignore
public static getByName(name: string): org.bukkit.Art;
}
}
}

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Axis extends java.lang.Enum {
// @ts-ignore
public static X: org.bukkit.Axis;
// @ts-ignore
public static Y: org.bukkit.Axis;
// @ts-ignore
public static Z: org.bukkit.Axis;
// @ts-ignore
public static values(): org.bukkit.Axis[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Axis;
}
}
}

View File

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

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace BanList {
// @ts-ignore
class Type extends java.lang.Enum {
// @ts-ignore
public static NAME: org.bukkit.BanList.Type;
// @ts-ignore
public static IP: org.bukkit.BanList.Type;
// @ts-ignore
public static values(): org.bukkit.BanList.Type[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.BanList.Type;
}
}
}
}

View File

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

View File

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

View File

@@ -0,0 +1,772 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Bukkit extends java.lang.Object {
/**
* Gets the current {@link Server} singleton
*/
// @ts-ignore
public static getServer(): org.bukkit.Server;
/**
* Attempts to set the {@link Server} singleton.
* <p>
* This cannot be done if the Server is already set.
*/
// @ts-ignore
public static setServer(server: org.bukkit.Server): void;
/**
* Gets the name of this server implementation.
*/
// @ts-ignore
public static getName(): string;
/**
* Gets the version string of this server implementation.
*/
// @ts-ignore
public static getVersion(): string;
/**
* Gets the Bukkit version that this server is running.
*/
// @ts-ignore
public static getBukkitVersion(): string;
/**
* Gets a view of all currently logged in players. This {@linkplain
* Collections#unmodifiableCollection(Collection) view} is a reused
* object, making some operations like {@link Collection#size()}
* zero-allocation.
* <p>
* The collection is a view backed by the internal representation, such
* that, changes to the internal state of the server will be reflected
* immediately. However, the reuse of the returned collection (identity)
* is not strictly guaranteed for future or all implementations. Casting
* the collection, or relying on interface implementations (like {@link
* Serializable} or {@link List}), is deprecated.
* <p>
* Iteration behavior is undefined outside of self-contained main-thread
* uses. Normal and immediate iterator use without consequences that
* affect the collection are fully supported. The effects following
* (non-exhaustive) {@link Entity#teleport(Location) teleportation},
* {@link Player#setHealth(double) death}, and {@link Player#kickPlayer(
* String) kicking} are undefined. Any use of this collection from
* asynchronous threads is unsafe.
* <p>
* For safe consequential iteration or mimicking the old array behavior,
* using {@link Collection#toArray(Object[])} is recommended. For making
* snapshots, {@link ImmutableList#copyOf(Collection)} is recommended.
*/
// @ts-ignore
public static getOnlinePlayers(): java.util.Collection;
/**
* Get the maximum amount of players which can login to this server.
*/
// @ts-ignore
public static getMaxPlayers(): number;
/**
* Get the game port that the server runs on.
*/
// @ts-ignore
public static getPort(): number;
/**
* Get the view distance from this server.
*/
// @ts-ignore
public static getViewDistance(): number;
/**
* Get the IP that this server is bound to, or empty string if not
* specified.
*/
// @ts-ignore
public static getIp(): string;
/**
* Get world type (level-type setting) for default world.
*/
// @ts-ignore
public static getWorldType(): string;
/**
* Get generate-structures setting.
*/
// @ts-ignore
public static getGenerateStructures(): boolean;
/**
* Gets whether this server allows the End or not.
*/
// @ts-ignore
public static getAllowEnd(): boolean;
/**
* Gets whether this server allows the Nether or not.
*/
// @ts-ignore
public static getAllowNether(): boolean;
/**
* Gets whether this server has a whitelist or not.
*/
// @ts-ignore
public static hasWhitelist(): boolean;
/**
* Sets if the server is whitelisted.
*/
// @ts-ignore
public static setWhitelist(value: boolean): void;
/**
* Gets a list of whitelisted players.
*/
// @ts-ignore
public static getWhitelistedPlayers(): java.util.Set;
/**
* Reloads the whitelist from disk.
*/
// @ts-ignore
public static reloadWhitelist(): void;
/**
* Broadcast a message to all players.
* <p>
* This is the same as calling {@link #broadcast(java.lang.String,
* java.lang.String)} to {@link Server#BROADCAST_CHANNEL_USERS}
*/
// @ts-ignore
public static broadcastMessage(message: string): number;
/**
* Gets the name of the update folder. The update folder is used to safely
* update plugins at the right moment on a plugin load.
* <p>
* The update folder name is relative to the plugins folder.
*/
// @ts-ignore
public static getUpdateFolder(): string;
/**
* Gets the update folder. The update folder is used to safely update
* plugins at the right moment on a plugin load.
*/
// @ts-ignore
public static getUpdateFolderFile(): java.io.File;
/**
* Gets the value of the connection throttle setting.
*/
// @ts-ignore
public static getConnectionThrottle(): number;
/**
* Gets default ticks per animal spawns value.
* <p>
* <b>Example Usage:</b>
* <ul>
* <li>A value of 1 will mean the server will attempt to spawn monsters
* every tick.
* <li>A value of 400 will mean the server will attempt to spawn monsters
* every 400th tick.
* <li>A value below 0 will be reset back to Minecraft's default.
* </ul>
* <p>
* <b>Note:</b> If set to 0, animal spawning will be disabled. We
* recommend using spawn-animals to control this instead.
* <p>
* Minecraft default: 400.
*/
// @ts-ignore
public static getTicksPerAnimalSpawns(): number;
/**
* Gets the default ticks per monster spawns value.
* <p>
* <b>Example Usage:</b>
* <ul>
* <li>A value of 1 will mean the server will attempt to spawn monsters
* every tick.
* <li>A value of 400 will mean the server will attempt to spawn monsters
* every 400th tick.
* <li>A value below 0 will be reset back to Minecraft's default.
* </ul>
* <p>
* <b>Note:</b> If set to 0, monsters spawning will be disabled. We
* recommend using spawn-monsters to control this instead.
* <p>
* Minecraft default: 1.
*/
// @ts-ignore
public static getTicksPerMonsterSpawns(): number;
/**
* Gets a player object by the given username.
* <p>
* This method may not return objects for offline players.
*/
// @ts-ignore
public static getPlayer(name: string): org.bukkit.entity.Player;
/**
* Gets the player with the exact given name, case insensitive.
*/
// @ts-ignore
public static getPlayerExact(name: string): org.bukkit.entity.Player;
/**
* Attempts to match any players with the given name, and returns a list
* of all possibly matches.
* <p>
* This list is not sorted in any particular order. If an exact match is
* found, the returned list will only contain a single result.
*/
// @ts-ignore
public static matchPlayer(name: string): java.util.List;
/**
* Gets the player with the given UUID.
*/
// @ts-ignore
public static getPlayer(id: java.util.UUID): org.bukkit.entity.Player;
/**
* Gets the plugin manager for interfacing with plugins.
*/
// @ts-ignore
public static getPluginManager(): org.bukkit.plugin.PluginManager;
/**
* Gets the scheduler for managing scheduled events.
*/
// @ts-ignore
public static getScheduler(): org.bukkit.scheduler.BukkitScheduler;
/**
* Gets a services manager.
*/
// @ts-ignore
public static getServicesManager(): org.bukkit.plugin.ServicesManager;
/**
* Gets a list of all worlds on this server.
*/
// @ts-ignore
public static getWorlds(): java.util.List;
/**
* Creates or loads a world with the given name using the specified
* options.
* <p>
* If the world is already loaded, it will just return the equivalent of
* getWorld(creator.name()).
*/
// @ts-ignore
public static createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World;
/**
* Unloads a world with the given name.
*/
// @ts-ignore
public static unloadWorld(name: string, save: boolean): boolean;
/**
* Unloads the given world.
*/
// @ts-ignore
public static unloadWorld(world: org.bukkit.World, save: boolean): boolean;
/**
* Gets the world with the given name.
*/
// @ts-ignore
public static getWorld(name: string): org.bukkit.World;
/**
* Gets the world from the given Unique ID.
*/
// @ts-ignore
public static getWorld(uid: java.util.UUID): org.bukkit.World;
/**
* Gets the map from the given item ID.
*/
// @ts-ignore
public static getMap(id: number): org.bukkit.map.MapView;
/**
* Create a new map with an automatically assigned ID.
*/
// @ts-ignore
public static createMap(world: org.bukkit.World): org.bukkit.map.MapView;
/**
* Create a new explorer map targeting the closest nearby structure of a
* given {@link StructureType}.
* <br>
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
// @ts-ignore
public static 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}.
* <br>
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
// @ts-ignore
public static 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.
*/
// @ts-ignore
public static reload(): void;
/**
* Reload only the Minecraft data for the server. This includes custom
* advancements and loot tables.
*/
// @ts-ignore
public static reloadData(): void;
/**
* Returns the primary logger associated with this server instance.
*/
// @ts-ignore
public static getLogger(): java.util.logging.Logger;
/**
* Gets a {@link PluginCommand} with the given name or alias.
*/
// @ts-ignore
public static getPluginCommand(name: string): org.bukkit.command.PluginCommand;
/**
* Writes loaded players to disk.
*/
// @ts-ignore
public static savePlayers(): void;
/**
* Dispatches a command on this server, and executes it if found.
*/
// @ts-ignore
public static dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean;
/**
* Adds a recipe to the crafting manager.
*/
// @ts-ignore
public static 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.
*/
// @ts-ignore
public static getRecipesFor(result: org.bukkit.inventory.ItemStack): java.util.List;
/**
* Get an iterator through the list of crafting recipes.
*/
// @ts-ignore
public static recipeIterator(): java.util.Iterator;
/**
* Clears the list of crafting recipes.
*/
// @ts-ignore
public static clearRecipes(): void;
/**
* Resets the list of crafting recipes to the default.
*/
// @ts-ignore
public static resetRecipes(): void;
/**
* Gets a list of command aliases defined in the server properties.
*/
// @ts-ignore
public static getCommandAliases(): java.util.Map;
/**
* Gets the radius, in blocks, around each worlds spawn point to protect.
*/
// @ts-ignore
public static getSpawnRadius(): number;
/**
* Sets the radius, in blocks, around each worlds spawn point to protect.
*/
// @ts-ignore
public static setSpawnRadius(value: number): void;
/**
* Gets whether the Server is in online mode or not.
*/
// @ts-ignore
public static getOnlineMode(): boolean;
/**
* Gets whether this server allows flying or not.
*/
// @ts-ignore
public static getAllowFlight(): boolean;
/**
* Gets whether the server is in hardcore mode or not.
*/
// @ts-ignore
public static isHardcore(): boolean;
/**
* Shutdowns the server, stopping everything.
*/
// @ts-ignore
public static shutdown(): void;
/**
* Broadcasts the specified message to every user with the given
* permission name.
*/
// @ts-ignore
public static broadcast(message: string, permission: string): number;
/**
* Gets the player by the given name, regardless if they are offline or
* online.
* <p>
* This method may involve a blocking web request to get the UUID for the
* given name.
* <p>
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
// @ts-ignore
public static getOfflinePlayer(name: string): org.bukkit.OfflinePlayer;
/**
* Gets the player by the given UUID, regardless if they are offline or
* online.
* <p>
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
// @ts-ignore
public static getOfflinePlayer(id: java.util.UUID): org.bukkit.OfflinePlayer;
/**
* Gets a set containing all current IPs that are banned.
*/
// @ts-ignore
public static getIPBans(): java.util.Set;
/**
* Bans the specified address from the server.
*/
// @ts-ignore
public static banIP(address: string): void;
/**
* Unbans the specified address from the server.
*/
// @ts-ignore
public static unbanIP(address: string): void;
/**
* Gets a set containing all banned players.
*/
// @ts-ignore
public static getBannedPlayers(): java.util.Set;
/**
* Gets a ban list for the supplied type.
* <p>
* Bans by name are no longer supported and this method will return
* null when trying to request them. The replacement is bans by UUID.
*/
// @ts-ignore
public static getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList;
/**
* Gets a set containing all player operators.
*/
// @ts-ignore
public static getOperators(): java.util.Set;
/**
* Gets the default {@link GameMode} for new players.
*/
// @ts-ignore
public static getDefaultGameMode(): org.bukkit.GameMode;
/**
* Sets the default {@link GameMode} for new players.
*/
// @ts-ignore
public static setDefaultGameMode(mode: org.bukkit.GameMode): void;
/**
* Gets a {@link ConsoleCommandSender} that may be used as an input source
* for this server.
*/
// @ts-ignore
public static getConsoleSender(): org.bukkit.command.ConsoleCommandSender;
/**
* Gets the folder that contains all of the various {@link World}s.
*/
// @ts-ignore
public static getWorldContainer(): java.io.File;
/**
* Gets every player that has ever played on this server.
*/
// @ts-ignore
public static getOfflinePlayers(): org.bukkit.OfflinePlayer[];
/**
* Gets the {@link Messenger} responsible for this server.
*/
// @ts-ignore
public static getMessenger(): org.bukkit.plugin.messaging.Messenger;
/**
* Gets the {@link HelpMap} providing help topics for this server.
*/
// @ts-ignore
public static 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;
* otherwise the new inventory has the normal size for its type.
* <br>
* {@link InventoryType#WORKBENCH} will not process crafting recipes if
* created with this method. Use
* {@link Player#openWorkbench(Location, boolean)} instead.
* <br>
* {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
// @ts-ignore
public static 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;
* otherwise the new inventory has the normal size for its type.<br>
* It should be noted that some inventory types do not support titles and
* may not render with said titles on the Minecraft client.
* <br>
* {@link InventoryType#WORKBENCH} will not process crafting recipes if
* created with this method. Use
* {@link Player#openWorkbench(Location, boolean)} instead.
* <br>
* {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
// @ts-ignore
public static 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.
*/
// @ts-ignore
public static 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.
*/
// @ts-ignore
public static createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory;
/**
* Creates an empty merchant.
*/
// @ts-ignore
public static createMerchant(title: string): org.bukkit.inventory.Merchant;
/**
* Gets user-specified limit for number of monsters that can spawn in a
* chunk.
*/
// @ts-ignore
public static getMonsterSpawnLimit(): number;
/**
* Gets user-specified limit for number of animals that can spawn in a
* chunk.
*/
// @ts-ignore
public static getAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of water animals that can spawn in
* a chunk.
*/
// @ts-ignore
public static getWaterAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of ambient mobs that can spawn in
* a chunk.
*/
// @ts-ignore
public static getAmbientSpawnLimit(): number;
/**
* Checks the current thread against the expected primary thread for the
* server.
* <p>
* <b>Note:</b> this method should not be used to indicate the current
* synchronized state of the runtime. A current thread matching the main
* thread indicates that it is synchronized, but a mismatch <b>does not
* preclude</b> the same assumption.
*/
// @ts-ignore
public static isPrimaryThread(): boolean;
/**
* Gets the message that is displayed on the server list.
*/
// @ts-ignore
public static getMotd(): string;
/**
* Gets the default message that is displayed when the server is stopped.
*/
// @ts-ignore
public static getShutdownMessage(): string;
/**
* Gets the current warning state for the server.
*/
// @ts-ignore
public static getWarningState(): org.bukkit.Warning.WarningState;
/**
* Gets the instance of the item factory (for {@link ItemMeta}).
*/
// @ts-ignore
public static getItemFactory(): org.bukkit.inventory.ItemFactory;
/**
* Gets the instance of the scoreboard manager.
* <p>
* This will only exist after the first world has loaded.
*/
// @ts-ignore
public static getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager;
/**
* Gets an instance of the server's default server-icon.
*/
// @ts-ignore
public static getServerIcon(): org.bukkit.util.CachedServerIcon;
/**
* Loads an image from a file, and returns a cached image for the specific
* server-icon.
* <p>
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
// @ts-ignore
public static loadServerIcon(file: java.io.File): org.bukkit.util.CachedServerIcon;
/**
* Creates a cached server-icon for the specific image.
* <p>
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
// @ts-ignore
public static loadServerIcon(image: java.awt.image.BufferedImage): org.bukkit.util.CachedServerIcon;
/**
* Set the idle kick timeout. Any players idle for the specified amount of
* time will be automatically kicked.
* <p>
* A value of 0 will disable the idle kick timeout.
*/
// @ts-ignore
public static setIdleTimeout(threshold: number): void;
/**
* Gets the idle kick timeout.
*/
// @ts-ignore
public static 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)}
*/
// @ts-ignore
public static 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
*/
// @ts-ignore
public static 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.
* <br>
* This instance is added to the persistent storage of the server and will
* be editable by commands and restored after restart.
*/
// @ts-ignore
public static createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar;
/**
* Gets an unmodifiable iterator through all persistent bossbars.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
public static getBossBars(): java.util.Iterator;
/**
* Gets the {@link KeyedBossBar} specified by this key.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
public static getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar;
/**
* Removes a {@link KeyedBossBar} specified by this key.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
public static removeBossBar(key: org.bukkit.NamespacedKey): boolean;
/**
* Gets an entity on the server by its UUID
*/
// @ts-ignore
public static getEntity(uuid: java.util.UUID): org.bukkit.entity.Entity;
/**
* Get the advancement specified by this key.
*/
// @ts-ignore
public static getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement;
/**
* Get an iterator through all advancements. Advancements cannot be removed
* from this iterator,
*/
// @ts-ignore
public static advancementIterator(): java.util.Iterator;
/**
* Creates a new {@link BlockData} instance for the specified Material, with
* all properties initialized to unspecified defaults.
*/
// @ts-ignore
public static 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.
*/
// @ts-ignore
public static createBlockData(material: org.bukkit.Material, consumer: java.util.function$.Consumer): org.bukkit.block.data.BlockData;
/**
* Creates a new {@link BlockData} instance with material and properties
* parsed from provided data.
*/
// @ts-ignore
public static 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
* provided in data.
*/
// @ts-ignore
public static 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
* which makes no guarantees about which tags are available, and may also be
* less performant due to lack of caching.
* <br>
* Tags will be searched for in an implementation specific manner, but a
* path consisting of namespace/tags/registry/key is expected.
* <br>
* Server implementations are allowed to handle only the registries
* indicated in {@link Tag}.
*/
// @ts-ignore
public static getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: java.lang.Class): org.bukkit.Tag;
/**
* Gets a all tags which have been defined within the server.
* <br>
* Server implementations are allowed to handle only the registries
* indicated in {@link Tag}.
* <br>
* No guarantees are made about the mutability of the returned iterator.
*/
// @ts-ignore
public static getTags(registry: string, clazz: java.lang.Class): java.lang.Iterable;
/**
* Gets the specified {@link LootTable}.
*/
// @ts-ignore
public static getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable;
/**
* Selects entities using the given Vanilla selector.
* <br>
* No guarantees are made about the selector format, other than they match
* the Vanilla format for the active Minecraft version.
* <br>
* Usually a selector will start with '@', unless selecting a Player in
* which case it may simply be the Player's name or UUID.
* <br>
* Note that in Vanilla, elevated permissions are usually required to use
* '@' selectors, but this method should not check such permissions from the
* sender.
*/
// @ts-ignore
public static selectEntities(sender: org.bukkit.command.CommandSender, selector: string): java.util.List;
// @ts-ignore
public static getUnsafe(): org.bukkit.UnsafeValues;
}
}
}

View File

@@ -0,0 +1,103 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class ChatColor extends java.lang.Enum {
// @ts-ignore
public static BLACK: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_BLUE: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_GREEN: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_AQUA: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_RED: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_PURPLE: org.bukkit.ChatColor;
// @ts-ignore
public static GOLD: org.bukkit.ChatColor;
// @ts-ignore
public static GRAY: org.bukkit.ChatColor;
// @ts-ignore
public static DARK_GRAY: org.bukkit.ChatColor;
// @ts-ignore
public static BLUE: org.bukkit.ChatColor;
// @ts-ignore
public static GREEN: org.bukkit.ChatColor;
// @ts-ignore
public static AQUA: org.bukkit.ChatColor;
// @ts-ignore
public static RED: org.bukkit.ChatColor;
// @ts-ignore
public static LIGHT_PURPLE: org.bukkit.ChatColor;
// @ts-ignore
public static YELLOW: org.bukkit.ChatColor;
// @ts-ignore
public static WHITE: org.bukkit.ChatColor;
// @ts-ignore
public static MAGIC: org.bukkit.ChatColor;
// @ts-ignore
public static BOLD: org.bukkit.ChatColor;
// @ts-ignore
public static STRIKETHROUGH: org.bukkit.ChatColor;
// @ts-ignore
public static UNDERLINE: org.bukkit.ChatColor;
// @ts-ignore
public static ITALIC: org.bukkit.ChatColor;
// @ts-ignore
public static RESET: org.bukkit.ChatColor;
// @ts-ignore
public static COLOR_CHAR: string;
// @ts-ignore
public static values(): org.bukkit.ChatColor[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.ChatColor;
/**
* Gets the char value associated with this color
*/
// @ts-ignore
public getChar(): string;
// @ts-ignore
public toString(): string;
/**
* Checks if this code is a format code as opposed to a color code.
*/
// @ts-ignore
public isFormat(): boolean;
/**
* Checks if this code is a color code as opposed to a format code.
*/
// @ts-ignore
public isColor(): boolean;
/**
* Gets the color represented by the specified color code
*/
// @ts-ignore
public static getByChar(code: string): org.bukkit.ChatColor;
/**
* Gets the color represented by the specified color code
*/
// @ts-ignore
public static getByChar(code: string): org.bukkit.ChatColor;
/**
* Strips the given message of all color codes
*/
// @ts-ignore
public static stripColor(input: string): string;
/**
* Translates a string using an alternate color code character into a
* string that uses the internal ChatColor.COLOR_CODE color code
* character. The alternate color code character will only be replaced if
* it is immediately followed by 0-9, A-F, a-f, K-O, k-o, R or r.
*/
// @ts-ignore
public static translateAlternateColorCodes(altColorChar: string, textToTranslate: string): string;
/**
* Gets the ChatColors used at the end of the given input string.
*/
// @ts-ignore
public static getLastColors(input: string): string;
}
}
}

View File

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

View File

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

View File

@@ -0,0 +1,26 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class CoalType extends java.lang.Enum {
// @ts-ignore
public static COAL: org.bukkit.CoalType;
// @ts-ignore
public static CHARCOAL: org.bukkit.CoalType;
// @ts-ignore
public static values(): org.bukkit.CoalType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.CoalType;
/**
* Gets the associated data value representing this type of coal
*/
// @ts-ignore
public getData(): number;
/**
* Gets the type of coal with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.CoalType;
}
}
}

View File

@@ -0,0 +1,120 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Color extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable {
// @ts-ignore
public static WHITE: org.bukkit.Color;
// @ts-ignore
public static SILVER: org.bukkit.Color;
// @ts-ignore
public static GRAY: org.bukkit.Color;
// @ts-ignore
public static BLACK: org.bukkit.Color;
// @ts-ignore
public static RED: org.bukkit.Color;
// @ts-ignore
public static MAROON: org.bukkit.Color;
// @ts-ignore
public static YELLOW: org.bukkit.Color;
// @ts-ignore
public static OLIVE: org.bukkit.Color;
// @ts-ignore
public static LIME: org.bukkit.Color;
// @ts-ignore
public static GREEN: org.bukkit.Color;
// @ts-ignore
public static AQUA: org.bukkit.Color;
// @ts-ignore
public static TEAL: org.bukkit.Color;
// @ts-ignore
public static BLUE: org.bukkit.Color;
// @ts-ignore
public static NAVY: org.bukkit.Color;
// @ts-ignore
public static FUCHSIA: org.bukkit.Color;
// @ts-ignore
public static PURPLE: org.bukkit.Color;
// @ts-ignore
public static ORANGE: org.bukkit.Color;
/**
* Creates a new Color object from a red, green, and blue
*/
// @ts-ignore
public static fromRGB(red: number, green: number, blue: number): org.bukkit.Color;
/**
* Creates a new Color object from a blue, green, and red
*/
// @ts-ignore
public static fromBGR(blue: number, green: number, red: number): org.bukkit.Color;
/**
* Creates a new color object from an integer that contains the red,
* green, and blue bytes in the lowest order 24 bits.
*/
// @ts-ignore
public static fromRGB(rgb: number): org.bukkit.Color;
/**
* Creates a new color object from an integer that contains the blue,
* green, and red bytes in the lowest order 24 bits.
*/
// @ts-ignore
public static fromBGR(bgr: number): org.bukkit.Color;
/**
* Gets the red component
*/
// @ts-ignore
public getRed(): number;
/**
* Creates a new Color object with specified component
*/
// @ts-ignore
public setRed(red: number): org.bukkit.Color;
/**
* Gets the green component
*/
// @ts-ignore
public getGreen(): number;
/**
* Creates a new Color object with specified component
*/
// @ts-ignore
public setGreen(green: number): org.bukkit.Color;
/**
* Gets the blue component
*/
// @ts-ignore
public getBlue(): number;
/**
* Creates a new Color object with specified component
*/
// @ts-ignore
public setBlue(blue: number): org.bukkit.Color;
// @ts-ignore
public asRGB(): number;
// @ts-ignore
public asBGR(): number;
/**
* Creates a new color with its RGB components changed as if it was dyed
* with the colors passed in, replicating vanilla workbench dyeing
*/
// @ts-ignore
public mixDyes(colors: org.bukkit.DyeColor): org.bukkit.Color;
/**
* Creates a new color with its RGB components changed as if it was dyed
* with the colors passed in, replicating vanilla workbench dyeing
*/
// @ts-ignore
public mixColors(colors: org.bukkit.Color): org.bukkit.Color;
// @ts-ignore
public equals(o: java.lang.Object): boolean;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public serialize(): java.util.Map;
// @ts-ignore
public static deserialize(map: java.util.Map): org.bukkit.Color;
// @ts-ignore
public toString(): string;
}
}
}

View File

@@ -0,0 +1,38 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class CropState extends java.lang.Enum {
// @ts-ignore
public static SEEDED: org.bukkit.CropState;
// @ts-ignore
public static GERMINATED: org.bukkit.CropState;
// @ts-ignore
public static VERY_SMALL: org.bukkit.CropState;
// @ts-ignore
public static SMALL: org.bukkit.CropState;
// @ts-ignore
public static MEDIUM: org.bukkit.CropState;
// @ts-ignore
public static TALL: org.bukkit.CropState;
// @ts-ignore
public static VERY_TALL: org.bukkit.CropState;
// @ts-ignore
public static RIPE: org.bukkit.CropState;
// @ts-ignore
public static values(): org.bukkit.CropState[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.CropState;
/**
* Gets the associated data value representing this growth state
*/
// @ts-ignore
public getData(): number;
/**
* Gets the CropState with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.CropState;
}
}
}

View File

@@ -0,0 +1,30 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Difficulty extends java.lang.Enum {
// @ts-ignore
public static PEACEFUL: org.bukkit.Difficulty;
// @ts-ignore
public static EASY: org.bukkit.Difficulty;
// @ts-ignore
public static NORMAL: org.bukkit.Difficulty;
// @ts-ignore
public static HARD: org.bukkit.Difficulty;
// @ts-ignore
public static values(): org.bukkit.Difficulty[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Difficulty;
/**
* Gets the difficulty value associated with this Difficulty.
*/
// @ts-ignore
public getValue(): number;
/**
* Gets the Difficulty represented by the specified value
*/
// @ts-ignore
public static getByValue(value: number): org.bukkit.Difficulty;
}
}
}

View File

@@ -0,0 +1,89 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class DyeColor extends java.lang.Enum {
// @ts-ignore
public static WHITE: org.bukkit.DyeColor;
// @ts-ignore
public static ORANGE: org.bukkit.DyeColor;
// @ts-ignore
public static MAGENTA: org.bukkit.DyeColor;
// @ts-ignore
public static LIGHT_BLUE: org.bukkit.DyeColor;
// @ts-ignore
public static YELLOW: org.bukkit.DyeColor;
// @ts-ignore
public static LIME: org.bukkit.DyeColor;
// @ts-ignore
public static PINK: org.bukkit.DyeColor;
// @ts-ignore
public static GRAY: org.bukkit.DyeColor;
// @ts-ignore
public static LIGHT_GRAY: org.bukkit.DyeColor;
// @ts-ignore
public static CYAN: org.bukkit.DyeColor;
// @ts-ignore
public static PURPLE: org.bukkit.DyeColor;
// @ts-ignore
public static BLUE: org.bukkit.DyeColor;
// @ts-ignore
public static BROWN: org.bukkit.DyeColor;
// @ts-ignore
public static GREEN: org.bukkit.DyeColor;
// @ts-ignore
public static RED: org.bukkit.DyeColor;
// @ts-ignore
public static BLACK: org.bukkit.DyeColor;
// @ts-ignore
public static values(): org.bukkit.DyeColor[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.DyeColor;
/**
* Gets the associated wool data value representing this color.
*/
// @ts-ignore
public getWoolData(): number;
/**
* Gets the associated dye data value representing this color.
*/
// @ts-ignore
public getDyeData(): number;
/**
* Gets the color that this dye represents.
*/
// @ts-ignore
public getColor(): org.bukkit.Color;
/**
* Gets the firework color that this dye represents.
*/
// @ts-ignore
public getFireworkColor(): org.bukkit.Color;
/**
* Gets the DyeColor with the given wool data value.
*/
// @ts-ignore
public static getByWoolData(data: number): org.bukkit.DyeColor;
/**
* Gets the DyeColor with the given dye data value.
*/
// @ts-ignore
public static getByDyeData(data: number): org.bukkit.DyeColor;
/**
* Gets the DyeColor with the given color value.
*/
// @ts-ignore
public static getByColor(color: org.bukkit.Color): org.bukkit.DyeColor;
/**
* Gets the DyeColor with the given firework color value.
*/
// @ts-ignore
public static getByFireworkColor(color: org.bukkit.Color): org.bukkit.DyeColor;
/**
* Gets the DyeColor for the given name, possibly doing legacy transformations.
*/
// @ts-ignore
public static legacyValueOf(name: string): org.bukkit.DyeColor;
}
}
}

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Effect {
// @ts-ignore
class Type extends java.lang.Enum {
// @ts-ignore
public static SOUND: org.bukkit.Effect.Type;
// @ts-ignore
public static VISUAL: org.bukkit.Effect.Type;
// @ts-ignore
public static values(): org.bukkit.Effect.Type[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Effect.Type;
}
}
}
}

View File

@@ -0,0 +1,116 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Effect extends java.lang.Enum {
// @ts-ignore
public static CLICK2: org.bukkit.Effect;
// @ts-ignore
public static CLICK1: org.bukkit.Effect;
// @ts-ignore
public static BOW_FIRE: org.bukkit.Effect;
// @ts-ignore
public static DOOR_TOGGLE: org.bukkit.Effect;
// @ts-ignore
public static IRON_DOOR_TOGGLE: org.bukkit.Effect;
// @ts-ignore
public static TRAPDOOR_TOGGLE: org.bukkit.Effect;
// @ts-ignore
public static IRON_TRAPDOOR_TOGGLE: org.bukkit.Effect;
// @ts-ignore
public static FENCE_GATE_TOGGLE: org.bukkit.Effect;
// @ts-ignore
public static DOOR_CLOSE: org.bukkit.Effect;
// @ts-ignore
public static IRON_DOOR_CLOSE: org.bukkit.Effect;
// @ts-ignore
public static TRAPDOOR_CLOSE: org.bukkit.Effect;
// @ts-ignore
public static IRON_TRAPDOOR_CLOSE: org.bukkit.Effect;
// @ts-ignore
public static FENCE_GATE_CLOSE: org.bukkit.Effect;
// @ts-ignore
public static EXTINGUISH: org.bukkit.Effect;
// @ts-ignore
public static RECORD_PLAY: org.bukkit.Effect;
// @ts-ignore
public static GHAST_SHRIEK: org.bukkit.Effect;
// @ts-ignore
public static GHAST_SHOOT: org.bukkit.Effect;
// @ts-ignore
public static BLAZE_SHOOT: org.bukkit.Effect;
// @ts-ignore
public static ZOMBIE_CHEW_WOODEN_DOOR: org.bukkit.Effect;
// @ts-ignore
public static ZOMBIE_CHEW_IRON_DOOR: org.bukkit.Effect;
// @ts-ignore
public static ZOMBIE_DESTROY_DOOR: org.bukkit.Effect;
// @ts-ignore
public static SMOKE: org.bukkit.Effect;
// @ts-ignore
public static STEP_SOUND: org.bukkit.Effect;
// @ts-ignore
public static POTION_BREAK: org.bukkit.Effect;
// @ts-ignore
public static ENDER_SIGNAL: org.bukkit.Effect;
// @ts-ignore
public static MOBSPAWNER_FLAMES: org.bukkit.Effect;
// @ts-ignore
public static BREWING_STAND_BREW: org.bukkit.Effect;
// @ts-ignore
public static CHORUS_FLOWER_GROW: org.bukkit.Effect;
// @ts-ignore
public static CHORUS_FLOWER_DEATH: org.bukkit.Effect;
// @ts-ignore
public static PORTAL_TRAVEL: org.bukkit.Effect;
// @ts-ignore
public static ENDEREYE_LAUNCH: org.bukkit.Effect;
// @ts-ignore
public static FIREWORK_SHOOT: org.bukkit.Effect;
// @ts-ignore
public static VILLAGER_PLANT_GROW: org.bukkit.Effect;
// @ts-ignore
public static DRAGON_BREATH: org.bukkit.Effect;
// @ts-ignore
public static ANVIL_BREAK: org.bukkit.Effect;
// @ts-ignore
public static ANVIL_USE: org.bukkit.Effect;
// @ts-ignore
public static ANVIL_LAND: org.bukkit.Effect;
// @ts-ignore
public static ENDERDRAGON_SHOOT: org.bukkit.Effect;
// @ts-ignore
public static WITHER_BREAK_BLOCK: org.bukkit.Effect;
// @ts-ignore
public static WITHER_SHOOT: org.bukkit.Effect;
// @ts-ignore
public static ZOMBIE_INFECT: org.bukkit.Effect;
// @ts-ignore
public static ZOMBIE_CONVERTED_VILLAGER: org.bukkit.Effect;
// @ts-ignore
public static BAT_TAKEOFF: org.bukkit.Effect;
// @ts-ignore
public static END_GATEWAY_SPAWN: org.bukkit.Effect;
// @ts-ignore
public static ENDERDRAGON_GROWL: org.bukkit.Effect;
// @ts-ignore
public static values(): org.bukkit.Effect[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Effect;
/**
* Gets the ID for this effect.
*/
// @ts-ignore
public getId(): number;
// @ts-ignore
public getType(): org.bukkit.Effect.Type;
// @ts-ignore
public getData(): java.lang.Class;
/**
* Gets the Effect associated with the given ID.
*/
// @ts-ignore
public static getById(id: number): org.bukkit.Effect;
}
}
}

View File

@@ -0,0 +1,81 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class EntityEffect extends java.lang.Enum {
// @ts-ignore
public static ARROW_PARTICLES: org.bukkit.EntityEffect;
// @ts-ignore
public static RABBIT_JUMP: org.bukkit.EntityEffect;
// @ts-ignore
public static HURT: org.bukkit.EntityEffect;
// @ts-ignore
public static DEATH: org.bukkit.EntityEffect;
// @ts-ignore
public static WOLF_SMOKE: org.bukkit.EntityEffect;
// @ts-ignore
public static WOLF_HEARTS: org.bukkit.EntityEffect;
// @ts-ignore
public static WOLF_SHAKE: org.bukkit.EntityEffect;
// @ts-ignore
public static SHEEP_EAT: org.bukkit.EntityEffect;
// @ts-ignore
public static IRON_GOLEM_ROSE: org.bukkit.EntityEffect;
// @ts-ignore
public static VILLAGER_HEART: org.bukkit.EntityEffect;
// @ts-ignore
public static VILLAGER_ANGRY: org.bukkit.EntityEffect;
// @ts-ignore
public static VILLAGER_HAPPY: org.bukkit.EntityEffect;
// @ts-ignore
public static WITCH_MAGIC: org.bukkit.EntityEffect;
// @ts-ignore
public static ZOMBIE_TRANSFORM: org.bukkit.EntityEffect;
// @ts-ignore
public static FIREWORK_EXPLODE: org.bukkit.EntityEffect;
// @ts-ignore
public static LOVE_HEARTS: org.bukkit.EntityEffect;
// @ts-ignore
public static SQUID_ROTATE: org.bukkit.EntityEffect;
// @ts-ignore
public static ENTITY_POOF: org.bukkit.EntityEffect;
// @ts-ignore
public static GUARDIAN_TARGET: org.bukkit.EntityEffect;
// @ts-ignore
public static SHIELD_BLOCK: org.bukkit.EntityEffect;
// @ts-ignore
public static SHIELD_BREAK: org.bukkit.EntityEffect;
// @ts-ignore
public static ARMOR_STAND_HIT: org.bukkit.EntityEffect;
// @ts-ignore
public static THORNS_HURT: org.bukkit.EntityEffect;
// @ts-ignore
public static IRON_GOLEM_SHEATH: org.bukkit.EntityEffect;
// @ts-ignore
public static TOTEM_RESURRECT: org.bukkit.EntityEffect;
// @ts-ignore
public static HURT_DROWN: org.bukkit.EntityEffect;
// @ts-ignore
public static HURT_EXPLOSION: org.bukkit.EntityEffect;
// @ts-ignore
public static values(): org.bukkit.EntityEffect[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.EntityEffect;
/**
* Gets the data value of this EntityEffect
*/
// @ts-ignore
public getData(): number;
/**
* Gets entity superclass which this affect is applicable to.
*/
// @ts-ignore
public getApplicable(): java.lang.Class;
/**
* Gets the EntityEffect with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.EntityEffect;
}
}
}

View File

@@ -0,0 +1,73 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace FireworkEffect {
// @ts-ignore
class Builder extends java.lang.Object {
/**
* Specify the type of the firework effect.
*/
// @ts-ignore
public with(type: org.bukkit.FireworkEffect.Type): org.bukkit.FireworkEffect.Builder;
/**
* Add a flicker to the firework effect.
*/
// @ts-ignore
public withFlicker(): org.bukkit.FireworkEffect.Builder;
/**
* Set whether the firework effect should flicker.
*/
// @ts-ignore
public flicker(flicker: boolean): org.bukkit.FireworkEffect.Builder;
/**
* Add a trail to the firework effect.
*/
// @ts-ignore
public withTrail(): org.bukkit.FireworkEffect.Builder;
/**
* Set whether the firework effect should have a trail.
*/
// @ts-ignore
public trail(trail: boolean): org.bukkit.FireworkEffect.Builder;
/**
* Add a primary color to the firework effect.
*/
// @ts-ignore
public withColor(color: org.bukkit.Color): org.bukkit.FireworkEffect.Builder;
/**
* Add several primary colors to the firework effect.
*/
// @ts-ignore
public withColor(colors: org.bukkit.Color): org.bukkit.FireworkEffect.Builder;
/**
* Add several primary colors to the firework effect.
*/
// @ts-ignore
public withColor(colors: java.lang.Iterable): org.bukkit.FireworkEffect.Builder;
/**
* Add a fade color to the firework effect.
*/
// @ts-ignore
public withFade(color: org.bukkit.Color): org.bukkit.FireworkEffect.Builder;
/**
* Add several fade colors to the firework effect.
*/
// @ts-ignore
public withFade(colors: org.bukkit.Color): org.bukkit.FireworkEffect.Builder;
/**
* Add several fade colors to the firework effect.
*/
// @ts-ignore
public withFade(colors: java.lang.Iterable): org.bukkit.FireworkEffect.Builder;
/**
* Create a {@link FireworkEffect} from the current contents of this
* builder.
* <p>
* To successfully build, you must have specified at least one color.
*/
// @ts-ignore
public build(): org.bukkit.FireworkEffect;
}
}
}
}

View File

@@ -0,0 +1,24 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace FireworkEffect {
// @ts-ignore
class Type extends java.lang.Enum {
// @ts-ignore
public static BALL: org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static BALL_LARGE: org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static STAR: org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static BURST: org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static CREEPER: org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static values(): org.bukkit.FireworkEffect.Type[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.FireworkEffect.Type;
}
}
}
}

View File

@@ -0,0 +1,48 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class FireworkEffect extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Construct a firework effect.
*/
// @ts-ignore
public static builder(): org.bukkit.FireworkEffect.Builder;
/**
* Get whether the firework effect flickers.
*/
// @ts-ignore
public hasFlicker(): boolean;
/**
* Get whether the firework effect has a trail.
*/
// @ts-ignore
public hasTrail(): boolean;
/**
* Get the primary colors of the firework effect.
*/
// @ts-ignore
public getColors(): java.util.List;
/**
* Get the fade colors of the firework effect.
*/
// @ts-ignore
public getFadeColors(): java.util.List;
/**
* Get the type of the firework effect.
*/
// @ts-ignore
public getType(): org.bukkit.FireworkEffect.Type;
// @ts-ignore
public static deserialize(map: java.util.Map): org.bukkit.configuration.serialization.ConfigurationSerializable;
// @ts-ignore
public serialize(): java.util.Map;
// @ts-ignore
public toString(): string;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public equals(obj: java.lang.Object): boolean;
}
}
}

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class FluidCollisionMode extends java.lang.Enum {
// @ts-ignore
public static NEVER: org.bukkit.FluidCollisionMode;
// @ts-ignore
public static SOURCE_ONLY: org.bukkit.FluidCollisionMode;
// @ts-ignore
public static ALWAYS: org.bukkit.FluidCollisionMode;
// @ts-ignore
public static values(): org.bukkit.FluidCollisionMode[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.FluidCollisionMode;
}
}
}

View File

@@ -0,0 +1,30 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class GameMode extends java.lang.Enum {
// @ts-ignore
public static CREATIVE: org.bukkit.GameMode;
// @ts-ignore
public static SURVIVAL: org.bukkit.GameMode;
// @ts-ignore
public static ADVENTURE: org.bukkit.GameMode;
// @ts-ignore
public static SPECTATOR: org.bukkit.GameMode;
// @ts-ignore
public static values(): org.bukkit.GameMode[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.GameMode;
/**
* Gets the mode value associated with this GameMode
*/
// @ts-ignore
public getValue(): number;
/**
* Gets the GameMode represented by the specified value
*/
// @ts-ignore
public static getByValue(value: number): org.bukkit.GameMode;
}
}
}

View File

@@ -0,0 +1,80 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class GameRule extends java.lang.Object {
// @ts-ignore
public static ANNOUNCE_ADVANCEMENTS: org.bukkit.GameRule;
// @ts-ignore
public static COMMAND_BLOCK_OUTPUT: org.bukkit.GameRule;
// @ts-ignore
public static DISABLE_ELYTRA_MOVEMENT_CHECK: org.bukkit.GameRule;
// @ts-ignore
public static DO_DAYLIGHT_CYCLE: org.bukkit.GameRule;
// @ts-ignore
public static DO_ENTITY_DROPS: org.bukkit.GameRule;
// @ts-ignore
public static DO_FIRE_TICK: org.bukkit.GameRule;
// @ts-ignore
public static DO_LIMITED_CRAFTING: org.bukkit.GameRule;
// @ts-ignore
public static DO_MOB_LOOT: org.bukkit.GameRule;
// @ts-ignore
public static DO_MOB_SPAWNING: org.bukkit.GameRule;
// @ts-ignore
public static DO_TILE_DROPS: org.bukkit.GameRule;
// @ts-ignore
public static DO_WEATHER_CYCLE: org.bukkit.GameRule;
// @ts-ignore
public static KEEP_INVENTORY: org.bukkit.GameRule;
// @ts-ignore
public static LOG_ADMIN_COMMANDS: org.bukkit.GameRule;
// @ts-ignore
public static MOB_GRIEFING: org.bukkit.GameRule;
// @ts-ignore
public static NATURAL_REGENERATION: org.bukkit.GameRule;
// @ts-ignore
public static REDUCED_DEBUG_INFO: org.bukkit.GameRule;
// @ts-ignore
public static SEND_COMMAND_FEEDBACK: org.bukkit.GameRule;
// @ts-ignore
public static SHOW_DEATH_MESSAGES: org.bukkit.GameRule;
// @ts-ignore
public static SPECTATORS_GENERATE_CHUNKS: org.bukkit.GameRule;
// @ts-ignore
public static DISABLE_RAIDS: org.bukkit.GameRule;
// @ts-ignore
public static RANDOM_TICK_SPEED: org.bukkit.GameRule;
// @ts-ignore
public static SPAWN_RADIUS: org.bukkit.GameRule;
// @ts-ignore
public static MAX_ENTITY_CRAMMING: org.bukkit.GameRule;
// @ts-ignore
public static MAX_COMMAND_CHAIN_LENGTH: org.bukkit.GameRule;
/**
* Get the name of this GameRule.
*/
// @ts-ignore
public getName(): string;
/**
* Get the type of this rule.
*/
// @ts-ignore
public getType(): java.lang.Class;
// @ts-ignore
public equals(obj: java.lang.Object): boolean;
// @ts-ignore
public toString(): string;
/**
* Get a {@link GameRule} by its name.
*/
// @ts-ignore
public static getByName(rule: string): org.bukkit.GameRule;
/**
* Get an immutable collection of {@link GameRule}s.
*/
// @ts-ignore
public static values(): org.bukkit.GameRule[];
}
}
}

View File

@@ -0,0 +1,28 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class GrassSpecies extends java.lang.Enum {
// @ts-ignore
public static DEAD: org.bukkit.GrassSpecies;
// @ts-ignore
public static NORMAL: org.bukkit.GrassSpecies;
// @ts-ignore
public static FERN_LIKE: org.bukkit.GrassSpecies;
// @ts-ignore
public static values(): org.bukkit.GrassSpecies[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.GrassSpecies;
/**
* Gets the associated data value representing this species
*/
// @ts-ignore
public getData(): number;
/**
* Gets the GrassSpecies with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.GrassSpecies;
}
}
}

View File

@@ -0,0 +1,51 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Instrument extends java.lang.Enum {
// @ts-ignore
public static PIANO: org.bukkit.Instrument;
// @ts-ignore
public static BASS_DRUM: org.bukkit.Instrument;
// @ts-ignore
public static SNARE_DRUM: org.bukkit.Instrument;
// @ts-ignore
public static STICKS: org.bukkit.Instrument;
// @ts-ignore
public static BASS_GUITAR: org.bukkit.Instrument;
// @ts-ignore
public static FLUTE: org.bukkit.Instrument;
// @ts-ignore
public static BELL: org.bukkit.Instrument;
// @ts-ignore
public static GUITAR: org.bukkit.Instrument;
// @ts-ignore
public static CHIME: org.bukkit.Instrument;
// @ts-ignore
public static XYLOPHONE: org.bukkit.Instrument;
// @ts-ignore
public static IRON_XYLOPHONE: org.bukkit.Instrument;
// @ts-ignore
public static COW_BELL: org.bukkit.Instrument;
// @ts-ignore
public static DIDGERIDOO: org.bukkit.Instrument;
// @ts-ignore
public static BIT: org.bukkit.Instrument;
// @ts-ignore
public static BANJO: org.bukkit.Instrument;
// @ts-ignore
public static PLING: org.bukkit.Instrument;
// @ts-ignore
public static values(): org.bukkit.Instrument[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Instrument;
// @ts-ignore
public getType(): number;
/**
* Get an instrument by its type ID.
*/
// @ts-ignore
public static getByType(type: number): org.bukkit.Instrument;
}
}
}

View File

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

View File

@@ -0,0 +1,270 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Location extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Constructs a new Location with the given coordinates
*/
// @ts-ignore
constructor(world: org.bukkit.World, x: number, y: number, z: number)
/**
* Constructs a new Location with the given coordinates and direction
*/
// @ts-ignore
constructor(world: org.bukkit.World, x: number, y: number, z: number, yaw: number, pitch: number)
/**
* Sets the world that this location resides in
*/
// @ts-ignore
public setWorld(world: org.bukkit.World): void;
/**
* Checks if world in this location is present and loaded.
*/
// @ts-ignore
public isWorldLoaded(): boolean;
/**
* Gets the world that this location resides in
*/
// @ts-ignore
public getWorld(): org.bukkit.World;
/**
* Gets the chunk at the represented location
*/
// @ts-ignore
public getChunk(): org.bukkit.Chunk;
/**
* Gets the block at the represented location
*/
// @ts-ignore
public getBlock(): org.bukkit.block.Block;
/**
* Sets the x-coordinate of this location
*/
// @ts-ignore
public setX(x: number): void;
/**
* Gets the x-coordinate of this location
*/
// @ts-ignore
public getX(): number;
/**
* Gets the floored value of the X component, indicating the block that
* this location is contained with.
*/
// @ts-ignore
public getBlockX(): number;
/**
* Sets the y-coordinate of this location
*/
// @ts-ignore
public setY(y: number): void;
/**
* Gets the y-coordinate of this location
*/
// @ts-ignore
public getY(): number;
/**
* Gets the floored value of the Y component, indicating the block that
* this location is contained with.
*/
// @ts-ignore
public getBlockY(): number;
/**
* Sets the z-coordinate of this location
*/
// @ts-ignore
public setZ(z: number): void;
/**
* Gets the z-coordinate of this location
*/
// @ts-ignore
public getZ(): number;
/**
* Gets the floored value of the Z component, indicating the block that
* this location is contained with.
*/
// @ts-ignore
public getBlockZ(): number;
/**
* Sets the yaw of this location, measured in degrees.
* <ul>
* <li>A yaw of 0 or 360 represents the positive z direction.
* <li>A yaw of 180 represents the negative z direction.
* <li>A yaw of 90 represents the negative x direction.
* <li>A yaw of 270 represents the positive x direction.
* </ul>
* Increasing yaw values are the equivalent of turning to your
* right-facing, increasing the scale of the next respective axis, and
* decreasing the scale of the previous axis.
*/
// @ts-ignore
public setYaw(yaw: number): void;
/**
* Gets the yaw of this location, measured in degrees.
* <ul>
* <li>A yaw of 0 or 360 represents the positive z direction.
* <li>A yaw of 180 represents the negative z direction.
* <li>A yaw of 90 represents the negative x direction.
* <li>A yaw of 270 represents the positive x direction.
* </ul>
* Increasing yaw values are the equivalent of turning to your
* right-facing, increasing the scale of the next respective axis, and
* decreasing the scale of the previous axis.
*/
// @ts-ignore
public getYaw(): number;
/**
* Sets the pitch of this location, measured in degrees.
* <ul>
* <li>A pitch of 0 represents level forward facing.
* <li>A pitch of 90 represents downward facing, or negative y
* direction.
* <li>A pitch of -90 represents upward facing, or positive y direction.
* </ul>
* Increasing pitch values the equivalent of looking down.
*/
// @ts-ignore
public setPitch(pitch: number): void;
/**
* Gets the pitch of this location, measured in degrees.
* <ul>
* <li>A pitch of 0 represents level forward facing.
* <li>A pitch of 90 represents downward facing, or negative y
* direction.
* <li>A pitch of -90 represents upward facing, or positive y direction.
* </ul>
* Increasing pitch values the equivalent of looking down.
*/
// @ts-ignore
public getPitch(): number;
/**
* Gets a unit-vector pointing in the direction that this Location is
* facing.
*/
// @ts-ignore
public getDirection(): org.bukkit.util.Vector;
/**
* Sets the {@link #getYaw() yaw} and {@link #getPitch() pitch} to point
* in the direction of the vector.
*/
// @ts-ignore
public setDirection(vector: org.bukkit.util.Vector): org.bukkit.Location;
/**
* Adds the location by another.
*/
// @ts-ignore
public add(vec: org.bukkit.Location): org.bukkit.Location;
/**
* Adds the location by a vector.
*/
// @ts-ignore
public add(vec: org.bukkit.util.Vector): org.bukkit.Location;
/**
* Adds the location by another. Not world-aware.
*/
// @ts-ignore
public add(x: number, y: number, z: number): org.bukkit.Location;
/**
* Subtracts the location by another.
*/
// @ts-ignore
public subtract(vec: org.bukkit.Location): org.bukkit.Location;
/**
* Subtracts the location by a vector.
*/
// @ts-ignore
public subtract(vec: org.bukkit.util.Vector): org.bukkit.Location;
/**
* Subtracts the location by another. Not world-aware and
* orientation independent.
*/
// @ts-ignore
public subtract(x: number, y: number, z: number): org.bukkit.Location;
/**
* Gets the magnitude of the location, defined as sqrt(x^2+y^2+z^2). The
* value of this method is not cached and uses a costly square-root
* function, so do not repeatedly call this method to get the location's
* magnitude. NaN will be returned if the inner result of the sqrt()
* function overflows, which will be caused if the length is too long. Not
* world-aware and orientation independent.
*/
// @ts-ignore
public length(): number;
/**
* Gets the magnitude of the location squared. Not world-aware and
* orientation independent.
*/
// @ts-ignore
public lengthSquared(): number;
/**
* Get the distance between this location and another. The value of this
* method is not cached and uses a costly square-root function, so do not
* repeatedly call this method to get the location's magnitude. NaN will
* be returned if the inner result of the sqrt() function overflows, which
* will be caused if the distance is too long.
*/
// @ts-ignore
public distance(o: org.bukkit.Location): number;
/**
* Get the squared distance between this location and another.
*/
// @ts-ignore
public distanceSquared(o: org.bukkit.Location): number;
/**
* Performs scalar multiplication, multiplying all components with a
* scalar. Not world-aware.
*/
// @ts-ignore
public multiply(m: number): org.bukkit.Location;
/**
* Zero this location's components. Not world-aware.
*/
// @ts-ignore
public zero(): org.bukkit.Location;
// @ts-ignore
public equals(obj: java.lang.Object): boolean;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public toString(): string;
/**
* Constructs a new {@link Vector} based on this Location
*/
// @ts-ignore
public toVector(): org.bukkit.util.Vector;
// @ts-ignore
public clone(): org.bukkit.Location;
/**
* Check if each component of this Location is finite.
*/
// @ts-ignore
public checkFinite(): void;
/**
* Safely converts a double (location coordinate) to an int (block
* coordinate)
*/
// @ts-ignore
public static locToBlock(loc: number): number;
// @ts-ignore
public serialize(): java.util.Map;
/**
* Required method for deserialization
*/
// @ts-ignore
public static deserialize(args: java.util.Map): org.bukkit.Location;
/**
* Normalizes the given yaw angle to a value between <code>+/-180</code>
* degrees.
*/
// @ts-ignore
public static normalizeYaw(yaw: number): number;
/**
* Normalizes the given pitch angle to a value between <code>+/-90</code>
* degrees.
*/
// @ts-ignore
public static normalizePitch(pitch: number): number;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface Nameable {
/**
* Gets the custom name on a mob or block. If there is no name this method
* will return null.
* <p>
* This value has no effect on players, they will always use their real
* name.
*/
// @ts-ignore
getCustomName(): string;
/**
* Sets a custom name on a mob or block. This name will be used in death
* messages and can be sent to the client as a nameplate over the mob.
* <p>
* Setting the name to null or an empty string will clear it.
* <p>
* This value has no effect on players, they will always use their real
* name.
*/
// @ts-ignore
setCustomName(name: string): void;
}
}
}

View File

@@ -0,0 +1,48 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class NamespacedKey extends java.lang.Object {
/**
* Create a key in a specific namespace.
*/
// @ts-ignore
constructor(namespace: string, key: string)
/**
* Create a key in the plugin's namespace.
* <p>
* Namespaces may only contain lowercase alphanumeric characters, periods,
* underscores, and hyphens.
* <p>
* Keys may only contain lowercase alphanumeric characters, periods,
* underscores, hyphens, and forward slashes.
*/
// @ts-ignore
constructor(plugin: org.bukkit.plugin.Plugin, key: string)
// @ts-ignore
public static MINECRAFT: string;
// @ts-ignore
public static BUKKIT: string;
// @ts-ignore
public getNamespace(): string;
// @ts-ignore
public getKey(): string;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public equals(obj: java.lang.Object): boolean;
// @ts-ignore
public toString(): string;
/**
* Return a new random key in the {@link #BUKKIT} namespace.
*/
// @ts-ignore
public static randomKey(): org.bukkit.NamespacedKey;
/**
* Get a key in the Minecraft namespace.
*/
// @ts-ignore
public static minecraft(key: string): org.bukkit.NamespacedKey;
}
}
}

View File

@@ -0,0 +1,20 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class NetherWartsState extends java.lang.Enum {
// @ts-ignore
public static SEEDED: org.bukkit.NetherWartsState;
// @ts-ignore
public static STAGE_ONE: org.bukkit.NetherWartsState;
// @ts-ignore
public static STAGE_TWO: org.bukkit.NetherWartsState;
// @ts-ignore
public static RIPE: org.bukkit.NetherWartsState;
// @ts-ignore
public static values(): org.bukkit.NetherWartsState[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.NetherWartsState;
}
}
}

View File

@@ -0,0 +1,57 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Note {
// @ts-ignore
class Tone extends java.lang.Enum {
// @ts-ignore
public static G: org.bukkit.Note.Tone;
// @ts-ignore
public static A: org.bukkit.Note.Tone;
// @ts-ignore
public static B: org.bukkit.Note.Tone;
// @ts-ignore
public static C: org.bukkit.Note.Tone;
// @ts-ignore
public static D: org.bukkit.Note.Tone;
// @ts-ignore
public static E: org.bukkit.Note.Tone;
// @ts-ignore
public static F: org.bukkit.Note.Tone;
// @ts-ignore
public static TONES_COUNT: number;
// @ts-ignore
public static values(): org.bukkit.Note.Tone[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Note.Tone;
/**
* Returns the not sharped id of this tone.
*/
// @ts-ignore
public getId(): number;
/**
* Returns the id of this tone. These method allows to return the
* sharped id of the tone. If the tone couldn't be sharped it always
* return the not sharped id of this tone.
*/
// @ts-ignore
public getId(sharped: boolean): number;
/**
* Returns if this tone could be sharped.
*/
// @ts-ignore
public isSharpable(): boolean;
/**
* Returns if this tone id is the sharped id of the tone.
*/
// @ts-ignore
public isSharped(id: number): boolean;
/**
* Returns the tone to id. Also returning the semitones.
*/
// @ts-ignore
public static getById(id: number): org.bukkit.Note.Tone;
}
}
}
}

View File

@@ -0,0 +1,63 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Note extends java.lang.Object {
/**
* Creates a new note.
*/
// @ts-ignore
constructor(note: number)
/**
* Creates a new note.
*/
// @ts-ignore
constructor(octave: number, tone: org.bukkit.Note.Tone, sharped: boolean)
/**
* Creates a new note for a flat tone, such as A-flat.
*/
// @ts-ignore
public static flat(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note;
/**
* Creates a new note for a sharp tone, such as A-sharp.
*/
// @ts-ignore
public static sharp(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note;
/**
* Creates a new note for a natural tone, such as A-natural.
*/
// @ts-ignore
public static natural(octave: number, tone: org.bukkit.Note.Tone): org.bukkit.Note;
// @ts-ignore
public sharped(): org.bukkit.Note;
// @ts-ignore
public flattened(): org.bukkit.Note;
/**
* Returns the internal id of this note.
*/
// @ts-ignore
public getId(): number;
/**
* Returns the octave of this note.
*/
// @ts-ignore
public getOctave(): number;
/**
* Returns the tone of this note.
*/
// @ts-ignore
public getTone(): org.bukkit.Note.Tone;
/**
* Returns if this note is sharped.
*/
// @ts-ignore
public isSharped(): boolean;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public equals(obj: java.lang.Object): boolean;
// @ts-ignore
public toString(): string;
}
}
}

View File

@@ -0,0 +1,80 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface OfflinePlayer extends org.bukkit.permissions.ServerOperator, org.bukkit.entity.AnimalTamer, org.bukkit.configuration.serialization.ConfigurationSerializable {
/**
* Checks if this player is currently online
*/
// @ts-ignore
isOnline(): boolean;
/**
* Returns the name of this player
* <p>
* Names are no longer unique past a single game session. For persistent storage
* it is recommended that you use {@link #getUniqueId()} instead.
*/
// @ts-ignore
getName(): string;
/**
* Returns the UUID of this player
*/
// @ts-ignore
getUniqueId(): java.util.UUID;
/**
* Checks if this player is banned or not
*/
// @ts-ignore
isBanned(): boolean;
/**
* Checks if this player is whitelisted or not
*/
// @ts-ignore
isWhitelisted(): boolean;
/**
* Sets if this player is whitelisted or not
*/
// @ts-ignore
setWhitelisted(value: boolean): void;
/**
* Gets a {@link Player} object that this represents, if there is one
* <p>
* If the player is online, this will return that player. Otherwise,
* it will return null.
*/
// @ts-ignore
getPlayer(): org.bukkit.entity.Player;
/**
* Gets the first date and time that this player was witnessed on this
* server.
* <p>
* If the player has never played before, this will return 0. Otherwise,
* it will be the amount of milliseconds since midnight, January 1, 1970
* UTC.
*/
// @ts-ignore
getFirstPlayed(): number;
/**
* Gets the last date and time that this player was witnessed on this
* server.
* <p>
* If the player has never played before, this will return 0. Otherwise,
* it will be the amount of milliseconds since midnight, January 1, 1970
* UTC.
*/
// @ts-ignore
getLastPlayed(): number;
/**
* Checks if this player has played on this server before.
*/
// @ts-ignore
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.
*/
// @ts-ignore
getBedSpawnLocation(): org.bukkit.Location;
}
}
}

View File

@@ -0,0 +1,22 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Particle {
// @ts-ignore
class DustOptions extends java.lang.Object {
// @ts-ignore
constructor(color: org.bukkit.Color, size: number)
/**
* The color of the particles to be displayed.
*/
// @ts-ignore
public getColor(): org.bukkit.Color;
/**
* Relative size of the particle.
*/
// @ts-ignore
public getSize(): number;
}
}
}
}

View File

@@ -0,0 +1,145 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Particle extends java.lang.Enum {
// @ts-ignore
public static EXPLOSION_NORMAL: org.bukkit.Particle;
// @ts-ignore
public static EXPLOSION_LARGE: org.bukkit.Particle;
// @ts-ignore
public static EXPLOSION_HUGE: org.bukkit.Particle;
// @ts-ignore
public static FIREWORKS_SPARK: org.bukkit.Particle;
// @ts-ignore
public static WATER_BUBBLE: org.bukkit.Particle;
// @ts-ignore
public static WATER_SPLASH: org.bukkit.Particle;
// @ts-ignore
public static WATER_WAKE: org.bukkit.Particle;
// @ts-ignore
public static SUSPENDED: org.bukkit.Particle;
// @ts-ignore
public static SUSPENDED_DEPTH: org.bukkit.Particle;
// @ts-ignore
public static CRIT: org.bukkit.Particle;
// @ts-ignore
public static CRIT_MAGIC: org.bukkit.Particle;
// @ts-ignore
public static SMOKE_NORMAL: org.bukkit.Particle;
// @ts-ignore
public static SMOKE_LARGE: org.bukkit.Particle;
// @ts-ignore
public static SPELL: org.bukkit.Particle;
// @ts-ignore
public static SPELL_INSTANT: org.bukkit.Particle;
// @ts-ignore
public static SPELL_MOB: org.bukkit.Particle;
// @ts-ignore
public static SPELL_MOB_AMBIENT: org.bukkit.Particle;
// @ts-ignore
public static SPELL_WITCH: org.bukkit.Particle;
// @ts-ignore
public static DRIP_WATER: org.bukkit.Particle;
// @ts-ignore
public static DRIP_LAVA: org.bukkit.Particle;
// @ts-ignore
public static VILLAGER_ANGRY: org.bukkit.Particle;
// @ts-ignore
public static VILLAGER_HAPPY: org.bukkit.Particle;
// @ts-ignore
public static TOWN_AURA: org.bukkit.Particle;
// @ts-ignore
public static NOTE: org.bukkit.Particle;
// @ts-ignore
public static PORTAL: org.bukkit.Particle;
// @ts-ignore
public static ENCHANTMENT_TABLE: org.bukkit.Particle;
// @ts-ignore
public static FLAME: org.bukkit.Particle;
// @ts-ignore
public static LAVA: org.bukkit.Particle;
// @ts-ignore
public static CLOUD: org.bukkit.Particle;
// @ts-ignore
public static REDSTONE: org.bukkit.Particle;
// @ts-ignore
public static SNOWBALL: org.bukkit.Particle;
// @ts-ignore
public static SNOW_SHOVEL: org.bukkit.Particle;
// @ts-ignore
public static SLIME: org.bukkit.Particle;
// @ts-ignore
public static HEART: org.bukkit.Particle;
// @ts-ignore
public static BARRIER: org.bukkit.Particle;
// @ts-ignore
public static ITEM_CRACK: org.bukkit.Particle;
// @ts-ignore
public static BLOCK_CRACK: org.bukkit.Particle;
// @ts-ignore
public static BLOCK_DUST: org.bukkit.Particle;
// @ts-ignore
public static WATER_DROP: org.bukkit.Particle;
// @ts-ignore
public static MOB_APPEARANCE: org.bukkit.Particle;
// @ts-ignore
public static DRAGON_BREATH: org.bukkit.Particle;
// @ts-ignore
public static END_ROD: org.bukkit.Particle;
// @ts-ignore
public static DAMAGE_INDICATOR: org.bukkit.Particle;
// @ts-ignore
public static SWEEP_ATTACK: org.bukkit.Particle;
// @ts-ignore
public static FALLING_DUST: org.bukkit.Particle;
// @ts-ignore
public static TOTEM: org.bukkit.Particle;
// @ts-ignore
public static SPIT: org.bukkit.Particle;
// @ts-ignore
public static SQUID_INK: org.bukkit.Particle;
// @ts-ignore
public static BUBBLE_POP: org.bukkit.Particle;
// @ts-ignore
public static CURRENT_DOWN: org.bukkit.Particle;
// @ts-ignore
public static BUBBLE_COLUMN_UP: org.bukkit.Particle;
// @ts-ignore
public static NAUTILUS: org.bukkit.Particle;
// @ts-ignore
public static DOLPHIN: org.bukkit.Particle;
// @ts-ignore
public static SNEEZE: org.bukkit.Particle;
// @ts-ignore
public static CAMPFIRE_COSY_SMOKE: org.bukkit.Particle;
// @ts-ignore
public static CAMPFIRE_SIGNAL_SMOKE: org.bukkit.Particle;
// @ts-ignore
public static COMPOSTER: org.bukkit.Particle;
// @ts-ignore
public static FLASH: org.bukkit.Particle;
// @ts-ignore
public static FALLING_LAVA: org.bukkit.Particle;
// @ts-ignore
public static LANDING_LAVA: org.bukkit.Particle;
// @ts-ignore
public static FALLING_WATER: org.bukkit.Particle;
// @ts-ignore
public static LEGACY_BLOCK_CRACK: org.bukkit.Particle;
// @ts-ignore
public static LEGACY_BLOCK_DUST: org.bukkit.Particle;
// @ts-ignore
public static LEGACY_FALLING_DUST: org.bukkit.Particle;
// @ts-ignore
public static values(): org.bukkit.Particle[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Particle;
/**
* Returns the required data type for the particle
*/
// @ts-ignore
public getDataType(): java.lang.Class;
}
}
}

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class PortalType extends java.lang.Enum {
// @ts-ignore
public static NETHER: org.bukkit.PortalType;
// @ts-ignore
public static ENDER: org.bukkit.PortalType;
// @ts-ignore
public static CUSTOM: org.bukkit.PortalType;
// @ts-ignore
public static values(): org.bukkit.PortalType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.PortalType;
}
}
}

View File

@@ -0,0 +1,18 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Registry {
// @ts-ignore
class SimpleRegistry extends java.lang.Object implements org.bukkit.Registry {
// @ts-ignore
constructor(type: java.lang.Class)
// @ts-ignore
constructor(type: java.lang.Class, predicate: java.util.function$.Predicate)
// @ts-ignore
public get(key: org.bukkit.NamespacedKey): java.lang.Enum;
// @ts-ignore
public iterator(): java.util.Iterator;
}
}
}
}

View File

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

View File

@@ -0,0 +1,38 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Rotation extends java.lang.Enum {
// @ts-ignore
public static NONE: org.bukkit.Rotation;
// @ts-ignore
public static CLOCKWISE_45: org.bukkit.Rotation;
// @ts-ignore
public static CLOCKWISE: org.bukkit.Rotation;
// @ts-ignore
public static CLOCKWISE_135: org.bukkit.Rotation;
// @ts-ignore
public static FLIPPED: org.bukkit.Rotation;
// @ts-ignore
public static FLIPPED_45: org.bukkit.Rotation;
// @ts-ignore
public static COUNTER_CLOCKWISE: org.bukkit.Rotation;
// @ts-ignore
public static COUNTER_CLOCKWISE_45: org.bukkit.Rotation;
// @ts-ignore
public static values(): org.bukkit.Rotation[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Rotation;
/**
* Rotate clockwise by 90 degrees.
*/
// @ts-ignore
public rotateClockwise(): org.bukkit.Rotation;
/**
* Rotate counter-clockwise by 90 degrees.
*/
// @ts-ignore
public rotateCounterClockwise(): org.bukkit.Rotation;
}
}
}

View File

@@ -0,0 +1,28 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class SandstoneType extends java.lang.Enum {
// @ts-ignore
public static CRACKED: org.bukkit.SandstoneType;
// @ts-ignore
public static GLYPHED: org.bukkit.SandstoneType;
// @ts-ignore
public static SMOOTH: org.bukkit.SandstoneType;
// @ts-ignore
public static values(): org.bukkit.SandstoneType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.SandstoneType;
/**
* Gets the associated data value representing this type of sandstone
*/
// @ts-ignore
public getData(): number;
/**
* Gets the type of sandstone with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.SandstoneType;
}
}
}

View File

@@ -0,0 +1,767 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface Server extends org.bukkit.plugin.messaging.PluginMessageRecipient {
// @ts-ignore
BROADCAST_CHANNEL_ADMINISTRATIVE: string;
// @ts-ignore
BROADCAST_CHANNEL_USERS: string;
/**
* Gets the name of this server implementation.
*/
// @ts-ignore
getName(): string;
/**
* Gets the version string of this server implementation.
*/
// @ts-ignore
getVersion(): string;
/**
* Gets the Bukkit version that this server is running.
*/
// @ts-ignore
getBukkitVersion(): string;
/**
* Gets a view of all currently logged in players. This {@linkplain
* Collections#unmodifiableCollection(Collection) view} is a reused
* object, making some operations like {@link Collection#size()}
* zero-allocation.
* <p>
* The collection is a view backed by the internal representation, such
* that, changes to the internal state of the server will be reflected
* immediately. However, the reuse of the returned collection (identity)
* is not strictly guaranteed for future or all implementations. Casting
* the collection, or relying on interface implementations (like {@link
* Serializable} or {@link List}), is deprecated.
* <p>
* Iteration behavior is undefined outside of self-contained main-thread
* uses. Normal and immediate iterator use without consequences that
* affect the collection are fully supported. The effects following
* (non-exhaustive) {@link Entity#teleport(Location) teleportation},
* {@link Player#setHealth(double) death}, and {@link Player#kickPlayer(
* String) kicking} are undefined. Any use of this collection from
* asynchronous threads is unsafe.
* <p>
* For safe consequential iteration or mimicking the old array behavior,
* using {@link Collection#toArray(Object[])} is recommended. For making
* snapshots, {@link ImmutableList#copyOf(Collection)} is recommended.
*/
// @ts-ignore
getOnlinePlayers(): java.util.Collection;
/**
* Get the maximum amount of players which can login to this server.
*/
// @ts-ignore
getMaxPlayers(): number;
/**
* Get the game port that the server runs on.
*/
// @ts-ignore
getPort(): number;
/**
* Get the view distance from this server.
*/
// @ts-ignore
getViewDistance(): number;
/**
* Get the IP that this server is bound to, or empty string if not
* specified.
*/
// @ts-ignore
getIp(): string;
/**
* Get world type (level-type setting) for default world.
*/
// @ts-ignore
getWorldType(): string;
/**
* Get generate-structures setting.
*/
// @ts-ignore
getGenerateStructures(): boolean;
/**
* Gets whether this server allows the End or not.
*/
// @ts-ignore
getAllowEnd(): boolean;
/**
* Gets whether this server allows the Nether or not.
*/
// @ts-ignore
getAllowNether(): boolean;
/**
* Gets whether this server has a whitelist or not.
*/
// @ts-ignore
hasWhitelist(): boolean;
/**
* Sets if the server is whitelisted.
*/
// @ts-ignore
setWhitelist(value: boolean): void;
/**
* Gets a list of whitelisted players.
*/
// @ts-ignore
getWhitelistedPlayers(): java.util.Set;
/**
* Reloads the whitelist from disk.
*/
// @ts-ignore
reloadWhitelist(): void;
/**
* Broadcast a message to all players.
* <p>
* This is the same as calling {@link #broadcast(java.lang.String,
* java.lang.String)} to {@link #BROADCAST_CHANNEL_USERS}
*/
// @ts-ignore
broadcastMessage(message: string): number;
/**
* Gets the name of the update folder. The update folder is used to safely
* update plugins at the right moment on a plugin load.
* <p>
* The update folder name is relative to the plugins folder.
*/
// @ts-ignore
getUpdateFolder(): string;
/**
* Gets the update folder. The update folder is used to safely update
* plugins at the right moment on a plugin load.
*/
// @ts-ignore
getUpdateFolderFile(): java.io.File;
/**
* Gets the value of the connection throttle setting.
*/
// @ts-ignore
getConnectionThrottle(): number;
/**
* Gets default ticks per animal spawns value.
* <p>
* <b>Example Usage:</b>
* <ul>
* <li>A value of 1 will mean the server will attempt to spawn monsters
* every tick.
* <li>A value of 400 will mean the server will attempt to spawn monsters
* every 400th tick.
* <li>A value below 0 will be reset back to Minecraft's default.
* </ul>
* <p>
* <b>Note:</b> If set to 0, animal spawning will be disabled. We
* recommend using spawn-animals to control this instead.
* <p>
* Minecraft default: 400.
*/
// @ts-ignore
getTicksPerAnimalSpawns(): number;
/**
* Gets the default ticks per monster spawns value.
* <p>
* <b>Example Usage:</b>
* <ul>
* <li>A value of 1 will mean the server will attempt to spawn monsters
* every tick.
* <li>A value of 400 will mean the server will attempt to spawn monsters
* every 400th tick.
* <li>A value below 0 will be reset back to Minecraft's default.
* </ul>
* <p>
* <b>Note:</b> If set to 0, monsters spawning will be disabled. We
* recommend using spawn-monsters to control this instead.
* <p>
* Minecraft default: 1.
*/
// @ts-ignore
getTicksPerMonsterSpawns(): number;
/**
* Gets a player object by the given username.
* <p>
* This method may not return objects for offline players.
*/
// @ts-ignore
getPlayer(name: string): org.bukkit.entity.Player;
/**
* Gets the player with the exact given name, case insensitive.
*/
// @ts-ignore
getPlayerExact(name: string): org.bukkit.entity.Player;
/**
* Attempts to match any players with the given name, and returns a list
* of all possibly matches.
* <p>
* This list is not sorted in any particular order. If an exact match is
* found, the returned list will only contain a single result.
*/
// @ts-ignore
matchPlayer(name: string): java.util.List;
/**
* Gets the player with the given UUID.
*/
// @ts-ignore
getPlayer(id: java.util.UUID): org.bukkit.entity.Player;
/**
* Gets the plugin manager for interfacing with plugins.
*/
// @ts-ignore
getPluginManager(): org.bukkit.plugin.PluginManager;
/**
* Gets the scheduler for managing scheduled events.
*/
// @ts-ignore
getScheduler(): org.bukkit.scheduler.BukkitScheduler;
/**
* Gets a services manager.
*/
// @ts-ignore
getServicesManager(): org.bukkit.plugin.ServicesManager;
/**
* Gets a list of all worlds on this server.
*/
// @ts-ignore
getWorlds(): java.util.List;
/**
* Creates or loads a world with the given name using the specified
* options.
* <p>
* If the world is already loaded, it will just return the equivalent of
* getWorld(creator.name()).
*/
// @ts-ignore
createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World;
/**
* Unloads a world with the given name.
*/
// @ts-ignore
unloadWorld(name: string, save: boolean): boolean;
/**
* Unloads the given world.
*/
// @ts-ignore
unloadWorld(world: org.bukkit.World, save: boolean): boolean;
/**
* Gets the world with the given name.
*/
// @ts-ignore
getWorld(name: string): org.bukkit.World;
/**
* Gets the world from the given Unique ID.
*/
// @ts-ignore
getWorld(uid: java.util.UUID): org.bukkit.World;
/**
* Gets the map from the given item ID.
*/
// @ts-ignore
getMap(id: number): org.bukkit.map.MapView;
/**
* Create a new map with an automatically assigned ID.
*/
// @ts-ignore
createMap(world: org.bukkit.World): org.bukkit.map.MapView;
/**
* Create a new explorer map targeting the closest nearby structure of a
* given {@link StructureType}.
* <br>
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
// @ts-ignore
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}.
* <br>
* This method uses implementation default values for radius and
* findUnexplored (usually 100, true).
*/
// @ts-ignore
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.
*/
// @ts-ignore
reload(): void;
/**
* Reload only the Minecraft data for the server. This includes custom
* advancements and loot tables.
*/
// @ts-ignore
reloadData(): void;
/**
* Returns the primary logger associated with this server instance.
*/
// @ts-ignore
getLogger(): java.util.logging.Logger;
/**
* Gets a {@link PluginCommand} with the given name or alias.
*/
// @ts-ignore
getPluginCommand(name: string): org.bukkit.command.PluginCommand;
/**
* Writes loaded players to disk.
*/
// @ts-ignore
savePlayers(): void;
/**
* Dispatches a command on this server, and executes it if found.
*/
// @ts-ignore
dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean;
/**
* Adds a recipe to the crafting manager.
*/
// @ts-ignore
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.
*/
// @ts-ignore
getRecipesFor(result: org.bukkit.inventory.ItemStack): java.util.List;
/**
* Get an iterator through the list of crafting recipes.
*/
// @ts-ignore
recipeIterator(): java.util.Iterator;
/**
* Clears the list of crafting recipes.
*/
// @ts-ignore
clearRecipes(): void;
/**
* Resets the list of crafting recipes to the default.
*/
// @ts-ignore
resetRecipes(): void;
/**
* Gets a list of command aliases defined in the server properties.
*/
// @ts-ignore
getCommandAliases(): java.util.Map;
/**
* Gets the radius, in blocks, around each worlds spawn point to protect.
*/
// @ts-ignore
getSpawnRadius(): number;
/**
* Sets the radius, in blocks, around each worlds spawn point to protect.
*/
// @ts-ignore
setSpawnRadius(value: number): void;
/**
* Gets whether the Server is in online mode or not.
*/
// @ts-ignore
getOnlineMode(): boolean;
/**
* Gets whether this server allows flying or not.
*/
// @ts-ignore
getAllowFlight(): boolean;
/**
* Gets whether the server is in hardcore mode or not.
*/
// @ts-ignore
isHardcore(): boolean;
/**
* Shutdowns the server, stopping everything.
*/
// @ts-ignore
shutdown(): void;
/**
* Broadcasts the specified message to every user with the given
* permission name.
*/
// @ts-ignore
broadcast(message: string, permission: string): number;
/**
* Gets the player by the given name, regardless if they are offline or
* online.
* <p>
* This method may involve a blocking web request to get the UUID for the
* given name.
* <p>
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
// @ts-ignore
getOfflinePlayer(name: string): org.bukkit.OfflinePlayer;
/**
* Gets the player by the given UUID, regardless if they are offline or
* online.
* <p>
* This will return an object even if the player does not exist. To this
* method, all players will exist.
*/
// @ts-ignore
getOfflinePlayer(id: java.util.UUID): org.bukkit.OfflinePlayer;
/**
* Gets a set containing all current IPs that are banned.
*/
// @ts-ignore
getIPBans(): java.util.Set;
/**
* Bans the specified address from the server.
*/
// @ts-ignore
banIP(address: string): void;
/**
* Unbans the specified address from the server.
*/
// @ts-ignore
unbanIP(address: string): void;
/**
* Gets a set containing all banned players.
*/
// @ts-ignore
getBannedPlayers(): java.util.Set;
/**
* Gets a ban list for the supplied type.
* <p>
* Bans by name are no longer supported and this method will return
* null when trying to request them. The replacement is bans by UUID.
*/
// @ts-ignore
getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList;
/**
* Gets a set containing all player operators.
*/
// @ts-ignore
getOperators(): java.util.Set;
/**
* Gets the default {@link GameMode} for new players.
*/
// @ts-ignore
getDefaultGameMode(): org.bukkit.GameMode;
/**
* Sets the default {@link GameMode} for new players.
*/
// @ts-ignore
setDefaultGameMode(mode: org.bukkit.GameMode): void;
/**
* Gets a {@link ConsoleCommandSender} that may be used as an input source
* for this server.
*/
// @ts-ignore
getConsoleSender(): org.bukkit.command.ConsoleCommandSender;
/**
* Gets the folder that contains all of the various {@link World}s.
*/
// @ts-ignore
getWorldContainer(): java.io.File;
/**
* Gets every player that has ever played on this server.
*/
// @ts-ignore
getOfflinePlayers(): org.bukkit.OfflinePlayer[];
/**
* Gets the {@link Messenger} responsible for this server.
*/
// @ts-ignore
getMessenger(): org.bukkit.plugin.messaging.Messenger;
/**
* Gets the {@link HelpMap} providing help topics for this server.
*/
// @ts-ignore
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;
* otherwise the new inventory has the normal size for its type.
* <br>
* {@link InventoryType#WORKBENCH} will not process crafting recipes if
* created with this method. Use
* {@link Player#openWorkbench(Location, boolean)} instead.
* <br>
* {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
// @ts-ignore
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;
* otherwise the new inventory has the normal size for its type.<br>
* It should be noted that some inventory types do not support titles and
* may not render with said titles on the Minecraft client.
* <br>
* {@link InventoryType#WORKBENCH} will not process crafting recipes if
* created with this method. Use
* {@link Player#openWorkbench(Location, boolean)} instead.
* <br>
* {@link InventoryType#ENCHANTING} will not process {@link ItemStack}s
* for possible enchanting results. Use
* {@link Player#openEnchanting(Location, boolean)} instead.
*/
// @ts-ignore
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.
*/
// @ts-ignore
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.
*/
// @ts-ignore
createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory;
/**
* Creates an empty merchant.
*/
// @ts-ignore
createMerchant(title: string): org.bukkit.inventory.Merchant;
/**
* Gets user-specified limit for number of monsters that can spawn in a
* chunk.
*/
// @ts-ignore
getMonsterSpawnLimit(): number;
/**
* Gets user-specified limit for number of animals that can spawn in a
* chunk.
*/
// @ts-ignore
getAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of water animals that can spawn in
* a chunk.
*/
// @ts-ignore
getWaterAnimalSpawnLimit(): number;
/**
* Gets user-specified limit for number of ambient mobs that can spawn in
* a chunk.
*/
// @ts-ignore
getAmbientSpawnLimit(): number;
/**
* Checks the current thread against the expected primary thread for the
* server.
* <p>
* <b>Note:</b> this method should not be used to indicate the current
* synchronized state of the runtime. A current thread matching the main
* thread indicates that it is synchronized, but a mismatch <b>does not
* preclude</b> the same assumption.
*/
// @ts-ignore
isPrimaryThread(): boolean;
/**
* Gets the message that is displayed on the server list.
*/
// @ts-ignore
getMotd(): string;
/**
* Gets the default message that is displayed when the server is stopped.
*/
// @ts-ignore
getShutdownMessage(): string;
/**
* Gets the current warning state for the server.
*/
// @ts-ignore
getWarningState(): org.bukkit.Warning.WarningState;
/**
* Gets the instance of the item factory (for {@link ItemMeta}).
*/
// @ts-ignore
getItemFactory(): org.bukkit.inventory.ItemFactory;
/**
* Gets the instance of the scoreboard manager.
* <p>
* This will only exist after the first world has loaded.
*/
// @ts-ignore
getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager;
/**
* Gets an instance of the server's default server-icon.
*/
// @ts-ignore
getServerIcon(): org.bukkit.util.CachedServerIcon;
/**
* Loads an image from a file, and returns a cached image for the specific
* server-icon.
* <p>
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
// @ts-ignore
loadServerIcon(file: java.io.File): org.bukkit.util.CachedServerIcon;
/**
* Creates a cached server-icon for the specific image.
* <p>
* Size and type are implementation defined. An incompatible file is
* guaranteed to throw an implementation-defined {@link Exception}.
*/
// @ts-ignore
loadServerIcon(image: java.awt.image.BufferedImage): org.bukkit.util.CachedServerIcon;
/**
* Set the idle kick timeout. Any players idle for the specified amount of
* time will be automatically kicked.
* <p>
* A value of 0 will disable the idle kick timeout.
*/
// @ts-ignore
setIdleTimeout(threshold: number): void;
/**
* Gets the idle kick timeout.
*/
// @ts-ignore
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)}
*/
// @ts-ignore
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
*/
// @ts-ignore
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.
* <br>
* This instance is added to the persistent storage of the server and will
* be editable by commands and restored after restart.
*/
// @ts-ignore
createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar;
/**
* Gets an unmodifiable iterator through all persistent bossbars.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
getBossBars(): java.util.Iterator;
/**
* Gets the {@link KeyedBossBar} specified by this key.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar;
/**
* Removes a {@link KeyedBossBar} specified by this key.
* <ul>
* <li><b>not</b> bound to a {@link org.bukkit.entity.Boss}</li>
* <li>
* <b>not</b> created using
* {@link #createBossBar(String, BarColor, BarStyle, BarFlag...)}
* </li>
* </ul>
* e.g. bossbars created using the bossbar command
*/
// @ts-ignore
removeBossBar(key: org.bukkit.NamespacedKey): boolean;
/**
* Gets an entity on the server by its UUID
*/
// @ts-ignore
getEntity(uuid: java.util.UUID): org.bukkit.entity.Entity;
/**
* Get the advancement specified by this key.
*/
// @ts-ignore
getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement;
/**
* Get an iterator through all advancements. Advancements cannot be removed
* from this iterator,
*/
// @ts-ignore
advancementIterator(): java.util.Iterator;
/**
* Creates a new {@link BlockData} instance for the specified Material, with
* all properties initialized to unspecified defaults.
*/
// @ts-ignore
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.
*/
// @ts-ignore
createBlockData(material: org.bukkit.Material, consumer: java.util.function$.Consumer): org.bukkit.block.data.BlockData;
/**
* Creates a new {@link BlockData} instance with material and properties
* parsed from provided data.
*/
// @ts-ignore
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
* provided in data.
* <br>
* If <code>material</code> is specified, then the data string must not also
* contain the material.
*/
// @ts-ignore
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
* which makes no guarantees about which tags are available, and may also be
* less performant due to lack of caching.
* <br>
* Tags will be searched for in an implementation specific manner, but a
* path consisting of namespace/tags/registry/key is expected.
* <br>
* Server implementations are allowed to handle only the registries
* indicated in {@link Tag}.
*/
// @ts-ignore
getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: java.lang.Class): org.bukkit.Tag;
/**
* Gets a all tags which have been defined within the server.
* <br>
* Server implementations are allowed to handle only the registries
* indicated in {@link Tag}.
* <br>
* No guarantees are made about the mutability of the returned iterator.
*/
// @ts-ignore
getTags(registry: string, clazz: java.lang.Class): java.lang.Iterable;
/**
* Gets the specified {@link LootTable}.
*/
// @ts-ignore
getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable;
/**
* Selects entities using the given Vanilla selector.
* <br>
* No guarantees are made about the selector format, other than they match
* the Vanilla format for the active Minecraft version.
* <br>
* Usually a selector will start with '@', unless selecting a Player in
* which case it may simply be the Player's name or UUID.
* <br>
* Note that in Vanilla, elevated permissions are usually required to use
* '@' selectors, but this method should not check such permissions from the
* sender.
*/
// @ts-ignore
selectEntities(sender: org.bukkit.command.CommandSender, selector: string): java.util.List;
// @ts-ignore
getUnsafe(): org.bukkit.UnsafeValues;
}
}
}

View File

@@ -0,0 +1,24 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class SkullType extends java.lang.Enum {
// @ts-ignore
public static SKELETON: org.bukkit.SkullType;
// @ts-ignore
public static WITHER: org.bukkit.SkullType;
// @ts-ignore
public static ZOMBIE: org.bukkit.SkullType;
// @ts-ignore
public static PLAYER: org.bukkit.SkullType;
// @ts-ignore
public static CREEPER: org.bukkit.SkullType;
// @ts-ignore
public static DRAGON: org.bukkit.SkullType;
// @ts-ignore
public static values(): org.bukkit.SkullType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.SkullType;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,32 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class SoundCategory extends java.lang.Enum {
// @ts-ignore
public static MASTER: org.bukkit.SoundCategory;
// @ts-ignore
public static MUSIC: org.bukkit.SoundCategory;
// @ts-ignore
public static RECORDS: org.bukkit.SoundCategory;
// @ts-ignore
public static WEATHER: org.bukkit.SoundCategory;
// @ts-ignore
public static BLOCKS: org.bukkit.SoundCategory;
// @ts-ignore
public static HOSTILE: org.bukkit.SoundCategory;
// @ts-ignore
public static NEUTRAL: org.bukkit.SoundCategory;
// @ts-ignore
public static PLAYERS: org.bukkit.SoundCategory;
// @ts-ignore
public static AMBIENT: org.bukkit.SoundCategory;
// @ts-ignore
public static VOICE: org.bukkit.SoundCategory;
// @ts-ignore
public static values(): org.bukkit.SoundCategory[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.SoundCategory;
}
}
}

View File

@@ -0,0 +1,22 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Statistic {
// @ts-ignore
class Type extends java.lang.Enum {
// @ts-ignore
public static UNTYPED: org.bukkit.Statistic.Type;
// @ts-ignore
public static ITEM: org.bukkit.Statistic.Type;
// @ts-ignore
public static BLOCK: org.bukkit.Statistic.Type;
// @ts-ignore
public static ENTITY: org.bukkit.Statistic.Type;
// @ts-ignore
public static values(): org.bukkit.Statistic.Type[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Statistic.Type;
}
}
}
}

View File

@@ -0,0 +1,192 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class Statistic extends java.lang.Enum implements org.bukkit.Keyed {
// @ts-ignore
public static DAMAGE_DEALT: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_TAKEN: org.bukkit.Statistic;
// @ts-ignore
public static DEATHS: org.bukkit.Statistic;
// @ts-ignore
public static MOB_KILLS: org.bukkit.Statistic;
// @ts-ignore
public static PLAYER_KILLS: org.bukkit.Statistic;
// @ts-ignore
public static FISH_CAUGHT: org.bukkit.Statistic;
// @ts-ignore
public static ANIMALS_BRED: org.bukkit.Statistic;
// @ts-ignore
public static LEAVE_GAME: org.bukkit.Statistic;
// @ts-ignore
public static JUMP: org.bukkit.Statistic;
// @ts-ignore
public static DROP_COUNT: org.bukkit.Statistic;
// @ts-ignore
public static DROP: org.bukkit.Statistic;
// @ts-ignore
public static PICKUP: org.bukkit.Statistic;
// @ts-ignore
public static PLAY_ONE_MINUTE: org.bukkit.Statistic;
// @ts-ignore
public static WALK_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static WALK_ON_WATER_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static FALL_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static SNEAK_TIME: org.bukkit.Statistic;
// @ts-ignore
public static CLIMB_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static FLY_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static WALK_UNDER_WATER_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static MINECART_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static BOAT_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static PIG_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static HORSE_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static SPRINT_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static CROUCH_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static AVIATE_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static MINE_BLOCK: org.bukkit.Statistic;
// @ts-ignore
public static USE_ITEM: org.bukkit.Statistic;
// @ts-ignore
public static BREAK_ITEM: org.bukkit.Statistic;
// @ts-ignore
public static CRAFT_ITEM: org.bukkit.Statistic;
// @ts-ignore
public static KILL_ENTITY: org.bukkit.Statistic;
// @ts-ignore
public static ENTITY_KILLED_BY: org.bukkit.Statistic;
// @ts-ignore
public static TIME_SINCE_DEATH: org.bukkit.Statistic;
// @ts-ignore
public static TALKED_TO_VILLAGER: org.bukkit.Statistic;
// @ts-ignore
public static TRADED_WITH_VILLAGER: org.bukkit.Statistic;
// @ts-ignore
public static CAKE_SLICES_EATEN: org.bukkit.Statistic;
// @ts-ignore
public static CAULDRON_FILLED: org.bukkit.Statistic;
// @ts-ignore
public static CAULDRON_USED: org.bukkit.Statistic;
// @ts-ignore
public static ARMOR_CLEANED: org.bukkit.Statistic;
// @ts-ignore
public static BANNER_CLEANED: org.bukkit.Statistic;
// @ts-ignore
public static BREWINGSTAND_INTERACTION: org.bukkit.Statistic;
// @ts-ignore
public static BEACON_INTERACTION: org.bukkit.Statistic;
// @ts-ignore
public static DROPPER_INSPECTED: org.bukkit.Statistic;
// @ts-ignore
public static HOPPER_INSPECTED: org.bukkit.Statistic;
// @ts-ignore
public static DISPENSER_INSPECTED: org.bukkit.Statistic;
// @ts-ignore
public static NOTEBLOCK_PLAYED: org.bukkit.Statistic;
// @ts-ignore
public static NOTEBLOCK_TUNED: org.bukkit.Statistic;
// @ts-ignore
public static FLOWER_POTTED: org.bukkit.Statistic;
// @ts-ignore
public static TRAPPED_CHEST_TRIGGERED: org.bukkit.Statistic;
// @ts-ignore
public static ENDERCHEST_OPENED: org.bukkit.Statistic;
// @ts-ignore
public static ITEM_ENCHANTED: org.bukkit.Statistic;
// @ts-ignore
public static RECORD_PLAYED: org.bukkit.Statistic;
// @ts-ignore
public static FURNACE_INTERACTION: org.bukkit.Statistic;
// @ts-ignore
public static CRAFTING_TABLE_INTERACTION: org.bukkit.Statistic;
// @ts-ignore
public static CHEST_OPENED: org.bukkit.Statistic;
// @ts-ignore
public static SLEEP_IN_BED: org.bukkit.Statistic;
// @ts-ignore
public static SHULKER_BOX_OPENED: org.bukkit.Statistic;
// @ts-ignore
public static TIME_SINCE_REST: org.bukkit.Statistic;
// @ts-ignore
public static SWIM_ONE_CM: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_DEALT_ABSORBED: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_DEALT_RESISTED: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_BLOCKED_BY_SHIELD: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_ABSORBED: org.bukkit.Statistic;
// @ts-ignore
public static DAMAGE_RESISTED: org.bukkit.Statistic;
// @ts-ignore
public static CLEAN_SHULKER_BOX: org.bukkit.Statistic;
// @ts-ignore
public static OPEN_BARREL: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_BLAST_FURNACE: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_SMOKER: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_LECTERN: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_CAMPFIRE: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_CARTOGRAPHY_TABLE: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_LOOM: org.bukkit.Statistic;
// @ts-ignore
public static INTERACT_WITH_STONECUTTER: org.bukkit.Statistic;
// @ts-ignore
public static BELL_RING: org.bukkit.Statistic;
// @ts-ignore
public static RAID_TRIGGER: org.bukkit.Statistic;
// @ts-ignore
public static RAID_WIN: org.bukkit.Statistic;
// @ts-ignore
public static values(): org.bukkit.Statistic[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Statistic;
/**
* Gets the type of this statistic.
*/
// @ts-ignore
public getType(): org.bukkit.Statistic.Type;
/**
* Checks if this is a substatistic.
* <p>
* A substatistic exists en masse for each block, item, or entitytype, depending on
* {@link #getType()}.
* <p>
* This is a redundant method and equivalent to checking
* <code>getType() != Type.UNTYPED</code>
*/
// @ts-ignore
public isSubstatistic(): boolean;
/**
* Checks if this is a substatistic dealing with blocks.
* <p>
* This is a redundant method and equivalent to checking
* <code>getType() == Type.BLOCK</code>
*/
// @ts-ignore
public isBlock(): boolean;
// @ts-ignore
public getKey(): org.bukkit.NamespacedKey;
}
}
}

View File

@@ -0,0 +1,61 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class StructureType extends java.lang.Object {
// @ts-ignore
public static MINESHAFT: org.bukkit.StructureType;
// @ts-ignore
public static VILLAGE: org.bukkit.StructureType;
// @ts-ignore
public static NETHER_FORTRESS: org.bukkit.StructureType;
// @ts-ignore
public static STRONGHOLD: org.bukkit.StructureType;
// @ts-ignore
public static JUNGLE_PYRAMID: org.bukkit.StructureType;
// @ts-ignore
public static OCEAN_RUIN: org.bukkit.StructureType;
// @ts-ignore
public static DESERT_PYRAMID: org.bukkit.StructureType;
// @ts-ignore
public static IGLOO: org.bukkit.StructureType;
// @ts-ignore
public static SWAMP_HUT: org.bukkit.StructureType;
// @ts-ignore
public static OCEAN_MONUMENT: org.bukkit.StructureType;
// @ts-ignore
public static END_CITY: org.bukkit.StructureType;
// @ts-ignore
public static WOODLAND_MANSION: org.bukkit.StructureType;
// @ts-ignore
public static BURIED_TREASURE: org.bukkit.StructureType;
// @ts-ignore
public static SHIPWRECK: org.bukkit.StructureType;
// @ts-ignore
public static PILLAGER_OUTPOST: org.bukkit.StructureType;
/**
* Get the name of this structure. This is case-sensitive when used in
* commands.
*/
// @ts-ignore
public getName(): string;
/**
* Get the {@link org.bukkit.map.MapCursor.Type} that this structure can use on maps. If
* this is null, this structure will not appear on explorer maps.
*/
// @ts-ignore
public getMapIcon(): org.bukkit.map.MapCursor.Type;
// @ts-ignore
public equals(other: java.lang.Object): boolean;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public toString(): string;
/**
* Get all registered {@link StructureType}s.
*/
// @ts-ignore
public static getStructureTypes(): java.util.Map;
}
}
}

View File

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

View File

@@ -0,0 +1,34 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class TreeSpecies extends java.lang.Enum {
// @ts-ignore
public static GENERIC: org.bukkit.TreeSpecies;
// @ts-ignore
public static REDWOOD: org.bukkit.TreeSpecies;
// @ts-ignore
public static BIRCH: org.bukkit.TreeSpecies;
// @ts-ignore
public static JUNGLE: org.bukkit.TreeSpecies;
// @ts-ignore
public static ACACIA: org.bukkit.TreeSpecies;
// @ts-ignore
public static DARK_OAK: org.bukkit.TreeSpecies;
// @ts-ignore
public static values(): org.bukkit.TreeSpecies[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.TreeSpecies;
/**
* Gets the associated data value representing this species
*/
// @ts-ignore
public getData(): number;
/**
* Gets the TreeSpecies with the given data value
*/
// @ts-ignore
public static getByData(data: number): org.bukkit.TreeSpecies;
}
}
}

View File

@@ -0,0 +1,46 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class TreeType extends java.lang.Enum {
// @ts-ignore
public static TREE: org.bukkit.TreeType;
// @ts-ignore
public static BIG_TREE: org.bukkit.TreeType;
// @ts-ignore
public static REDWOOD: org.bukkit.TreeType;
// @ts-ignore
public static TALL_REDWOOD: org.bukkit.TreeType;
// @ts-ignore
public static BIRCH: org.bukkit.TreeType;
// @ts-ignore
public static JUNGLE: org.bukkit.TreeType;
// @ts-ignore
public static SMALL_JUNGLE: org.bukkit.TreeType;
// @ts-ignore
public static COCOA_TREE: org.bukkit.TreeType;
// @ts-ignore
public static JUNGLE_BUSH: org.bukkit.TreeType;
// @ts-ignore
public static RED_MUSHROOM: org.bukkit.TreeType;
// @ts-ignore
public static BROWN_MUSHROOM: org.bukkit.TreeType;
// @ts-ignore
public static SWAMP: org.bukkit.TreeType;
// @ts-ignore
public static ACACIA: org.bukkit.TreeType;
// @ts-ignore
public static DARK_OAK: org.bukkit.TreeType;
// @ts-ignore
public static MEGA_REDWOOD: org.bukkit.TreeType;
// @ts-ignore
public static TALL_BIRCH: org.bukkit.TreeType;
// @ts-ignore
public static CHORUS_PLANT: org.bukkit.TreeType;
// @ts-ignore
public static values(): org.bukkit.TreeType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.TreeType;
}
}
}

View File

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

View File

@@ -0,0 +1,53 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface UnsafeValues {
// @ts-ignore
toLegacy(material: org.bukkit.Material): org.bukkit.Material;
// @ts-ignore
fromLegacy(material: org.bukkit.Material): org.bukkit.Material;
// @ts-ignore
fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material;
// @ts-ignore
fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material;
// @ts-ignore
fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData;
// @ts-ignore
getMaterial(material: string, version: number): org.bukkit.Material;
// @ts-ignore
getDataVersion(): number;
// @ts-ignore
modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack;
// @ts-ignore
checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void;
// @ts-ignore
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
* layout.
* <br>
* It is currently a JSON object, as described by the Minecraft Wiki:
* http://minecraft.gamepedia.com/Advancements
* <br>
* Loaded advancements will be stored and persisted across server restarts
* and reloads.
* <br>
* Callers should be prepared for {@link Exception} to be thrown.
*/
// @ts-ignore
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)}.
* <br>
* This method will only remove advancement from persistent storage. It
* should be accompanied by a call to {@link Server#reloadData()} in order
* to fully remove it from the running instance.
*/
// @ts-ignore
removeAdvancement(key: org.bukkit.NamespacedKey): boolean;
}
}
}

View File

@@ -0,0 +1,8 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface Utility {
}
}
}

View File

@@ -0,0 +1,32 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace Warning {
// @ts-ignore
class WarningState extends java.lang.Enum {
// @ts-ignore
public static ON: org.bukkit.Warning.WarningState;
// @ts-ignore
public static OFF: org.bukkit.Warning.WarningState;
// @ts-ignore
public static DEFAULT: org.bukkit.Warning.WarningState;
// @ts-ignore
public static values(): org.bukkit.Warning.WarningState[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.Warning.WarningState;
/**
* This method checks the provided warning should be printed for this
* state
*/
// @ts-ignore
public printFor(warning: org.bukkit.Warning): boolean;
/**
* This method returns the corresponding warning state for the given
* string value.
*/
// @ts-ignore
public static value(value: string): org.bukkit.Warning.WarningState;
}
}
}
}

View File

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

View File

@@ -0,0 +1,16 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class WeatherType extends java.lang.Enum {
// @ts-ignore
public static DOWNFALL: org.bukkit.WeatherType;
// @ts-ignore
public static CLEAR: org.bukkit.WeatherType;
// @ts-ignore
public static values(): org.bukkit.WeatherType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.WeatherType;
}
}
}

View File

@@ -0,0 +1,30 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace World {
// @ts-ignore
class Environment extends java.lang.Enum {
// @ts-ignore
public static NORMAL: org.bukkit.World.Environment;
// @ts-ignore
public static NETHER: org.bukkit.World.Environment;
// @ts-ignore
public static THE_END: org.bukkit.World.Environment;
// @ts-ignore
public static values(): org.bukkit.World.Environment[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.World.Environment;
/**
* Gets the dimension ID of this environment
*/
// @ts-ignore
public getId(): number;
/**
* Get an environment by ID
*/
// @ts-ignore
public static getEnvironment(id: number): org.bukkit.World.Environment;
}
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,88 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
interface WorldBorder {
/**
* Resets the border to default values.
*/
// @ts-ignore
reset(): void;
/**
* Gets the current side length of the border.
*/
// @ts-ignore
getSize(): number;
/**
* Sets the border to a square region with the specified side length in blocks.
*/
// @ts-ignore
setSize(newSize: number): void;
/**
* Sets the border to a square region with the specified side length in blocks.
*/
// @ts-ignore
setSize(newSize: number, seconds: number): void;
/**
* Gets the current border center.
*/
// @ts-ignore
getCenter(): org.bukkit.Location;
/**
* Sets the new border center.
*/
// @ts-ignore
setCenter(x: number, z: number): void;
/**
* Sets the new border center.
*/
// @ts-ignore
setCenter(location: org.bukkit.Location): void;
/**
* Gets the current border damage buffer.
*/
// @ts-ignore
getDamageBuffer(): number;
/**
* Sets the amount of blocks a player may safely be outside the border before taking damage.
*/
// @ts-ignore
setDamageBuffer(blocks: number): void;
/**
* Gets the current border damage amount.
*/
// @ts-ignore
getDamageAmount(): number;
/**
* Sets the amount of damage a player takes when outside the border plus the border buffer.
*/
// @ts-ignore
setDamageAmount(damage: number): void;
/**
* Gets the current border warning time in seconds.
*/
// @ts-ignore
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.
*/
// @ts-ignore
setWarningTime(seconds: number): void;
/**
* Gets the current border warning distance.
*/
// @ts-ignore
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.
*/
// @ts-ignore
setWarningDistance(distance: number): void;
/**
* Check if the specified location is inside this border.
*/
// @ts-ignore
isInside(location: org.bukkit.Location): boolean;
}
}
}

View File

@@ -0,0 +1,145 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class WorldCreator extends java.lang.Object {
/**
* Creates an empty WorldCreationOptions for the given world name
*/
// @ts-ignore
constructor(name: string)
/**
* Copies the options from the specified world
*/
// @ts-ignore
public copy(world: org.bukkit.World): org.bukkit.WorldCreator;
/**
* Copies the options from the specified {@link WorldCreator}
*/
// @ts-ignore
public copy(creator: org.bukkit.WorldCreator): org.bukkit.WorldCreator;
/**
* Gets the name of the world that is to be loaded or created.
*/
// @ts-ignore
public name(): string;
/**
* Gets the seed that will be used to create this world
*/
// @ts-ignore
public seed(): number;
/**
* Sets the seed that will be used to create this world
*/
// @ts-ignore
public seed(seed: number): org.bukkit.WorldCreator;
/**
* Gets the environment that will be used to create or load the world
*/
// @ts-ignore
public environment(): org.bukkit.World.Environment;
/**
* Sets the environment that will be used to create or load the world
*/
// @ts-ignore
public environment(env: org.bukkit.World.Environment): org.bukkit.WorldCreator;
/**
* Gets the type of the world that will be created or loaded
*/
// @ts-ignore
public type(): org.bukkit.WorldType;
/**
* Sets the type of the world that will be created or loaded
*/
// @ts-ignore
public type(type: org.bukkit.WorldType): org.bukkit.WorldCreator;
/**
* Gets the generator that will be used to create or load the world.
* <p>
* This may be null, in which case the "natural" generator for this
* environment will be used.
*/
// @ts-ignore
public generator(): org.bukkit.generator.ChunkGenerator;
/**
* Sets the generator that will be used to create or load the world.
* <p>
* This may be null, in which case the "natural" generator for this
* environment will be used.
*/
// @ts-ignore
public generator(generator: org.bukkit.generator.ChunkGenerator): org.bukkit.WorldCreator;
/**
* Sets the generator that will be used to create or load the world.
* <p>
* This may be null, in which case the "natural" generator for this
* environment will be used.
* <p>
* If the generator cannot be found for the given name, the natural
* environment generator will be used instead and a warning will be
* printed to the console.
*/
// @ts-ignore
public generator(generator: string): org.bukkit.WorldCreator;
/**
* Sets the generator that will be used to create or load the world.
* <p>
* This may be null, in which case the "natural" generator for this
* environment will be used.
* <p>
* If the generator cannot be found for the given name, the natural
* environment generator will be used instead and a warning will be
* printed to the specified output
*/
// @ts-ignore
public generator(generator: string, output: org.bukkit.command.CommandSender): org.bukkit.WorldCreator;
/**
* Sets the generator settings of the world that will be created or loaded
*/
// @ts-ignore
public generatorSettings(generatorSettings: string): org.bukkit.WorldCreator;
/**
* Gets the generator settings of the world that will be created or loaded
*/
// @ts-ignore
public generatorSettings(): string;
/**
* Sets whether or not worlds created or loaded with this creator will
* have structures.
*/
// @ts-ignore
public generateStructures(generate: boolean): org.bukkit.WorldCreator;
/**
* Gets whether or not structures will be generated in the world.
*/
// @ts-ignore
public generateStructures(): boolean;
/**
* Creates a world with the specified options.
* <p>
* If the world already exists, it will be loaded from disk and some
* options may be ignored.
*/
// @ts-ignore
public createWorld(): org.bukkit.World;
/**
* Creates a new {@link WorldCreator} for the given world name
*/
// @ts-ignore
public static name(name: string): org.bukkit.WorldCreator;
/**
* Attempts to get the {@link ChunkGenerator} with the given name.
* <p>
* If the generator is not found, null will be returned and a message will
* be printed to the specified {@link CommandSender} explaining why.
* <p>
* The name must be in the "plugin:id" notation, or optionally just
* "plugin", where "plugin" is the safe-name of a plugin and "id" is an
* optional unique identifier for the generator you wish to request from
* the plugin.
*/
// @ts-ignore
public static getGeneratorForName(world: string, name: string, output: org.bukkit.command.CommandSender): org.bukkit.generator.ChunkGenerator;
}
}
}

View File

@@ -0,0 +1,36 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
// @ts-ignore
class WorldType extends java.lang.Enum {
// @ts-ignore
public static NORMAL: org.bukkit.WorldType;
// @ts-ignore
public static FLAT: org.bukkit.WorldType;
// @ts-ignore
public static VERSION_1_1: org.bukkit.WorldType;
// @ts-ignore
public static LARGE_BIOMES: org.bukkit.WorldType;
// @ts-ignore
public static AMPLIFIED: org.bukkit.WorldType;
// @ts-ignore
public static CUSTOMIZED: org.bukkit.WorldType;
// @ts-ignore
public static BUFFET: org.bukkit.WorldType;
// @ts-ignore
public static values(): org.bukkit.WorldType[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.WorldType;
/**
* Gets the name of this WorldType
*/
// @ts-ignore
public getName(): string;
/**
* Gets a WorldType by its name
*/
// @ts-ignore
public static getByName(name: string): org.bukkit.WorldType;
}
}
}

View File

@@ -0,0 +1,15 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace advancement {
// @ts-ignore
interface Advancement extends org.bukkit.Keyed {
/**
* Get all the criteria present in this advancement.
*/
// @ts-ignore
getCriteria(): java.util.Collection;
}
}
}
}

View File

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

View File

@@ -0,0 +1,16 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace attribute {
// @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.
*/
// @ts-ignore
getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance;
}
}
}
}

View File

@@ -0,0 +1,38 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace attribute {
// @ts-ignore
class Attribute extends java.lang.Enum {
// @ts-ignore
public static GENERIC_MAX_HEALTH: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_FOLLOW_RANGE: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_KNOCKBACK_RESISTANCE: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_MOVEMENT_SPEED: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_FLYING_SPEED: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_ATTACK_DAMAGE: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_ATTACK_SPEED: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_ARMOR: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_ARMOR_TOUGHNESS: org.bukkit.attribute.Attribute;
// @ts-ignore
public static GENERIC_LUCK: org.bukkit.attribute.Attribute;
// @ts-ignore
public static HORSE_JUMP_STRENGTH: org.bukkit.attribute.Attribute;
// @ts-ignore
public static ZOMBIE_SPAWN_REINFORCEMENTS: org.bukkit.attribute.Attribute;
// @ts-ignore
public static values(): org.bukkit.attribute.Attribute[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.attribute.Attribute;
}
}
}
}

View File

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

View File

@@ -0,0 +1,22 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace attribute {
namespace AttributeModifier {
// @ts-ignore
class Operation extends java.lang.Enum {
// @ts-ignore
public static ADD_NUMBER: org.bukkit.attribute.AttributeModifier.Operation;
// @ts-ignore
public static ADD_SCALAR: org.bukkit.attribute.AttributeModifier.Operation;
// @ts-ignore
public static MULTIPLY_SCALAR_1: org.bukkit.attribute.AttributeModifier.Operation;
// @ts-ignore
public static values(): org.bukkit.attribute.AttributeModifier.Operation[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.attribute.AttributeModifier.Operation;
}
}
}
}
}

View File

@@ -0,0 +1,52 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace attribute {
// @ts-ignore
class AttributeModifier extends java.lang.Object implements org.bukkit.configuration.serialization.ConfigurationSerializable {
// @ts-ignore
constructor(name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation)
// @ts-ignore
constructor(uuid: java.util.UUID, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation)
// @ts-ignore
constructor(uuid: java.util.UUID, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation, slot: org.bukkit.inventory.EquipmentSlot)
/**
* Get the unique ID for this modifier.
*/
// @ts-ignore
public getUniqueId(): java.util.UUID;
/**
* Get the name of this modifier.
*/
// @ts-ignore
public getName(): string;
/**
* Get the amount by which this modifier will apply its {@link Operation}.
*/
// @ts-ignore
public getAmount(): number;
/**
* Get the operation this modifier will apply.
*/
// @ts-ignore
public getOperation(): org.bukkit.attribute.AttributeModifier.Operation;
/**
* Get the {@link EquipmentSlot} this AttributeModifier is active on,
* or null if this modifier is applicable for any slot.
*/
// @ts-ignore
public getSlot(): org.bukkit.inventory.EquipmentSlot;
// @ts-ignore
public serialize(): java.util.Map;
// @ts-ignore
public equals(other: java.lang.Object): boolean;
// @ts-ignore
public hashCode(): number;
// @ts-ignore
public toString(): string;
// @ts-ignore
public static deserialize(args: java.util.Map): org.bukkit.attribute.AttributeModifier;
}
}
}
}

View File

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

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Barrel extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
}
}
}
}

View File

@@ -0,0 +1,46 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Beacon extends org.bukkit.block.TileState, org.bukkit.block.Lockable, org.bukkit.Nameable {
/**
* Returns the list of players within the beacon's range of effect.
* <p>
* This will return an empty list if the block represented by this state is
* no longer a beacon.
*/
// @ts-ignore
getEntitiesInRange(): 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.
*/
// @ts-ignore
getTier(): number;
/**
* Returns the primary effect set on the beacon
*/
// @ts-ignore
getPrimaryEffect(): org.bukkit.potion.PotionEffect;
/**
* Set the primary effect on this beacon, or null to clear.
*/
// @ts-ignore
setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
/**
* Returns the secondary effect set on the beacon.
*/
// @ts-ignore
getSecondaryEffect(): org.bukkit.potion.PotionEffect;
/**
* Set the secondary effect on this beacon, or null to clear. Note that tier
* must be &gt;= 4 for this effect to be active.
*/
// @ts-ignore
setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Bed extends org.bukkit.block.TileState, org.bukkit.material.Colorable {
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Bell extends org.bukkit.block.TileState {
}
}
}
}

View File

@@ -0,0 +1,166 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
class Biome extends java.lang.Enum implements org.bukkit.Keyed {
// @ts-ignore
public static OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static PLAINS: org.bukkit.block.Biome;
// @ts-ignore
public static DESERT: org.bukkit.block.Biome;
// @ts-ignore
public static MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static FOREST: org.bukkit.block.Biome;
// @ts-ignore
public static TAIGA: org.bukkit.block.Biome;
// @ts-ignore
public static SWAMP: org.bukkit.block.Biome;
// @ts-ignore
public static RIVER: org.bukkit.block.Biome;
// @ts-ignore
public static NETHER: org.bukkit.block.Biome;
// @ts-ignore
public static THE_END: org.bukkit.block.Biome;
// @ts-ignore
public static FROZEN_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static FROZEN_RIVER: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_TUNDRA: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static MUSHROOM_FIELDS: org.bukkit.block.Biome;
// @ts-ignore
public static MUSHROOM_FIELD_SHORE: org.bukkit.block.Biome;
// @ts-ignore
public static BEACH: org.bukkit.block.Biome;
// @ts-ignore
public static DESERT_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static WOODED_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static TAIGA_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static MOUNTAIN_EDGE: org.bukkit.block.Biome;
// @ts-ignore
public static JUNGLE: org.bukkit.block.Biome;
// @ts-ignore
public static JUNGLE_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static JUNGLE_EDGE: org.bukkit.block.Biome;
// @ts-ignore
public static DEEP_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static STONE_SHORE: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_BEACH: org.bukkit.block.Biome;
// @ts-ignore
public static BIRCH_FOREST: org.bukkit.block.Biome;
// @ts-ignore
public static BIRCH_FOREST_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static DARK_FOREST: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_TAIGA: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_TAIGA_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static GIANT_TREE_TAIGA: org.bukkit.block.Biome;
// @ts-ignore
public static GIANT_TREE_TAIGA_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static WOODED_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static SAVANNA: org.bukkit.block.Biome;
// @ts-ignore
public static SAVANNA_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static BADLANDS: org.bukkit.block.Biome;
// @ts-ignore
public static WOODED_BADLANDS_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static BADLANDS_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static SMALL_END_ISLANDS: org.bukkit.block.Biome;
// @ts-ignore
public static END_MIDLANDS: org.bukkit.block.Biome;
// @ts-ignore
public static END_HIGHLANDS: org.bukkit.block.Biome;
// @ts-ignore
public static END_BARRENS: org.bukkit.block.Biome;
// @ts-ignore
public static WARM_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static LUKEWARM_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static COLD_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static DEEP_WARM_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static DEEP_LUKEWARM_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static DEEP_COLD_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static DEEP_FROZEN_OCEAN: org.bukkit.block.Biome;
// @ts-ignore
public static THE_VOID: org.bukkit.block.Biome;
// @ts-ignore
public static SUNFLOWER_PLAINS: org.bukkit.block.Biome;
// @ts-ignore
public static DESERT_LAKES: org.bukkit.block.Biome;
// @ts-ignore
public static GRAVELLY_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static FLOWER_FOREST: org.bukkit.block.Biome;
// @ts-ignore
public static TAIGA_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static SWAMP_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static ICE_SPIKES: org.bukkit.block.Biome;
// @ts-ignore
public static MODIFIED_JUNGLE: org.bukkit.block.Biome;
// @ts-ignore
public static MODIFIED_JUNGLE_EDGE: org.bukkit.block.Biome;
// @ts-ignore
public static TALL_BIRCH_FOREST: org.bukkit.block.Biome;
// @ts-ignore
public static TALL_BIRCH_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static DARK_FOREST_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static SNOWY_TAIGA_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static GIANT_SPRUCE_TAIGA: org.bukkit.block.Biome;
// @ts-ignore
public static GIANT_SPRUCE_TAIGA_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static MODIFIED_GRAVELLY_MOUNTAINS: org.bukkit.block.Biome;
// @ts-ignore
public static SHATTERED_SAVANNA: org.bukkit.block.Biome;
// @ts-ignore
public static SHATTERED_SAVANNA_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static ERODED_BADLANDS: org.bukkit.block.Biome;
// @ts-ignore
public static MODIFIED_WOODED_BADLANDS_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static MODIFIED_BADLANDS_PLATEAU: org.bukkit.block.Biome;
// @ts-ignore
public static BAMBOO_JUNGLE: org.bukkit.block.Biome;
// @ts-ignore
public static BAMBOO_JUNGLE_HILLS: org.bukkit.block.Biome;
// @ts-ignore
public static values(): org.bukkit.block.Biome[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.block.Biome;
// @ts-ignore
public getKey(): org.bukkit.NamespacedKey;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface BlastFurnace extends org.bukkit.block.Furnace {
}
}
}
}

View File

@@ -0,0 +1,301 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Block extends org.bukkit.metadata.Metadatable {
/**
* Gets the metadata for this block
*/
// @ts-ignore
getData(): number;
/**
* Gets the complete block data for this block
*/
// @ts-ignore
getBlockData(): org.bukkit.block.data.BlockData;
/**
* Gets the block at the given offsets
*/
// @ts-ignore
getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block;
/**
* Gets the block at the given face
* <p>
* This method is equal to getRelative(face, 1)
*/
// @ts-ignore
getRelative(face: org.bukkit.block.BlockFace): org.bukkit.block.Block;
/**
* Gets the block at the given distance of the given face
* <p>
* For example, the following method places water at 100,102,100; two
* blocks above 100,100,100.
* <pre>
* Block block = world.getBlockAt(100, 100, 100);
* Block shower = block.getRelative(BlockFace.UP, 2);
* shower.setType(Material.WATER);
* </pre>
*/
// @ts-ignore
getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block;
/**
* Gets the type of this block
*/
// @ts-ignore
getType(): org.bukkit.Material;
/**
* Gets the light level between 0-15
*/
// @ts-ignore
getLightLevel(): number;
/**
* Get the amount of light at this block from the sky.
* <p>
* Any light given from other sources (such as blocks like torches) will
* be ignored.
*/
// @ts-ignore
getLightFromSky(): number;
/**
* Get the amount of light at this block from nearby blocks.
* <p>
* Any light given from other sources (such as the sun) will be ignored.
*/
// @ts-ignore
getLightFromBlocks(): number;
/**
* Gets the world which contains this Block
*/
// @ts-ignore
getWorld(): org.bukkit.World;
/**
* Gets the x-coordinate of this block
*/
// @ts-ignore
getX(): number;
/**
* Gets the y-coordinate of this block
*/
// @ts-ignore
getY(): number;
/**
* Gets the z-coordinate of this block
*/
// @ts-ignore
getZ(): number;
/**
* Gets the Location of the block
*/
// @ts-ignore
getLocation(): org.bukkit.Location;
/**
* Stores the location of the block in the provided Location object.
* <p>
* If the provided Location is null this method does nothing and returns
* null.
*/
// @ts-ignore
getLocation(loc: org.bukkit.Location): org.bukkit.Location;
/**
* Gets the chunk which contains this block
*/
// @ts-ignore
getChunk(): org.bukkit.Chunk;
/**
* Sets the complete data for this block
*/
// @ts-ignore
setBlockData(data: org.bukkit.block.data.BlockData): void;
/**
* Sets the complete data for this block
* <br>
* Note that applyPhysics = false is not in general safe. It should only be
* used when you need to avoid triggering a physics update of neighboring
* blocks, for example when creating a {@link Bisected} block. If you are
* using a custom populator, then this parameter may also be required to
* prevent triggering infinite chunk loads on border blocks. This method
* should NOT be used to "hack" physics by placing blocks in impossible
* locations. Such blocks are liable to be removed on various events such as
* world upgrades. Furthermore setting large amounts of such blocks in close
* proximity may overload the server physics engine if an update is
* triggered at a later point. If this occurs, the resulting behavior is
* undefined.
*/
// @ts-ignore
setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void;
/**
* Sets the type of this block
*/
// @ts-ignore
setType(type: org.bukkit.Material): void;
/**
* Sets the type of this block
* <br>
* Note that applyPhysics = false is not in general safe. It should only be
* used when you need to avoid triggering a physics update of neighboring
* blocks, for example when creating a {@link Bisected} block. If you are
* using a custom populator, then this parameter may also be required to
* prevent triggering infinite chunk loads on border blocks. This method
* should NOT be used to "hack" physics by placing blocks in impossible
* locations. Such blocks are liable to be removed on various events such as
* world upgrades. Furthermore setting large amounts of such blocks in close
* proximity may overload the server physics engine if an update is
* triggered at a later point. If this occurs, the resulting behavior is
* undefined.
*/
// @ts-ignore
setType(type: org.bukkit.Material, applyPhysics: boolean): void;
/**
* Gets the face relation of this block compared to the given block.
* <p>
* For example:
* <pre>{@code
* Block current = world.getBlockAt(100, 100, 100);
* Block target = world.getBlockAt(100, 101, 100);
* current.getFace(target) == BlockFace.Up;
* }</pre>
* <br>
* If the given block is not connected to this block, null may be returned
*/
// @ts-ignore
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.
* <p>
* 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.
*/
// @ts-ignore
getState(): org.bukkit.block.BlockState;
/**
* Returns the biome that this block resides in
*/
// @ts-ignore
getBiome(): org.bukkit.block.Biome;
/**
* Sets the biome that this block resides in
*/
// @ts-ignore
setBiome(bio: org.bukkit.block.Biome): void;
/**
* Returns true if the block is being powered by Redstone.
*/
// @ts-ignore
isBlockPowered(): boolean;
/**
* Returns true if the block is being indirectly powered by Redstone.
*/
// @ts-ignore
isBlockIndirectlyPowered(): boolean;
/**
* Returns true if the block face is being powered by Redstone.
*/
// @ts-ignore
isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean;
/**
* Returns true if the block face is being indirectly powered by Redstone.
*/
// @ts-ignore
isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean;
/**
* Returns the redstone power being provided to this block face
*/
// @ts-ignore
getBlockPower(face: org.bukkit.block.BlockFace): number;
/**
* Returns the redstone power being provided to this block
*/
// @ts-ignore
getBlockPower(): number;
/**
* Checks if this block is empty.
* <p>
* A block is considered empty when {@link #getType()} returns {@link
* Material#AIR}.
*/
// @ts-ignore
isEmpty(): boolean;
/**
* Checks if this block is liquid.
* <p>
* A block is considered liquid when {@link #getType()} returns {@link
* Material#WATER} or {@link Material#LAVA}.
*/
// @ts-ignore
isLiquid(): boolean;
/**
* Gets the temperature of this block.
* <p>
* If the raw biome temperature without adjusting for height effects is
* required then please use {@link World#getTemperature(int, int)}.
*/
// @ts-ignore
getTemperature(): number;
/**
* Gets the humidity of the biome of this block
*/
// @ts-ignore
getHumidity(): number;
/**
* Returns the reaction of the block when moved by a piston
*/
// @ts-ignore
getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction;
/**
* Breaks the block and spawns items as if a player had digged it
*/
// @ts-ignore
breakNaturally(): boolean;
/**
* Breaks the block and spawns items as if a player had digged it with a
* specific tool
*/
// @ts-ignore
breakNaturally(tool: org.bukkit.inventory.ItemStack): boolean;
/**
* Returns a list of items which would drop by destroying this block
*/
// @ts-ignore
getDrops(): java.util.Collection;
/**
* Returns a list of items which would drop by destroying this block with
* a specific tool
*/
// @ts-ignore
getDrops(tool: org.bukkit.inventory.ItemStack): java.util.Collection;
/**
* Checks if this block is passable.
* <p>
* A block is passable if it has no colliding parts that would prevent
* players from moving through it.
* <p>
* Examples: Tall grass, flowers, signs, etc. are passable, but open doors,
* fence gates, trap doors, etc. are not because they still have parts that
* can be collided with.
*/
// @ts-ignore
isPassable(): boolean;
/**
* Performs a ray trace that checks for collision with this specific block
* in its current state using its precise collision shape.
*/
// @ts-ignore
rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult;
/**
* Gets the approximate bounding box for this block.
* <p>
* This isn't exact as some blocks {@link org.bukkit.block.data.type.Stairs}
* contain many bounding boxes to establish their complete form.
* Also, the box may not be exactly the same as the collision shape (such as
* cactus, which is 16/16 of a block with 15/16 collisional bounds).
* This method will return an empty bounding box if the geometric shape of
* the block is empty (such as air blocks).
*/
// @ts-ignore
getBoundingBox(): org.bukkit.util.BoundingBox;
}
}
}
}

View File

@@ -0,0 +1,74 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
class BlockFace extends java.lang.Enum {
// @ts-ignore
public static NORTH: org.bukkit.block.BlockFace;
// @ts-ignore
public static EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SOUTH: org.bukkit.block.BlockFace;
// @ts-ignore
public static WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static UP: org.bukkit.block.BlockFace;
// @ts-ignore
public static DOWN: org.bukkit.block.BlockFace;
// @ts-ignore
public static NORTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static NORTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SOUTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SOUTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static WEST_NORTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static NORTH_NORTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static NORTH_NORTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static EAST_NORTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static EAST_SOUTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SOUTH_SOUTH_EAST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SOUTH_SOUTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static WEST_SOUTH_WEST: org.bukkit.block.BlockFace;
// @ts-ignore
public static SELF: org.bukkit.block.BlockFace;
// @ts-ignore
public static values(): org.bukkit.block.BlockFace[];
// @ts-ignore
public static valueOf(name: string): org.bukkit.block.BlockFace;
/**
* Get the amount of X-coordinates to modify to get the represented block
*/
// @ts-ignore
public getModX(): number;
/**
* Get the amount of Y-coordinates to modify to get the represented block
*/
// @ts-ignore
public getModY(): number;
/**
* Get the amount of Z-coordinates to modify to get the represented block
*/
// @ts-ignore
public getModZ(): number;
/**
* Gets the normal vector corresponding to this block face.
*/
// @ts-ignore
public getDirection(): org.bukkit.util.Vector;
// @ts-ignore
public getOppositeFace(): org.bukkit.block.BlockFace;
}
}
}
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,24 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Chest extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
/**
* Gets the inventory of the chest block represented by this block state.
* <p>
* If the chest is a double chest, it returns just the portion of the
* inventory linked to the half of the chest corresponding to this block state.
* <p>
* If the block was changed to a different type in the meantime, the
* returned inventory might no longer be valid.
* <p>
* If this block state is not placed this will return the captured
* inventory snapshot instead.
*/
// @ts-ignore
getBlockInventory(): org.bukkit.inventory.Inventory;
}
}
}
}

View File

@@ -0,0 +1,38 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @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.
*/
// @ts-ignore
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.
*/
// @ts-ignore
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 "@".
*/
// @ts-ignore
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 "@".
*/
// @ts-ignore
setName(name: string): void;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Comparator extends org.bukkit.block.TileState {
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Conduit extends org.bukkit.block.TileState {
}
}
}
}

View File

@@ -0,0 +1,31 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Container extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.block.Lockable, org.bukkit.Nameable {
/**
* Gets the inventory of the block represented by this block state.
* <p>
* If the block was changed to a different type in the meantime, the
* returned inventory might no longer be valid.
* <p>
* If this block state is not placed this will return the captured inventory
* snapshot instead.
*/
// @ts-ignore
getInventory(): org.bukkit.inventory.Inventory;
/**
* Gets the captured inventory snapshot of this container.
* <p>
* The returned inventory is not linked to any block. Any modifications to
* the returned inventory will not be applied to the block represented by
* this block state up until {@link #update(boolean, boolean)} has been
* called.
*/
// @ts-ignore
getSnapshotInventory(): org.bukkit.inventory.Inventory;
}
}
}
}

View File

@@ -0,0 +1,152 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface CreatureSpawner extends org.bukkit.block.TileState {
/**
* Get the spawner's creature type.
*/
// @ts-ignore
getSpawnedType(): org.bukkit.entity.EntityType;
/**
* Set the spawner's creature type.
*/
// @ts-ignore
setSpawnedType(creatureType: org.bukkit.entity.EntityType): void;
/**
* Set the spawner mob type.
*/
// @ts-ignore
setCreatureTypeByName(creatureType: string): void;
/**
* Get the spawner's creature type.
*/
// @ts-ignore
getCreatureTypeName(): string;
/**
* Get the spawner's delay.
* <br>
* This is the delay, in ticks, until the spawner will spawn its next mob.
*/
// @ts-ignore
getDelay(): number;
/**
* Set the spawner's delay.
* <br>
* If set to -1, the spawn delay will be reset to a random value between
* {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}.
*/
// @ts-ignore
setDelay(delay: number): void;
/**
* The minimum spawn delay amount (in ticks).
* <br>
* This value is used when the spawner resets its delay (for any reason).
* It will choose a random number between {@link #getMinSpawnDelay()}
* and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}.
* Default value is 200 ticks.
*/
// @ts-ignore
getMinSpawnDelay(): number;
/**
* Set the minimum spawn delay amount (in ticks).
*/
// @ts-ignore
setMinSpawnDelay(delay: number): void;
/**
* The maximum spawn delay amount (in ticks).
* <br>
* This value is used when the spawner resets its delay (for any reason).
* It will choose a random number between {@link #getMinSpawnDelay()}
* and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}.
* <br>
* This value <b>must</b> be greater than 0 and less than or equal to
* {@link #getMaxSpawnDelay()}.
* Default value is 800 ticks.
*/
// @ts-ignore
getMaxSpawnDelay(): number;
/**
* Set the maximum spawn delay amount (in ticks).
* <br>
* This value <b>must</b> be greater than 0, as well as greater than or
* equal to {@link #getMinSpawnDelay()}
*/
// @ts-ignore
setMaxSpawnDelay(delay: number): void;
/**
* Get how many mobs attempt to spawn.
* <br>
* Default value is 4.
*/
// @ts-ignore
getSpawnCount(): number;
/**
* Set how many mobs attempt to spawn.
*/
// @ts-ignore
setSpawnCount(spawnCount: number): void;
/**
* Set the new maximum amount of similar entities that are allowed to be
* within spawning range of this spawner.
* <br>
* If more than the maximum number of entities are within range, the spawner
* will not spawn and try again with a new {@link #getDelay()}.
* <br>
* Default value is 16.
*/
// @ts-ignore
getMaxNearbyEntities(): number;
/**
* Set the maximum number of similar entities that are allowed to be within
* spawning range of this spawner.
* <br>
* Similar entities are entities that are of the same {@link EntityType}
*/
// @ts-ignore
setMaxNearbyEntities(maxNearbyEntities: number): void;
/**
* Get the maximum distance(squared) a player can be in order for this
* spawner to be active.
* <br>
* If this value is less than or equal to 0, this spawner is always active
* (given that there are players online).
* <br>
* Default value is 16.
*/
// @ts-ignore
getRequiredPlayerRange(): number;
/**
* Set the maximum distance (squared) a player can be in order for this
* spawner to be active.
* <br>
* Setting this value to less than or equal to 0 will make this spawner
* always active (given that there are players online).
*/
// @ts-ignore
setRequiredPlayerRange(requiredPlayerRange: number): void;
/**
* Get the radius around which the spawner will attempt to spawn mobs in.
* <br>
* This area is square, includes the block the spawner is in, and is
* centered on the spawner's x,z coordinates - not the spawner itself.
* <br>
* It is 2 blocks high, centered on the spawner's y-coordinate (its bottom);
* thus allowing mobs to spawn as high as its top surface and as low
* as 1 block below its bottom surface.
* <br>
* Default value is 4.
*/
// @ts-ignore
getSpawnRange(): number;
/**
* Set the new spawn range.
* <br>
*/
// @ts-ignore
setSpawnRange(spawnRange: number): void;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface DaylightDetector extends org.bukkit.block.TileState {
}
}
}
}

View File

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

View File

@@ -0,0 +1,28 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
class DoubleChest extends java.lang.Object implements org.bukkit.inventory.InventoryHolder {
// @ts-ignore
constructor(chest: org.bukkit.inventory.DoubleChestInventory)
// @ts-ignore
public getInventory(): org.bukkit.inventory.Inventory;
// @ts-ignore
public getLeftSide(): org.bukkit.inventory.InventoryHolder;
// @ts-ignore
public getRightSide(): org.bukkit.inventory.InventoryHolder;
// @ts-ignore
public getLocation(): org.bukkit.Location;
// @ts-ignore
public getWorld(): org.bukkit.World;
// @ts-ignore
public getX(): number;
// @ts-ignore
public getY(): number;
// @ts-ignore
public getZ(): number;
}
}
}
}

View File

@@ -0,0 +1,30 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @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.
* <p>
* Normal behavior of a dropper is as follows:
* <p>
* If the block that the dropper is facing is an InventoryHolder,
* the randomly selected ItemStack is placed within that
* Inventory in the first slot that's available, starting with 0 and
* counting up. If the inventory is full, nothing happens.
* <p>
* If the block that the dropper is facing is not an InventoryHolder,
* the randomly selected ItemStack is dropped on
* the ground in the form of an {@link org.bukkit.entity.Item Item}.
* <p>
* If the block represented by this state is no longer a dropper, this will
* do nothing.
*/
// @ts-ignore
drop(): void;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface EnchantingTable extends org.bukkit.block.TileState, org.bukkit.Nameable {
}
}
}
}

View File

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

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface EnderChest extends org.bukkit.block.TileState {
}
}
}
}

View File

@@ -0,0 +1,22 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface FlowerPot extends org.bukkit.block.BlockState {
/**
* Gets the item present in this flower pot.
*/
// @ts-ignore
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.
*/
// @ts-ignore
setContents(item: org.bukkit.material.MaterialData): void;
}
}
}
}

View File

@@ -0,0 +1,50 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Furnace extends org.bukkit.block.Container {
/**
* Get burn time.
*/
// @ts-ignore
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.
*/
// @ts-ignore
setBurnTime(burnTime: number): void;
/**
* Get cook time.
* This is the amount of time the item has been cooking for.
*/
// @ts-ignore
getCookTime(): number;
/**
* Set cook time.
* This is the amount of time the item has been cooking for.
*/
// @ts-ignore
setCookTime(cookTime: number): void;
/**
* Get cook time total.
* This is the amount of time the item is required to cook for.
*/
// @ts-ignore
getCookTimeTotal(): number;
/**
* Set cook time.
* This is the amount of time the item is required to cook for.
*/
// @ts-ignore
setCookTimeTotal(cookTimeTotal: number): void;
// @ts-ignore
getInventory(): org.bukkit.inventory.FurnaceInventory;
// @ts-ignore
getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory;
}
}
}
}

View File

@@ -0,0 +1,10 @@
// @ts-nocheck
declare namespace org {
namespace bukkit {
namespace block {
// @ts-ignore
interface Hopper extends org.bukkit.block.Container, org.bukkit.loot.Lootable {
}
}
}
}

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