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

* Note: A source is considered any String, although this is generally a * player name. */ - public getSource(): string; + getSource(): string; /** * Sets the source of this ban. *

* Note: A source is considered any String, although this is generally a * player name. */ - public setSource(source: string): void; + setSource(source: string): void; /** * Gets the date this ban expires on, or null for no defined end date. */ - public getExpiration(): any /*java.util.Date*/; + getExpiration(): any /*java.util.Date*/; /** * Sets the date this ban expires on. Null values are considered * "infinite" bans. */ - public setExpiration(expiration: any /*java.util.Date*/): void; + setExpiration(expiration: any /*java.util.Date*/): void; /** * Gets the reason for this ban. */ - public getReason(): string; + getReason(): string; /** * Sets the reason for this ban. Reasons must not be null. */ - public setReason(reason: string): void; + setReason(reason: string): void; /** * Saves the ban entry, overwriting any previous data in the ban list. *

* Saving the ban entry of an unbanned player will cause the player to be * banned once again. */ - public save(): void; + save(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts b/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts index e60db8eb..8d508846 100644 --- a/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.BanList.Type.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace BanList { - class Type { + // @ts-ignore + class Type { public static NAME: org.bukkit.BanList.Type; public static IP: org.bukkit.BanList.Type; public static values(): org.bukkit.BanList.Type[]; diff --git a/packages/bukkit/src/typings/org.bukkit.BanList.ts b/packages/bukkit/src/typings/org.bukkit.BanList.ts index f39ffd03..bedd04f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.BanList.ts +++ b/packages/bukkit/src/typings/org.bukkit.BanList.ts @@ -1,29 +1,30 @@ declare namespace org { namespace bukkit { - class BanList { + // @ts-ignore + interface BanList { /** * Gets a {@link BanEntry} by target. */ - public getBanEntry(target: string): org.bukkit.BanEntry; + getBanEntry(target: string): org.bukkit.BanEntry; /** * Adds a ban to the this list. If a previous ban exists, this will * update the previous entry. */ - public addBan(target: string, reason: string, expires: any /*java.util.Date*/, source: string): org.bukkit.BanEntry; + addBan(target: string, reason: string, expires: any /*java.util.Date*/, source: string): org.bukkit.BanEntry; /** * Gets a set containing every {@link BanEntry} in this list. */ - public getBanEntries(): any[] /*java.util.Set*/; + getBanEntries(): any[] /*java.util.Set*/; /** * Gets if a {@link BanEntry} exists for the target, indicating an active * ban status. */ - public isBanned(target: string): boolean; + isBanned(target: string): boolean; /** * Removes the specified target from this list, therefore indicating a * "not banned" status. */ - public pardon(target: string): void; + pardon(target: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts b/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts index 9bf0fed0..0c8f824e 100644 --- a/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts +++ b/packages/bukkit/src/typings/org.bukkit.BlockChangeDelegate.ts @@ -1,22 +1,23 @@ declare namespace org { namespace bukkit { - class BlockChangeDelegate { + // @ts-ignore + interface BlockChangeDelegate { /** * Set a block data at the specified coordinates. */ - public setBlockData(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): boolean; + setBlockData(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): boolean; /** * Get the block data at the location. */ - public getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; + getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; /** * Gets the height of the world. */ - public getHeight(): number; + getHeight(): number; /** * Checks if the specified block is empty (air) or not. */ - public isEmpty(x: number, y: number, z: number): boolean; + isEmpty(x: number, y: number, z: number): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Bukkit.ts b/packages/bukkit/src/typings/org.bukkit.Bukkit.ts index 48666d40..b4dbe3c9 100644 --- a/packages/bukkit/src/typings/org.bukkit.Bukkit.ts +++ b/packages/bukkit/src/typings/org.bukkit.Bukkit.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Bukkit { + // @ts-ignore + class Bukkit { /** * Gets the current {@link Server} singleton */ diff --git a/packages/bukkit/src/typings/org.bukkit.ChatColor.ts b/packages/bukkit/src/typings/org.bukkit.ChatColor.ts index f60d98d6..3237a2ef 100644 --- a/packages/bukkit/src/typings/org.bukkit.ChatColor.ts +++ b/packages/bukkit/src/typings/org.bukkit.ChatColor.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class ChatColor { + // @ts-ignore + class ChatColor { public static BLACK: org.bukkit.ChatColor; public static DARK_BLUE: org.bukkit.ChatColor; public static DARK_GREEN: org.bukkit.ChatColor; diff --git a/packages/bukkit/src/typings/org.bukkit.Chunk.ts b/packages/bukkit/src/typings/org.bukkit.Chunk.ts index 3a76b589..e6168ec6 100644 --- a/packages/bukkit/src/typings/org.bukkit.Chunk.ts +++ b/packages/bukkit/src/typings/org.bukkit.Chunk.ts @@ -1,76 +1,77 @@ declare namespace org { namespace bukkit { - class Chunk { + // @ts-ignore + interface Chunk { /** * Gets the X-coordinate of this chunk */ - public getX(): number; + getX(): number; /** * Gets the Z-coordinate of this chunk */ - public getZ(): number; + getZ(): number; /** * Gets the world containing this chunk */ - public getWorld(): org.bukkit.World; + getWorld(): org.bukkit.World; /** * Gets a block from this chunk */ - public getBlock(x: number, y: number, z: number): org.bukkit.block.Block; + getBlock(x: number, y: number, z: number): org.bukkit.block.Block; /** * Capture thread-safe read-only snapshot of chunk data */ - public getChunkSnapshot(): org.bukkit.ChunkSnapshot; + getChunkSnapshot(): org.bukkit.ChunkSnapshot; /** * Capture thread-safe read-only snapshot of chunk data */ - public getChunkSnapshot(includeMaxblocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean): org.bukkit.ChunkSnapshot; + getChunkSnapshot(includeMaxblocky: boolean, includeBiome: boolean, includeBiomeTempRain: boolean): org.bukkit.ChunkSnapshot; /** * Get a list of all entities in the chunk. */ - public getEntities(): org.bukkit.entity.Entity[]; + getEntities(): org.bukkit.entity.Entity[]; /** * Get a list of all tile entities in the chunk. */ - public getTileEntities(): org.bukkit.block.BlockState[]; + getTileEntities(): org.bukkit.block.BlockState[]; /** * Checks if the chunk is loaded. */ - public isLoaded(): boolean; + isLoaded(): boolean; /** * Loads the chunk. */ - public load(generate: boolean): boolean; + load(generate: boolean): boolean; /** * Loads the chunk. */ - public load(): boolean; + load(): boolean; /** * Unloads and optionally saves the Chunk */ - public unload(save: boolean): boolean; + unload(save: boolean): boolean; /** * Unloads and optionally saves the Chunk */ - public unload(): boolean; + unload(): boolean; /** * Checks if this chunk can spawn slimes without being a swamp biome. */ - public isSlimeChunk(): boolean; + isSlimeChunk(): boolean; /** * Gets whether the chunk at the specified chunk coordinates is force * loaded. *

* A force loaded chunk will not be unloaded due to lack of player activity. */ - public isForceLoaded(): boolean; + isForceLoaded(): boolean; /** * Sets whether the chunk at the specified chunk coordinates is force * loaded. *

* A force loaded chunk will not be unloaded due to lack of player activity. */ - public setForceLoaded(forced: boolean): void; + setForceLoaded(forced: boolean): void; /** * Adds a plugin ticket for this chunk, loading this chunk if it is not * already loaded. @@ -80,7 +81,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public addPluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean; + addPluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean; /** * Removes the specified plugin's ticket for this chunk *

@@ -89,7 +90,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean; + removePluginChunkTicket(plugin: org.bukkit.plugin.Plugin): boolean; /** * Retrieves a collection specifying which plugins have tickets for this * chunk. This collection is not updated when plugin tickets are added or @@ -100,7 +101,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public getPluginChunkTickets(): any[] /*java.util.Collection*/; + getPluginChunkTickets(): any[] /*java.util.Collection*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.ChunkSnapshot.ts b/packages/bukkit/src/typings/org.bukkit.ChunkSnapshot.ts index 8fb4870e..46dd80a2 100644 --- a/packages/bukkit/src/typings/org.bukkit.ChunkSnapshot.ts +++ b/packages/bukkit/src/typings/org.bukkit.ChunkSnapshot.ts @@ -1,59 +1,60 @@ declare namespace org { namespace bukkit { - class ChunkSnapshot { + // @ts-ignore + interface ChunkSnapshot { /** * Gets the X-coordinate of this chunk */ - public getX(): number; + getX(): number; /** * Gets the Z-coordinate of this chunk */ - public getZ(): number; + getZ(): number; /** * Gets name of the world containing this chunk */ - public getWorldName(): string; + getWorldName(): string; /** * Get block type for block at corresponding coordinate in the chunk */ - public getBlockType(x: number, y: number, z: number): org.bukkit.Material; + getBlockType(x: number, y: number, z: number): org.bukkit.Material; /** * Get block data for block at corresponding coordinate in the chunk */ - public getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; + getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; /** * Get block data for block at corresponding coordinate in the chunk */ - public getData(x: number, y: number, z: number): number; + getData(x: number, y: number, z: number): number; /** * Get sky light level for block at corresponding coordinate in the chunk */ - public getBlockSkyLight(x: number, y: number, z: number): number; + getBlockSkyLight(x: number, y: number, z: number): number; /** * Get light level emitted by block at corresponding coordinate in the * chunk */ - public getBlockEmittedLight(x: number, y: number, z: number): number; + getBlockEmittedLight(x: number, y: number, z: number): number; /** * Gets the highest non-air coordinate at the given coordinates */ - public getHighestBlockYAt(x: number, z: number): number; + getHighestBlockYAt(x: number, z: number): number; /** * Get biome at given coordinates */ - public getBiome(x: number, z: number): org.bukkit.block.Biome; + getBiome(x: number, z: number): org.bukkit.block.Biome; /** * Get raw biome temperature (0.0-1.0) at given coordinate */ - public getRawBiomeTemperature(x: number, z: number): number; + getRawBiomeTemperature(x: number, z: number): number; /** * Get world full time when chunk snapshot was captured */ - public getCaptureFullTime(): number; + getCaptureFullTime(): number; /** * Test if section is empty */ - public isSectionEmpty(sy: number): boolean; + isSectionEmpty(sy: number): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.CoalType.ts b/packages/bukkit/src/typings/org.bukkit.CoalType.ts index 90154125..9be4bc00 100644 --- a/packages/bukkit/src/typings/org.bukkit.CoalType.ts +++ b/packages/bukkit/src/typings/org.bukkit.CoalType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class CoalType { + // @ts-ignore + class CoalType { public static COAL: org.bukkit.CoalType; public static CHARCOAL: org.bukkit.CoalType; public static values(): org.bukkit.CoalType[]; diff --git a/packages/bukkit/src/typings/org.bukkit.Color.ts b/packages/bukkit/src/typings/org.bukkit.Color.ts index 720d61e3..e03b6153 100644 --- a/packages/bukkit/src/typings/org.bukkit.Color.ts +++ b/packages/bukkit/src/typings/org.bukkit.Color.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Color { + // @ts-ignore + class Color implements org.bukkit.configuration.serialization.ConfigurationSerializable { public static WHITE: org.bukkit.Color; public static SILVER: org.bukkit.Color; public static GRAY: org.bukkit.Color; diff --git a/packages/bukkit/src/typings/org.bukkit.CropState.ts b/packages/bukkit/src/typings/org.bukkit.CropState.ts index e67a46c5..6016d933 100644 --- a/packages/bukkit/src/typings/org.bukkit.CropState.ts +++ b/packages/bukkit/src/typings/org.bukkit.CropState.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class CropState { + // @ts-ignore + class CropState { public static SEEDED: org.bukkit.CropState; public static GERMINATED: org.bukkit.CropState; public static VERY_SMALL: org.bukkit.CropState; diff --git a/packages/bukkit/src/typings/org.bukkit.Difficulty.ts b/packages/bukkit/src/typings/org.bukkit.Difficulty.ts index c0294e1b..6396bdbe 100644 --- a/packages/bukkit/src/typings/org.bukkit.Difficulty.ts +++ b/packages/bukkit/src/typings/org.bukkit.Difficulty.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Difficulty { + // @ts-ignore + class Difficulty { public static PEACEFUL: org.bukkit.Difficulty; public static EASY: org.bukkit.Difficulty; public static NORMAL: org.bukkit.Difficulty; diff --git a/packages/bukkit/src/typings/org.bukkit.DyeColor.ts b/packages/bukkit/src/typings/org.bukkit.DyeColor.ts index 4ec901fe..a1c8cd8f 100644 --- a/packages/bukkit/src/typings/org.bukkit.DyeColor.ts +++ b/packages/bukkit/src/typings/org.bukkit.DyeColor.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class DyeColor { + // @ts-ignore + class DyeColor { public static WHITE: org.bukkit.DyeColor; public static ORANGE: org.bukkit.DyeColor; public static MAGENTA: org.bukkit.DyeColor; diff --git a/packages/bukkit/src/typings/org.bukkit.Effect.Type.ts b/packages/bukkit/src/typings/org.bukkit.Effect.Type.ts index f68a6eff..b5648a68 100644 --- a/packages/bukkit/src/typings/org.bukkit.Effect.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.Effect.Type.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Effect { - class Type { + // @ts-ignore + class Type { public static SOUND: org.bukkit.Effect.Type; public static VISUAL: org.bukkit.Effect.Type; public static values(): org.bukkit.Effect.Type[]; diff --git a/packages/bukkit/src/typings/org.bukkit.Effect.ts b/packages/bukkit/src/typings/org.bukkit.Effect.ts index 5a064661..c11aeed0 100644 --- a/packages/bukkit/src/typings/org.bukkit.Effect.ts +++ b/packages/bukkit/src/typings/org.bukkit.Effect.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Effect { + // @ts-ignore + class Effect { public static CLICK2: org.bukkit.Effect; public static CLICK1: org.bukkit.Effect; public static BOW_FIRE: org.bukkit.Effect; diff --git a/packages/bukkit/src/typings/org.bukkit.EntityEffect.ts b/packages/bukkit/src/typings/org.bukkit.EntityEffect.ts index f6499ae2..fe074925 100644 --- a/packages/bukkit/src/typings/org.bukkit.EntityEffect.ts +++ b/packages/bukkit/src/typings/org.bukkit.EntityEffect.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class EntityEffect { + // @ts-ignore + class EntityEffect { public static ARROW_PARTICLES: org.bukkit.EntityEffect; public static RABBIT_JUMP: org.bukkit.EntityEffect; public static HURT: org.bukkit.EntityEffect; diff --git a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Builder.ts b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Builder.ts index b9fce0cc..5c550d58 100644 --- a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Builder.ts +++ b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Builder.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace FireworkEffect { - class Builder { + // @ts-ignore + class Builder { /** * Specify the type of the firework effect. */ diff --git a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Type.ts b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Type.ts index 60b1d5f6..7d87e0c5 100644 --- a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.Type.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace FireworkEffect { - class Type { + // @ts-ignore + class Type { public static BALL: org.bukkit.FireworkEffect.Type; public static BALL_LARGE: org.bukkit.FireworkEffect.Type; public static STAR: org.bukkit.FireworkEffect.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.ts b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.ts index c1485b20..c8bf9369 100644 --- a/packages/bukkit/src/typings/org.bukkit.FireworkEffect.ts +++ b/packages/bukkit/src/typings/org.bukkit.FireworkEffect.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class FireworkEffect { + // @ts-ignore + class FireworkEffect implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Construct a firework effect. */ diff --git a/packages/bukkit/src/typings/org.bukkit.FluidCollisionMode.ts b/packages/bukkit/src/typings/org.bukkit.FluidCollisionMode.ts index 95322610..5b858ac8 100644 --- a/packages/bukkit/src/typings/org.bukkit.FluidCollisionMode.ts +++ b/packages/bukkit/src/typings/org.bukkit.FluidCollisionMode.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class FluidCollisionMode { + // @ts-ignore + class FluidCollisionMode { public static NEVER: org.bukkit.FluidCollisionMode; public static SOURCE_ONLY: org.bukkit.FluidCollisionMode; public static ALWAYS: org.bukkit.FluidCollisionMode; diff --git a/packages/bukkit/src/typings/org.bukkit.GameMode.ts b/packages/bukkit/src/typings/org.bukkit.GameMode.ts index 430ba0be..48c07893 100644 --- a/packages/bukkit/src/typings/org.bukkit.GameMode.ts +++ b/packages/bukkit/src/typings/org.bukkit.GameMode.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class GameMode { + // @ts-ignore + class GameMode { public static CREATIVE: org.bukkit.GameMode; public static SURVIVAL: org.bukkit.GameMode; public static ADVENTURE: org.bukkit.GameMode; diff --git a/packages/bukkit/src/typings/org.bukkit.GameRule.ts b/packages/bukkit/src/typings/org.bukkit.GameRule.ts index c9a17557..2aed0399 100644 --- a/packages/bukkit/src/typings/org.bukkit.GameRule.ts +++ b/packages/bukkit/src/typings/org.bukkit.GameRule.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class GameRule { + // @ts-ignore + class GameRule { public static ANNOUNCE_ADVANCEMENTS: org.bukkit.GameRule; public static COMMAND_BLOCK_OUTPUT: org.bukkit.GameRule; public static DISABLE_ELYTRA_MOVEMENT_CHECK: org.bukkit.GameRule; diff --git a/packages/bukkit/src/typings/org.bukkit.GrassSpecies.ts b/packages/bukkit/src/typings/org.bukkit.GrassSpecies.ts index 99e92ac8..59259292 100644 --- a/packages/bukkit/src/typings/org.bukkit.GrassSpecies.ts +++ b/packages/bukkit/src/typings/org.bukkit.GrassSpecies.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class GrassSpecies { + // @ts-ignore + class GrassSpecies { public static DEAD: org.bukkit.GrassSpecies; public static NORMAL: org.bukkit.GrassSpecies; public static FERN_LIKE: org.bukkit.GrassSpecies; diff --git a/packages/bukkit/src/typings/org.bukkit.Instrument.ts b/packages/bukkit/src/typings/org.bukkit.Instrument.ts index 60d54b5f..bb2746e2 100644 --- a/packages/bukkit/src/typings/org.bukkit.Instrument.ts +++ b/packages/bukkit/src/typings/org.bukkit.Instrument.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Instrument { + // @ts-ignore + class Instrument { public static PIANO: org.bukkit.Instrument; public static BASS_DRUM: org.bukkit.Instrument; public static SNARE_DRUM: org.bukkit.Instrument; diff --git a/packages/bukkit/src/typings/org.bukkit.Keyed.ts b/packages/bukkit/src/typings/org.bukkit.Keyed.ts index 3d814826..edb11918 100644 --- a/packages/bukkit/src/typings/org.bukkit.Keyed.ts +++ b/packages/bukkit/src/typings/org.bukkit.Keyed.ts @@ -1,10 +1,11 @@ declare namespace org { namespace bukkit { - class Keyed { + // @ts-ignore + interface Keyed { /** * Return the namespaced identifier for this object. */ - public getKey(): org.bukkit.NamespacedKey; + getKey(): org.bukkit.NamespacedKey; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Location.ts b/packages/bukkit/src/typings/org.bukkit.Location.ts index 35b8e1b9..6aba07f1 100644 --- a/packages/bukkit/src/typings/org.bukkit.Location.ts +++ b/packages/bukkit/src/typings/org.bukkit.Location.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Location { + // @ts-ignore + class Location implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Constructs a new Location with the given coordinates */ diff --git a/packages/bukkit/src/typings/org.bukkit.Material.ts b/packages/bukkit/src/typings/org.bukkit.Material.ts index a14a299f..a642fecf 100644 --- a/packages/bukkit/src/typings/org.bukkit.Material.ts +++ b/packages/bukkit/src/typings/org.bukkit.Material.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Material { + // @ts-ignore + class Material implements org.bukkit.Keyed { public static ACACIA_BOAT: org.bukkit.Material; public static ACACIA_BUTTON: org.bukkit.Material; public static ACACIA_DOOR: org.bukkit.Material; diff --git a/packages/bukkit/src/typings/org.bukkit.Nameable.ts b/packages/bukkit/src/typings/org.bukkit.Nameable.ts index 4beb4a94..a0c25b75 100644 --- a/packages/bukkit/src/typings/org.bukkit.Nameable.ts +++ b/packages/bukkit/src/typings/org.bukkit.Nameable.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Nameable { + // @ts-ignore + interface Nameable { /** * Gets the custom name on a mob or block. If there is no name this method * will return null. @@ -8,7 +9,7 @@ declare namespace org { * This value has no effect on players, they will always use their real * name. */ - public getCustomName(): string; + getCustomName(): string; /** * Sets a custom name on a mob or block. This name will be used in death * messages and can be sent to the client as a nameplate over the mob. @@ -18,7 +19,7 @@ declare namespace org { * This value has no effect on players, they will always use their real * name. */ - public setCustomName(name: string): void; + setCustomName(name: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.NamespacedKey.ts b/packages/bukkit/src/typings/org.bukkit.NamespacedKey.ts index 74e26310..44b6c855 100644 --- a/packages/bukkit/src/typings/org.bukkit.NamespacedKey.ts +++ b/packages/bukkit/src/typings/org.bukkit.NamespacedKey.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class NamespacedKey { + // @ts-ignore + class NamespacedKey { /** * Create a key in a specific namespace. */ diff --git a/packages/bukkit/src/typings/org.bukkit.NetherWartsState.ts b/packages/bukkit/src/typings/org.bukkit.NetherWartsState.ts index 5e6267e6..bd662a0c 100644 --- a/packages/bukkit/src/typings/org.bukkit.NetherWartsState.ts +++ b/packages/bukkit/src/typings/org.bukkit.NetherWartsState.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class NetherWartsState { + // @ts-ignore + class NetherWartsState { public static SEEDED: org.bukkit.NetherWartsState; public static STAGE_ONE: org.bukkit.NetherWartsState; public static STAGE_TWO: org.bukkit.NetherWartsState; diff --git a/packages/bukkit/src/typings/org.bukkit.Note.Tone.ts b/packages/bukkit/src/typings/org.bukkit.Note.Tone.ts index a1e63a29..b24f3b9f 100644 --- a/packages/bukkit/src/typings/org.bukkit.Note.Tone.ts +++ b/packages/bukkit/src/typings/org.bukkit.Note.Tone.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Note { - class Tone { + // @ts-ignore + class Tone { public static G: org.bukkit.Note.Tone; public static A: org.bukkit.Note.Tone; public static B: org.bukkit.Note.Tone; diff --git a/packages/bukkit/src/typings/org.bukkit.Note.ts b/packages/bukkit/src/typings/org.bukkit.Note.ts index 4bcc7b57..af6be76a 100644 --- a/packages/bukkit/src/typings/org.bukkit.Note.ts +++ b/packages/bukkit/src/typings/org.bukkit.Note.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Note { + // @ts-ignore + class Note { /** * Creates a new note. */ diff --git a/packages/bukkit/src/typings/org.bukkit.OfflinePlayer.ts b/packages/bukkit/src/typings/org.bukkit.OfflinePlayer.ts index 727478ad..1ed9b031 100644 --- a/packages/bukkit/src/typings/org.bukkit.OfflinePlayer.ts +++ b/packages/bukkit/src/typings/org.bukkit.OfflinePlayer.ts @@ -1,40 +1,41 @@ declare namespace org { namespace bukkit { - class OfflinePlayer { + // @ts-ignore + interface OfflinePlayer extends org.bukkit.permissions.ServerOperator, org.bukkit.entity.AnimalTamer, org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Checks if this player is currently online */ - public isOnline(): boolean; + isOnline(): boolean; /** * Returns the name of this player *

* Names are no longer unique past a single game session. For persistent storage * it is recommended that you use {@link #getUniqueId()} instead. */ - public getName(): string; + getName(): string; /** * Returns the UUID of this player */ - public getUniqueId(): any; + getUniqueId(): any; /** * Checks if this player is banned or not */ - public isBanned(): boolean; + isBanned(): boolean; /** * Checks if this player is whitelisted or not */ - public isWhitelisted(): boolean; + isWhitelisted(): boolean; /** * Sets if this player is whitelisted or not */ - public setWhitelisted(value: boolean): void; + setWhitelisted(value: boolean): void; /** * Gets a {@link Player} object that this represents, if there is one *

* If the player is online, this will return that player. Otherwise, * it will return null. */ - public getPlayer(): org.bukkit.entity.Player; + getPlayer(): org.bukkit.entity.Player; /** * Gets the first date and time that this player was witnessed on this * server. @@ -43,7 +44,7 @@ declare namespace org { * it will be the amount of milliseconds since midnight, January 1, 1970 * UTC. */ - public getFirstPlayed(): number; + getFirstPlayed(): number; /** * Gets the last date and time that this player was witnessed on this * server. @@ -52,16 +53,16 @@ declare namespace org { * it will be the amount of milliseconds since midnight, January 1, 1970 * UTC. */ - public getLastPlayed(): number; + getLastPlayed(): number; /** * Checks if this player has played on this server before. */ - public hasPlayedBefore(): boolean; + hasPlayedBefore(): boolean; /** * Gets the Location where the player will spawn at their bed, null if * they have not slept in one or their current bed spawn is invalid. */ - public getBedSpawnLocation(): org.bukkit.Location; + getBedSpawnLocation(): org.bukkit.Location; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts b/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts index 3b0bca8d..cd57e45c 100644 --- a/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.Particle.DustOptions.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Particle { - class DustOptions { + // @ts-ignore + class DustOptions { constructor(color: org.bukkit.Color, size: number) /** * The color of the particles to be displayed. diff --git a/packages/bukkit/src/typings/org.bukkit.Particle.ts b/packages/bukkit/src/typings/org.bukkit.Particle.ts index fea219d7..5e0cd6e9 100644 --- a/packages/bukkit/src/typings/org.bukkit.Particle.ts +++ b/packages/bukkit/src/typings/org.bukkit.Particle.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Particle { + // @ts-ignore + class Particle { public static EXPLOSION_NORMAL: org.bukkit.Particle; public static EXPLOSION_LARGE: org.bukkit.Particle; public static EXPLOSION_HUGE: org.bukkit.Particle; diff --git a/packages/bukkit/src/typings/org.bukkit.PortalType.ts b/packages/bukkit/src/typings/org.bukkit.PortalType.ts index 4c4e3828..e5907a90 100644 --- a/packages/bukkit/src/typings/org.bukkit.PortalType.ts +++ b/packages/bukkit/src/typings/org.bukkit.PortalType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class PortalType { + // @ts-ignore + class PortalType { public static NETHER: org.bukkit.PortalType; public static ENDER: org.bukkit.PortalType; public static CUSTOM: org.bukkit.PortalType; diff --git a/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts b/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts index f6f160c7..511df1dc 100644 --- a/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts +++ b/packages/bukkit/src/typings/org.bukkit.Registry.SimpleRegistry.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Registry { - class SimpleRegistry { + // @ts-ignore + class SimpleRegistry implements org.bukkit.Registry { constructor(type: any) constructor(type: any, predicate: any) public get(key: org.bukkit.NamespacedKey): any; diff --git a/packages/bukkit/src/typings/org.bukkit.Registry.ts b/packages/bukkit/src/typings/org.bukkit.Registry.ts index 272a7628..d509418d 100644 --- a/packages/bukkit/src/typings/org.bukkit.Registry.ts +++ b/packages/bukkit/src/typings/org.bukkit.Registry.ts @@ -1,22 +1,23 @@ declare namespace org { namespace bukkit { - class Registry { - public static ADVANCEMENT: org.bukkit.Registry; - public static ART: org.bukkit.Registry; - public static BIOME: org.bukkit.Registry; - public static BOSS_BARS: org.bukkit.Registry; - public static ENCHANTMENT: org.bukkit.Registry; - public static ENTITY_TYPE: org.bukkit.Registry; - public static LOOT_TABLES: org.bukkit.Registry; - public static MATERIAL: org.bukkit.Registry; - public static STATISTIC: org.bukkit.Registry; - public static VILLAGER_PROFESSION: org.bukkit.Registry; - public static VILLAGER_TYPE: org.bukkit.Registry; - public static MEMORY_MODULE_TYPE: org.bukkit.Registry; + // @ts-ignore + interface Registry { + ADVANCEMENT: org.bukkit.Registry; + ART: org.bukkit.Registry; + BIOME: org.bukkit.Registry; + BOSS_BARS: org.bukkit.Registry; + ENCHANTMENT: org.bukkit.Registry; + ENTITY_TYPE: org.bukkit.Registry; + LOOT_TABLES: org.bukkit.Registry; + MATERIAL: org.bukkit.Registry; + STATISTIC: org.bukkit.Registry; + VILLAGER_PROFESSION: org.bukkit.Registry; + VILLAGER_TYPE: org.bukkit.Registry; + MEMORY_MODULE_TYPE: org.bukkit.Registry; /** * Get the object by its key. */ - public get(key: org.bukkit.NamespacedKey): org.bukkit.Keyed; + get(key: org.bukkit.NamespacedKey): org.bukkit.Keyed; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Rotation.ts b/packages/bukkit/src/typings/org.bukkit.Rotation.ts index 7e898ea0..dfa46e1d 100644 --- a/packages/bukkit/src/typings/org.bukkit.Rotation.ts +++ b/packages/bukkit/src/typings/org.bukkit.Rotation.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Rotation { + // @ts-ignore + class Rotation { public static NONE: org.bukkit.Rotation; public static CLOCKWISE_45: org.bukkit.Rotation; public static CLOCKWISE: org.bukkit.Rotation; diff --git a/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts b/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts index 908b04b3..2635dae5 100644 --- a/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts +++ b/packages/bukkit/src/typings/org.bukkit.SandstoneType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class SandstoneType { + // @ts-ignore + class SandstoneType { public static CRACKED: org.bukkit.SandstoneType; public static GLYPHED: org.bukkit.SandstoneType; public static SMOOTH: org.bukkit.SandstoneType; diff --git a/packages/bukkit/src/typings/org.bukkit.Server.ts b/packages/bukkit/src/typings/org.bukkit.Server.ts index f148029c..20ec6d28 100644 --- a/packages/bukkit/src/typings/org.bukkit.Server.ts +++ b/packages/bukkit/src/typings/org.bukkit.Server.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { - class Server { - public static BROADCAST_CHANNEL_ADMINISTRATIVE: string; - public static BROADCAST_CHANNEL_USERS: string; + // @ts-ignore + interface Server extends org.bukkit.plugin.messaging.PluginMessageRecipient { + BROADCAST_CHANNEL_ADMINISTRATIVE: string; + BROADCAST_CHANNEL_USERS: string; /** * Gets the name of this server implementation. */ - public getName(): string; + getName(): string; /** * Gets the version string of this server implementation. */ - public getVersion(): string; + getVersion(): string; /** * Gets the Bukkit version that this server is running. */ - public getBukkitVersion(): string; + getBukkitVersion(): string; /** * Gets a view of all currently logged in players. This {@linkplain * Collections#unmodifiableCollection(Collection) view} is a reused @@ -40,79 +41,79 @@ declare namespace org { * using {@link Collection#toArray(Object[])} is recommended. For making * snapshots, {@link ImmutableList#copyOf(Collection)} is recommended. */ - public getOnlinePlayers(): any[] /*java.util.Collection*/; + getOnlinePlayers(): any[] /*java.util.Collection*/; /** * Get the maximum amount of players which can login to this server. */ - public getMaxPlayers(): number; + getMaxPlayers(): number; /** * Get the game port that the server runs on. */ - public getPort(): number; + getPort(): number; /** * Get the view distance from this server. */ - public getViewDistance(): number; + getViewDistance(): number; /** * Get the IP that this server is bound to, or empty string if not * specified. */ - public getIp(): string; + getIp(): string; /** * Get world type (level-type setting) for default world. */ - public getWorldType(): string; + getWorldType(): string; /** * Get generate-structures setting. */ - public getGenerateStructures(): boolean; + getGenerateStructures(): boolean; /** * Gets whether this server allows the End or not. */ - public getAllowEnd(): boolean; + getAllowEnd(): boolean; /** * Gets whether this server allows the Nether or not. */ - public getAllowNether(): boolean; + getAllowNether(): boolean; /** * Gets whether this server has a whitelist or not. */ - public hasWhitelist(): boolean; + hasWhitelist(): boolean; /** * Sets if the server is whitelisted. */ - public setWhitelist(value: boolean): void; + setWhitelist(value: boolean): void; /** * Gets a list of whitelisted players. */ - public getWhitelistedPlayers(): any[] /*java.util.Set*/; + getWhitelistedPlayers(): any[] /*java.util.Set*/; /** * Reloads the whitelist from disk. */ - public reloadWhitelist(): void; + reloadWhitelist(): void; /** * Broadcast a message to all players. *

* This is the same as calling {@link #broadcast(java.lang.String, * java.lang.String)} to {@link #BROADCAST_CHANNEL_USERS} */ - public broadcastMessage(message: string): number; + broadcastMessage(message: string): number; /** * Gets the name of the update folder. The update folder is used to safely * update plugins at the right moment on a plugin load. *

* The update folder name is relative to the plugins folder. */ - public getUpdateFolder(): string; + getUpdateFolder(): string; /** * Gets the update folder. The update folder is used to safely update * plugins at the right moment on a plugin load. */ - public getUpdateFolderFile(): any; + getUpdateFolderFile(): any; /** * Gets the value of the connection throttle setting. */ - public getConnectionThrottle(): number; + getConnectionThrottle(): number; /** * Gets default ticks per animal spawns value. *

@@ -130,7 +131,7 @@ declare namespace org { *

* Minecraft default: 400. */ - public getTicksPerAnimalSpawns(): number; + getTicksPerAnimalSpawns(): number; /** * Gets the default ticks per monster spawns value. *

@@ -148,17 +149,17 @@ declare namespace org { *

* Minecraft default: 1. */ - public getTicksPerMonsterSpawns(): number; + getTicksPerMonsterSpawns(): number; /** * Gets a player object by the given username. *

* This method may not return objects for offline players. */ - public getPlayer(name: string): org.bukkit.entity.Player; + getPlayer(name: string): org.bukkit.entity.Player; /** * Gets the player with the exact given name, case insensitive. */ - public getPlayerExact(name: string): org.bukkit.entity.Player; + getPlayerExact(name: string): org.bukkit.entity.Player; /** * Attempts to match any players with the given name, and returns a list * of all possibly matches. @@ -166,27 +167,27 @@ declare namespace org { * This list is not sorted in any particular order. If an exact match is * found, the returned list will only contain a single result. */ - public matchPlayer(name: string): any[] /*java.util.List*/; + matchPlayer(name: string): any[] /*java.util.List*/; /** * Gets the player with the given UUID. */ - public getPlayer(id: any): org.bukkit.entity.Player; + getPlayer(id: any): org.bukkit.entity.Player; /** * Gets the plugin manager for interfacing with plugins. */ - public getPluginManager(): org.bukkit.plugin.PluginManager; + getPluginManager(): org.bukkit.plugin.PluginManager; /** * Gets the scheduler for managing scheduled events. */ - public getScheduler(): org.bukkit.scheduler.BukkitScheduler; + getScheduler(): org.bukkit.scheduler.BukkitScheduler; /** * Gets a services manager. */ - public getServicesManager(): org.bukkit.plugin.ServicesManager; + getServicesManager(): org.bukkit.plugin.ServicesManager; /** * Gets a list of all worlds on this server. */ - public getWorlds(): any[] /*java.util.List*/; + getWorlds(): any[] /*java.util.List*/; /** * Creates or loads a world with the given name using the specified * options. @@ -194,31 +195,31 @@ declare namespace org { * If the world is already loaded, it will just return the equivalent of * getWorld(creator.name()). */ - public createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World; + createWorld(creator: org.bukkit.WorldCreator): org.bukkit.World; /** * Unloads a world with the given name. */ - public unloadWorld(name: string, save: boolean): boolean; + unloadWorld(name: string, save: boolean): boolean; /** * Unloads the given world. */ - public unloadWorld(world: org.bukkit.World, save: boolean): boolean; + unloadWorld(world: org.bukkit.World, save: boolean): boolean; /** * Gets the world with the given name. */ - public getWorld(name: string): org.bukkit.World; + getWorld(name: string): org.bukkit.World; /** * Gets the world from the given Unique ID. */ - public getWorld(uid: any): org.bukkit.World; + getWorld(uid: any): org.bukkit.World; /** * Gets the map from the given item ID. */ - public getMap(id: number): org.bukkit.map.MapView; + getMap(id: number): org.bukkit.map.MapView; /** * Create a new map with an automatically assigned ID. */ - public createMap(world: org.bukkit.World): org.bukkit.map.MapView; + createMap(world: org.bukkit.World): org.bukkit.map.MapView; /** * Create a new explorer map targeting the closest nearby structure of a * given {@link StructureType}. @@ -226,7 +227,7 @@ declare namespace org { * This method uses implementation default values for radius and * findUnexplored (usually 100, true). */ - public createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack; + createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType): org.bukkit.inventory.ItemStack; /** * Create a new explorer map targeting the closest nearby structure of a * given {@link StructureType}. @@ -234,86 +235,86 @@ declare namespace org { * This method uses implementation default values for radius and * findUnexplored (usually 100, true). */ - public createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack; + createExplorerMap(world: org.bukkit.World, location: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.inventory.ItemStack; /** * Reloads the server, refreshing settings and plugin information. */ - public reload(): void; + reload(): void; /** * Reload only the Minecraft data for the server. This includes custom * advancements and loot tables. */ - public reloadData(): void; + reloadData(): void; /** * Returns the primary logger associated with this server instance. */ - public getLogger(): any; + getLogger(): any; /** * Gets a {@link PluginCommand} with the given name or alias. */ - public getPluginCommand(name: string): org.bukkit.command.PluginCommand; + getPluginCommand(name: string): org.bukkit.command.PluginCommand; /** * Writes loaded players to disk. */ - public savePlayers(): void; + savePlayers(): void; /** * Dispatches a command on this server, and executes it if found. */ - public dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean; + dispatchCommand(sender: org.bukkit.command.CommandSender, commandLine: string): boolean; /** * Adds a recipe to the crafting manager. */ - public addRecipe(recipe: org.bukkit.inventory.Recipe): boolean; + addRecipe(recipe: org.bukkit.inventory.Recipe): boolean; /** * Get a list of all recipes for a given item. The stack size is ignored * in comparisons. If the durability is -1, it will match any data value. */ - public getRecipesFor(result: org.bukkit.inventory.ItemStack): any[] /*java.util.List*/; + getRecipesFor(result: org.bukkit.inventory.ItemStack): any[] /*java.util.List*/; /** * Get an iterator through the list of crafting recipes. */ - public recipeIterator(): any; + recipeIterator(): any; /** * Clears the list of crafting recipes. */ - public clearRecipes(): void; + clearRecipes(): void; /** * Resets the list of crafting recipes to the default. */ - public resetRecipes(): void; + resetRecipes(): void; /** * Gets a list of command aliases defined in the server properties. */ - public getCommandAliases(): Map /*java.util.Map*/; + getCommandAliases(): Map /*java.util.Map*/; /** * Gets the radius, in blocks, around each worlds spawn point to protect. */ - public getSpawnRadius(): number; + getSpawnRadius(): number; /** * Sets the radius, in blocks, around each worlds spawn point to protect. */ - public setSpawnRadius(value: number): void; + setSpawnRadius(value: number): void; /** * Gets whether the Server is in online mode or not. */ - public getOnlineMode(): boolean; + getOnlineMode(): boolean; /** * Gets whether this server allows flying or not. */ - public getAllowFlight(): boolean; + getAllowFlight(): boolean; /** * Gets whether the server is in hardcore mode or not. */ - public isHardcore(): boolean; + isHardcore(): boolean; /** * Shutdowns the server, stopping everything. */ - public shutdown(): void; + shutdown(): void; /** * Broadcasts the specified message to every user with the given * permission name. */ - public broadcast(message: string, permission: string): number; + broadcast(message: string, permission: string): number; /** * Gets the player by the given name, regardless if they are offline or * online. @@ -324,7 +325,7 @@ declare namespace org { * This will return an object even if the player does not exist. To this * method, all players will exist. */ - public getOfflinePlayer(name: string): org.bukkit.OfflinePlayer; + getOfflinePlayer(name: string): org.bukkit.OfflinePlayer; /** * Gets the player by the given UUID, regardless if they are offline or * online. @@ -332,63 +333,63 @@ declare namespace org { * This will return an object even if the player does not exist. To this * method, all players will exist. */ - public getOfflinePlayer(id: any): org.bukkit.OfflinePlayer; + getOfflinePlayer(id: any): org.bukkit.OfflinePlayer; /** * Gets a set containing all current IPs that are banned. */ - public getIPBans(): any[] /*java.util.Set*/; + getIPBans(): any[] /*java.util.Set*/; /** * Bans the specified address from the server. */ - public banIP(address: string): void; + banIP(address: string): void; /** * Unbans the specified address from the server. */ - public unbanIP(address: string): void; + unbanIP(address: string): void; /** * Gets a set containing all banned players. */ - public getBannedPlayers(): any[] /*java.util.Set*/; + getBannedPlayers(): any[] /*java.util.Set*/; /** * Gets a ban list for the supplied type. *

* Bans by name are no longer supported and this method will return * null when trying to request them. The replacement is bans by UUID. */ - public getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList; + getBanList(type: org.bukkit.BanList.Type): org.bukkit.BanList; /** * Gets a set containing all player operators. */ - public getOperators(): any[] /*java.util.Set*/; + getOperators(): any[] /*java.util.Set*/; /** * Gets the default {@link GameMode} for new players. */ - public getDefaultGameMode(): org.bukkit.GameMode; + getDefaultGameMode(): org.bukkit.GameMode; /** * Sets the default {@link GameMode} for new players. */ - public setDefaultGameMode(mode: org.bukkit.GameMode): void; + setDefaultGameMode(mode: org.bukkit.GameMode): void; /** * Gets a {@link ConsoleCommandSender} that may be used as an input source * for this server. */ - public getConsoleSender(): org.bukkit.command.ConsoleCommandSender; + getConsoleSender(): org.bukkit.command.ConsoleCommandSender; /** * Gets the folder that contains all of the various {@link World}s. */ - public getWorldContainer(): any; + getWorldContainer(): any; /** * Gets every player that has ever played on this server. */ - public getOfflinePlayers(): org.bukkit.OfflinePlayer[]; + getOfflinePlayers(): org.bukkit.OfflinePlayer[]; /** * Gets the {@link Messenger} responsible for this server. */ - public getMessenger(): org.bukkit.plugin.messaging.Messenger; + getMessenger(): org.bukkit.plugin.messaging.Messenger; /** * Gets the {@link HelpMap} providing help topics for this server. */ - public getHelpMap(): org.bukkit.help.HelpMap; + getHelpMap(): org.bukkit.help.HelpMap; /** * Creates an empty inventory with the specified type. If the type * is {@link InventoryType#CHEST}, the new inventory has a size of 27; @@ -402,7 +403,7 @@ declare namespace org { * for possible enchanting results. Use * {@link Player#openEnchanting(Location, boolean)} instead. */ - public createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory; + createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType): org.bukkit.inventory.Inventory; /** * Creates an empty inventory with the specified type and title. If the type * is {@link InventoryType#CHEST}, the new inventory has a size of 27; @@ -418,41 +419,41 @@ declare namespace org { * for possible enchanting results. Use * {@link Player#openEnchanting(Location, boolean)} instead. */ - public createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory; + createInventory(owner: org.bukkit.inventory.InventoryHolder, type: org.bukkit.event.inventory.InventoryType, title: string): org.bukkit.inventory.Inventory; /** * Creates an empty inventory of type {@link InventoryType#CHEST} with the * specified size. */ - public createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory; + createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number): org.bukkit.inventory.Inventory; /** * Creates an empty inventory of type {@link InventoryType#CHEST} with the * specified size and title. */ - public createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory; + createInventory(owner: org.bukkit.inventory.InventoryHolder, size: number, title: string): org.bukkit.inventory.Inventory; /** * Creates an empty merchant. */ - public createMerchant(title: string): org.bukkit.inventory.Merchant; + createMerchant(title: string): org.bukkit.inventory.Merchant; /** * Gets user-specified limit for number of monsters that can spawn in a * chunk. */ - public getMonsterSpawnLimit(): number; + getMonsterSpawnLimit(): number; /** * Gets user-specified limit for number of animals that can spawn in a * chunk. */ - public getAnimalSpawnLimit(): number; + getAnimalSpawnLimit(): number; /** * Gets user-specified limit for number of water animals that can spawn in * a chunk. */ - public getWaterAnimalSpawnLimit(): number; + getWaterAnimalSpawnLimit(): number; /** * Gets user-specified limit for number of ambient mobs that can spawn in * a chunk. */ - public getAmbientSpawnLimit(): number; + getAmbientSpawnLimit(): number; /** * Checks the current thread against the expected primary thread for the * server. @@ -462,33 +463,33 @@ declare namespace org { * thread indicates that it is synchronized, but a mismatch does not * preclude the same assumption. */ - public isPrimaryThread(): boolean; + isPrimaryThread(): boolean; /** * Gets the message that is displayed on the server list. */ - public getMotd(): string; + getMotd(): string; /** * Gets the default message that is displayed when the server is stopped. */ - public getShutdownMessage(): string; + getShutdownMessage(): string; /** * Gets the current warning state for the server. */ - public getWarningState(): org.bukkit.Warning.WarningState; + getWarningState(): org.bukkit.Warning.WarningState; /** * Gets the instance of the item factory (for {@link ItemMeta}). */ - public getItemFactory(): org.bukkit.inventory.ItemFactory; + getItemFactory(): org.bukkit.inventory.ItemFactory; /** * Gets the instance of the scoreboard manager. *

* This will only exist after the first world has loaded. */ - public getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager; + getScoreboardManager(): org.bukkit.scoreboard.ScoreboardManager; /** * Gets an instance of the server's default server-icon. */ - public getServerIcon(): org.bukkit.util.CachedServerIcon; + getServerIcon(): org.bukkit.util.CachedServerIcon; /** * Loads an image from a file, and returns a cached image for the specific * server-icon. @@ -496,35 +497,35 @@ declare namespace org { * Size and type are implementation defined. An incompatible file is * guaranteed to throw an implementation-defined {@link Exception}. */ - public loadServerIcon(file: any): org.bukkit.util.CachedServerIcon; + loadServerIcon(file: any): org.bukkit.util.CachedServerIcon; /** * Creates a cached server-icon for the specific image. *

* Size and type are implementation defined. An incompatible file is * guaranteed to throw an implementation-defined {@link Exception}. */ - public loadServerIcon(image: any): org.bukkit.util.CachedServerIcon; + loadServerIcon(image: any): org.bukkit.util.CachedServerIcon; /** * Set the idle kick timeout. Any players idle for the specified amount of * time will be automatically kicked. *

* A value of 0 will disable the idle kick timeout. */ - public setIdleTimeout(threshold: number): void; + setIdleTimeout(threshold: number): void; /** * Gets the idle kick timeout. */ - public getIdleTimeout(): number; + getIdleTimeout(): number; /** * Create a ChunkData for use in a generator. * See {@link ChunkGenerator#generateChunkData(org.bukkit.World, java.util.Random, int, int, org.bukkit.generator.ChunkGenerator.BiomeGrid)} */ - public createChunkData(world: org.bukkit.World): org.bukkit.generator.ChunkGenerator.ChunkData; + createChunkData(world: org.bukkit.World): org.bukkit.generator.ChunkGenerator.ChunkData; /** * Creates a boss bar instance to display to players. The progress * defaults to 1.0 */ - public createBossBar(title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.BossBar; + createBossBar(title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.BossBar; /** * Creates a boss bar instance to display to players. The progress defaults * to 1.0. @@ -532,7 +533,7 @@ declare namespace org { * This instance is added to the persistent storage of the server and will * be editable by commands and restored after restart. */ - public createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar; + createBossBar(key: org.bukkit.NamespacedKey, title: string, color: org.bukkit.boss.BarColor, style: org.bukkit.boss.BarStyle, flags: org.bukkit.boss.BarFlag): org.bukkit.boss.KeyedBossBar; /** * Gets an unmodifiable iterator through all persistent bossbars. *

* e.g. bossbars created using the bossbar command */ - public getBossBars(): any; + getBossBars(): any; /** * Gets the {@link KeyedBossBar} specified by this key. * * e.g. bossbars created using the bossbar command */ - public getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar; + getBossBar(key: org.bukkit.NamespacedKey): org.bukkit.boss.KeyedBossBar; /** * Removes a {@link KeyedBossBar} specified by this key. * * e.g. bossbars created using the bossbar command */ - public removeBossBar(key: org.bukkit.NamespacedKey): boolean; + removeBossBar(key: org.bukkit.NamespacedKey): boolean; /** * Gets an entity on the server by its UUID */ - public getEntity(uuid: any): org.bukkit.entity.Entity; + getEntity(uuid: any): org.bukkit.entity.Entity; /** * Get the advancement specified by this key. */ - public getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement; + getAdvancement(key: org.bukkit.NamespacedKey): org.bukkit.advancement.Advancement; /** * Get an iterator through all advancements. Advancements cannot be removed * from this iterator, */ - public advancementIterator(): any; + advancementIterator(): any; /** * Creates a new {@link BlockData} instance for the specified Material, with * all properties initialized to unspecified defaults. */ - public createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; + createBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; /** * Creates a new {@link BlockData} instance for the specified Material, with * all properties initialized to unspecified defaults. */ - public createBlockData(material: org.bukkit.Material, consumer: any): org.bukkit.block.data.BlockData; + createBlockData(material: org.bukkit.Material, consumer: any): org.bukkit.block.data.BlockData; /** * Creates a new {@link BlockData} instance with material and properties * parsed from provided data. */ - public createBlockData(data: string): org.bukkit.block.data.BlockData; + createBlockData(data: string): org.bukkit.block.data.BlockData; /** * Creates a new {@link BlockData} instance for the specified Material, with * all properties initialized to unspecified defaults, except for those @@ -605,7 +606,7 @@ declare namespace org { * If material is specified, then the data string must not also * contain the material. */ - public createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData; + createBlockData(material: org.bukkit.Material, data: string): org.bukkit.block.data.BlockData; /** * Gets a tag which has already been defined within the server. Plugins are * suggested to use the concrete tags in {@link Tag} rather than this method @@ -618,7 +619,7 @@ declare namespace org { * Server implementations are allowed to handle only the registries * indicated in {@link Tag}. */ - public getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: any): org.bukkit.Tag; + getTag(registry: string, tag: org.bukkit.NamespacedKey, clazz: any): org.bukkit.Tag; /** * Gets a all tags which have been defined within the server. *
@@ -627,11 +628,11 @@ declare namespace org { *
* No guarantees are made about the mutability of the returned iterator. */ - public getTags(registry: string, clazz: any): any; + getTags(registry: string, clazz: any): any; /** * Gets the specified {@link LootTable}. */ - public getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable; + getLootTable(key: org.bukkit.NamespacedKey): org.bukkit.loot.LootTable; /** * Selects entities using the given Vanilla selector. *
@@ -645,8 +646,8 @@ declare namespace org { * '@' selectors, but this method should not check such permissions from the * sender. */ - public selectEntities(sender: org.bukkit.command.CommandSender, selector: string): any[] /*java.util.List*/; - public getUnsafe(): org.bukkit.UnsafeValues; + selectEntities(sender: org.bukkit.command.CommandSender, selector: string): any[] /*java.util.List*/; + getUnsafe(): org.bukkit.UnsafeValues; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.SkullType.ts b/packages/bukkit/src/typings/org.bukkit.SkullType.ts index 495048e1..1746bb99 100644 --- a/packages/bukkit/src/typings/org.bukkit.SkullType.ts +++ b/packages/bukkit/src/typings/org.bukkit.SkullType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class SkullType { + // @ts-ignore + class SkullType { public static SKELETON: org.bukkit.SkullType; public static WITHER: org.bukkit.SkullType; public static ZOMBIE: org.bukkit.SkullType; diff --git a/packages/bukkit/src/typings/org.bukkit.Sound.ts b/packages/bukkit/src/typings/org.bukkit.Sound.ts index 738eb6a9..7bc49fa7 100644 --- a/packages/bukkit/src/typings/org.bukkit.Sound.ts +++ b/packages/bukkit/src/typings/org.bukkit.Sound.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Sound { + // @ts-ignore + class Sound { public static AMBIENT_CAVE: any; public static AMBIENT_UNDERWATER_ENTER: any; public static AMBIENT_UNDERWATER_EXIT: any; diff --git a/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts b/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts index 29510402..a94a3ac3 100644 --- a/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts +++ b/packages/bukkit/src/typings/org.bukkit.SoundCategory.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class SoundCategory { + // @ts-ignore + class SoundCategory { public static MASTER: org.bukkit.SoundCategory; public static MUSIC: org.bukkit.SoundCategory; public static RECORDS: org.bukkit.SoundCategory; diff --git a/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts b/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts index 55ee8bea..5247806a 100644 --- a/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.Statistic.Type.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Statistic { - class Type { + // @ts-ignore + class Type { public static UNTYPED: org.bukkit.Statistic.Type; public static ITEM: org.bukkit.Statistic.Type; public static BLOCK: org.bukkit.Statistic.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.Statistic.ts b/packages/bukkit/src/typings/org.bukkit.Statistic.ts index af4d7ac4..8d65357d 100644 --- a/packages/bukkit/src/typings/org.bukkit.Statistic.ts +++ b/packages/bukkit/src/typings/org.bukkit.Statistic.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Statistic { + // @ts-ignore + class Statistic implements org.bukkit.Keyed { public static DAMAGE_DEALT: org.bukkit.Statistic; public static DAMAGE_TAKEN: org.bukkit.Statistic; public static DEATHS: org.bukkit.Statistic; diff --git a/packages/bukkit/src/typings/org.bukkit.StructureType.ts b/packages/bukkit/src/typings/org.bukkit.StructureType.ts index d4f7720f..837fc9b8 100644 --- a/packages/bukkit/src/typings/org.bukkit.StructureType.ts +++ b/packages/bukkit/src/typings/org.bukkit.StructureType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class StructureType { + // @ts-ignore + class StructureType { public static MINESHAFT: org.bukkit.StructureType; public static VILLAGE: org.bukkit.StructureType; public static NETHER_FORTRESS: org.bukkit.StructureType; diff --git a/packages/bukkit/src/typings/org.bukkit.Tag.ts b/packages/bukkit/src/typings/org.bukkit.Tag.ts index 539eee64..636c2287 100644 --- a/packages/bukkit/src/typings/org.bukkit.Tag.ts +++ b/packages/bukkit/src/typings/org.bukkit.Tag.ts @@ -1,70 +1,71 @@ declare namespace org { namespace bukkit { - class Tag { - public static REGISTRY_BLOCKS: string; - public static WOOL: org.bukkit.Tag; - public static PLANKS: org.bukkit.Tag; - public static STONE_BRICKS: org.bukkit.Tag; - public static WOODEN_BUTTONS: org.bukkit.Tag; - public static BUTTONS: org.bukkit.Tag; - public static CARPETS: org.bukkit.Tag; - public static WOODEN_DOORS: org.bukkit.Tag; - public static WOODEN_STAIRS: org.bukkit.Tag; - public static WOODEN_SLABS: org.bukkit.Tag; - public static WOODEN_FENCES: org.bukkit.Tag; - public static WOODEN_PRESSURE_PLATES: org.bukkit.Tag; - public static WOODEN_TRAPDOORS: org.bukkit.Tag; - public static DOORS: org.bukkit.Tag; - public static SAPLINGS: org.bukkit.Tag; - public static LOGS: org.bukkit.Tag; - public static DARK_OAK_LOGS: org.bukkit.Tag; - public static OAK_LOGS: org.bukkit.Tag; - public static BIRCH_LOGS: org.bukkit.Tag; - public static ACACIA_LOGS: org.bukkit.Tag; - public static JUNGLE_LOGS: org.bukkit.Tag; - public static SPRUCE_LOGS: org.bukkit.Tag; - public static BANNERS: org.bukkit.Tag; - public static SAND: org.bukkit.Tag; - public static STAIRS: org.bukkit.Tag; - public static SLABS: org.bukkit.Tag; - public static WALLS: org.bukkit.Tag; - public static ANVIL: org.bukkit.Tag; - public static RAILS: org.bukkit.Tag; - public static LEAVES: org.bukkit.Tag; - public static TRAPDOORS: org.bukkit.Tag; - public static FLOWER_POTS: org.bukkit.Tag; - public static SMALL_FLOWERS: org.bukkit.Tag; - public static BEDS: org.bukkit.Tag; - public static FENCES: org.bukkit.Tag; - public static ENDERMAN_HOLDABLE: org.bukkit.Tag; - public static ICE: org.bukkit.Tag; - public static VALID_SPAWN: org.bukkit.Tag; - public static IMPERMEABLE: org.bukkit.Tag; - public static UNDERWATER_BONEMEALS: org.bukkit.Tag; - public static CORAL_BLOCKS: org.bukkit.Tag; - public static WALL_CORALS: org.bukkit.Tag; - public static CORAL_PLANTS: org.bukkit.Tag; - public static CORALS: org.bukkit.Tag; - public static BAMBOO_PLANTABLE_ON: org.bukkit.Tag; - public static DIRT_LIKE: org.bukkit.Tag; - public static STANDING_SIGNS: org.bukkit.Tag; - public static WALL_SIGNS: org.bukkit.Tag; - public static SIGNS: org.bukkit.Tag; - public static REGISTRY_ITEMS: string; - public static ITEMS_BANNERS: org.bukkit.Tag; - public static ITEMS_BOATS: org.bukkit.Tag; - public static ITEMS_FISHES: org.bukkit.Tag; - public static ITEMS_MUSIC_DISCS: org.bukkit.Tag; - public static ITEMS_COALS: org.bukkit.Tag; - public static ITEMS_ARROWS: org.bukkit.Tag; + // @ts-ignore + interface Tag extends org.bukkit.Keyed { + REGISTRY_BLOCKS: string; + WOOL: org.bukkit.Tag; + PLANKS: org.bukkit.Tag; + STONE_BRICKS: org.bukkit.Tag; + WOODEN_BUTTONS: org.bukkit.Tag; + BUTTONS: org.bukkit.Tag; + CARPETS: org.bukkit.Tag; + WOODEN_DOORS: org.bukkit.Tag; + WOODEN_STAIRS: org.bukkit.Tag; + WOODEN_SLABS: org.bukkit.Tag; + WOODEN_FENCES: org.bukkit.Tag; + WOODEN_PRESSURE_PLATES: org.bukkit.Tag; + WOODEN_TRAPDOORS: org.bukkit.Tag; + DOORS: org.bukkit.Tag; + SAPLINGS: org.bukkit.Tag; + LOGS: org.bukkit.Tag; + DARK_OAK_LOGS: org.bukkit.Tag; + OAK_LOGS: org.bukkit.Tag; + BIRCH_LOGS: org.bukkit.Tag; + ACACIA_LOGS: org.bukkit.Tag; + JUNGLE_LOGS: org.bukkit.Tag; + SPRUCE_LOGS: org.bukkit.Tag; + BANNERS: org.bukkit.Tag; + SAND: org.bukkit.Tag; + STAIRS: org.bukkit.Tag; + SLABS: org.bukkit.Tag; + WALLS: org.bukkit.Tag; + ANVIL: org.bukkit.Tag; + RAILS: org.bukkit.Tag; + LEAVES: org.bukkit.Tag; + TRAPDOORS: org.bukkit.Tag; + FLOWER_POTS: org.bukkit.Tag; + SMALL_FLOWERS: org.bukkit.Tag; + BEDS: org.bukkit.Tag; + FENCES: org.bukkit.Tag; + ENDERMAN_HOLDABLE: org.bukkit.Tag; + ICE: org.bukkit.Tag; + VALID_SPAWN: org.bukkit.Tag; + IMPERMEABLE: org.bukkit.Tag; + UNDERWATER_BONEMEALS: org.bukkit.Tag; + CORAL_BLOCKS: org.bukkit.Tag; + WALL_CORALS: org.bukkit.Tag; + CORAL_PLANTS: org.bukkit.Tag; + CORALS: org.bukkit.Tag; + BAMBOO_PLANTABLE_ON: org.bukkit.Tag; + DIRT_LIKE: org.bukkit.Tag; + STANDING_SIGNS: org.bukkit.Tag; + WALL_SIGNS: org.bukkit.Tag; + SIGNS: org.bukkit.Tag; + REGISTRY_ITEMS: string; + ITEMS_BANNERS: org.bukkit.Tag; + ITEMS_BOATS: org.bukkit.Tag; + ITEMS_FISHES: org.bukkit.Tag; + ITEMS_MUSIC_DISCS: org.bukkit.Tag; + ITEMS_COALS: org.bukkit.Tag; + ITEMS_ARROWS: org.bukkit.Tag; /** * Returns whether or not this tag has an entry for the specified item. */ - public isTagged(item: org.bukkit.Keyed): boolean; + isTagged(item: org.bukkit.Keyed): boolean; /** * Gets an immutable set of all tagged items. */ - public getValues(): any[] /*java.util.Set*/; + getValues(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts b/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts index f9a8256f..d66d5fd4 100644 --- a/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts +++ b/packages/bukkit/src/typings/org.bukkit.TreeSpecies.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class TreeSpecies { + // @ts-ignore + class TreeSpecies { public static GENERIC: org.bukkit.TreeSpecies; public static REDWOOD: org.bukkit.TreeSpecies; public static BIRCH: org.bukkit.TreeSpecies; diff --git a/packages/bukkit/src/typings/org.bukkit.TreeType.ts b/packages/bukkit/src/typings/org.bukkit.TreeType.ts index 11bf432f..a7d493e1 100644 --- a/packages/bukkit/src/typings/org.bukkit.TreeType.ts +++ b/packages/bukkit/src/typings/org.bukkit.TreeType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class TreeType { + // @ts-ignore + class TreeType { public static TREE: org.bukkit.TreeType; public static BIG_TREE: org.bukkit.TreeType; public static REDWOOD: org.bukkit.TreeType; diff --git a/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts b/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts index 1192daee..41b26b47 100644 --- a/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts +++ b/packages/bukkit/src/typings/org.bukkit.UndefinedNullability.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { - class UndefinedNullability { + // @ts-ignore + interface UndefinedNullability { /** * Human readable description of the circumstances, in which the type is * nullable. */ - public value(): string; + value(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts b/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts index 8d5286e2..7fd1cbcd 100644 --- a/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts +++ b/packages/bukkit/src/typings/org.bukkit.UnsafeValues.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { - class UnsafeValues { - public toLegacy(material: org.bukkit.Material): org.bukkit.Material; - public fromLegacy(material: org.bukkit.Material): org.bukkit.Material; - public fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material; - public fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material; - public fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData; - public getMaterial(material: string, version: number): org.bukkit.Material; - public getDataVersion(): number; - public modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack; - public checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void; - public processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[]; + // @ts-ignore + interface UnsafeValues { + toLegacy(material: org.bukkit.Material): org.bukkit.Material; + fromLegacy(material: org.bukkit.Material): org.bukkit.Material; + fromLegacy(material: org.bukkit.material.MaterialData): org.bukkit.Material; + fromLegacy(material: org.bukkit.material.MaterialData, itemPriority: boolean): org.bukkit.Material; + fromLegacy(material: org.bukkit.Material, data: number): org.bukkit.block.data.BlockData; + getMaterial(material: string, version: number): org.bukkit.Material; + getDataVersion(): number; + modifyItemStack(stack: org.bukkit.inventory.ItemStack, arguments: string): org.bukkit.inventory.ItemStack; + checkSupported(pdf: org.bukkit.plugin.PluginDescriptionFile): void; + processClass(pdf: org.bukkit.plugin.PluginDescriptionFile, path: string, clazz: number): number[]; /** * Load an advancement represented by the specified string into the server. * The advancement format is governed by Minecraft and has no specified @@ -24,7 +25,7 @@ declare namespace org { *
* Callers should be prepared for {@link Exception} to be thrown. */ - public loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement; + loadAdvancement(key: org.bukkit.NamespacedKey, advancement: string): org.bukkit.advancement.Advancement; /** * Delete an advancement which was loaded and saved by * {@link #loadAdvancement(org.bukkit.NamespacedKey, java.lang.String)}. @@ -33,7 +34,7 @@ declare namespace org { * should be accompanied by a call to {@link Server#reloadData()} in order * to fully remove it from the running instance. */ - public removeAdvancement(key: org.bukkit.NamespacedKey): boolean; + removeAdvancement(key: org.bukkit.NamespacedKey): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Utility.ts b/packages/bukkit/src/typings/org.bukkit.Utility.ts index 099a00f4..fe85dd93 100644 --- a/packages/bukkit/src/typings/org.bukkit.Utility.ts +++ b/packages/bukkit/src/typings/org.bukkit.Utility.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class Utility { + // @ts-ignore + interface Utility { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts b/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts index db281745..7420791e 100644 --- a/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts +++ b/packages/bukkit/src/typings/org.bukkit.Warning.WarningState.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace Warning { - class WarningState { + // @ts-ignore + class WarningState { public static ON: org.bukkit.Warning.WarningState; public static OFF: org.bukkit.Warning.WarningState; public static DEFAULT: org.bukkit.Warning.WarningState; diff --git a/packages/bukkit/src/typings/org.bukkit.Warning.ts b/packages/bukkit/src/typings/org.bukkit.Warning.ts index e00ec5cd..631537bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.Warning.ts +++ b/packages/bukkit/src/typings/org.bukkit.Warning.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { - class Warning { + // @ts-ignore + interface Warning { /** * This sets if the deprecation warnings when registering events gets * printed when the setting is in the default state. */ - public value(): boolean; + value(): boolean; /** * This can provide detailed information on why the event is deprecated. */ - public reason(): string; + reason(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.WeatherType.ts b/packages/bukkit/src/typings/org.bukkit.WeatherType.ts index 069bcfe3..30fb9f31 100644 --- a/packages/bukkit/src/typings/org.bukkit.WeatherType.ts +++ b/packages/bukkit/src/typings/org.bukkit.WeatherType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class WeatherType { + // @ts-ignore + class WeatherType { public static DOWNFALL: org.bukkit.WeatherType; public static CLEAR: org.bukkit.WeatherType; public static values(): org.bukkit.WeatherType[]; diff --git a/packages/bukkit/src/typings/org.bukkit.World.Environment.ts b/packages/bukkit/src/typings/org.bukkit.World.Environment.ts index 032fba0c..34c84b1f 100644 --- a/packages/bukkit/src/typings/org.bukkit.World.Environment.ts +++ b/packages/bukkit/src/typings/org.bukkit.World.Environment.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace World { - class Environment { + // @ts-ignore + class Environment { public static NORMAL: org.bukkit.World.Environment; public static NETHER: org.bukkit.World.Environment; public static THE_END: org.bukkit.World.Environment; diff --git a/packages/bukkit/src/typings/org.bukkit.World.ts b/packages/bukkit/src/typings/org.bukkit.World.ts index 6eca5500..6c2f82a6 100644 --- a/packages/bukkit/src/typings/org.bukkit.World.ts +++ b/packages/bukkit/src/typings/org.bukkit.World.ts @@ -1,55 +1,56 @@ declare namespace org { namespace bukkit { - class World { + // @ts-ignore + interface World extends org.bukkit.plugin.messaging.PluginMessageRecipient, org.bukkit.metadata.Metadatable { /** * Gets the {@link Block} at the given coordinates */ - public getBlockAt(x: number, y: number, z: number): org.bukkit.block.Block; + getBlockAt(x: number, y: number, z: number): org.bukkit.block.Block; /** * Gets the {@link Block} at the given {@link Location} */ - public getBlockAt(location: org.bukkit.Location): org.bukkit.block.Block; + getBlockAt(location: org.bukkit.Location): org.bukkit.block.Block; /** * Gets the y coordinate of the lowest block at this position such that the * block and all blocks above it are transparent for lighting purposes. */ - public getHighestBlockYAt(x: number, z: number): number; + getHighestBlockYAt(x: number, z: number): number; /** * Gets the y coordinate of the lowest block at the given {@link Location} * such that the block and all blocks above it are transparent for lighting * purposes. */ - public getHighestBlockYAt(location: org.bukkit.Location): number; + getHighestBlockYAt(location: org.bukkit.Location): number; /** * Gets the lowest block at the given coordinates such that the block and * all blocks above it are transparent for lighting purposes. */ - public getHighestBlockAt(x: number, z: number): org.bukkit.block.Block; + getHighestBlockAt(x: number, z: number): org.bukkit.block.Block; /** * Gets the lowest block at the given {@link Location} such that the block * and all blocks above it are transparent for lighting purposes. */ - public getHighestBlockAt(location: org.bukkit.Location): org.bukkit.block.Block; + getHighestBlockAt(location: org.bukkit.Location): org.bukkit.block.Block; /** * Gets the {@link Chunk} at the given coordinates */ - public getChunkAt(x: number, z: number): org.bukkit.Chunk; + getChunkAt(x: number, z: number): org.bukkit.Chunk; /** * Gets the {@link Chunk} at the given {@link Location} */ - public getChunkAt(location: org.bukkit.Location): org.bukkit.Chunk; + getChunkAt(location: org.bukkit.Location): org.bukkit.Chunk; /** * Gets the {@link Chunk} that contains the given {@link Block} */ - public getChunkAt(block: org.bukkit.block.Block): org.bukkit.Chunk; + getChunkAt(block: org.bukkit.block.Block): org.bukkit.Chunk; /** * Checks if the specified {@link Chunk} is loaded */ - public isChunkLoaded(chunk: org.bukkit.Chunk): boolean; + isChunkLoaded(chunk: org.bukkit.Chunk): boolean; /** * Gets an array of all loaded {@link Chunk}s */ - public getLoadedChunks(): org.bukkit.Chunk[]; + getLoadedChunks(): org.bukkit.Chunk[]; /** * Loads the specified {@link Chunk}. *

@@ -57,20 +58,20 @@ declare namespace org { * unload methods is manually called. Callers are advised to instead use * getChunkAt which will only temporarily load the requested chunk. */ - public loadChunk(chunk: org.bukkit.Chunk): void; + loadChunk(chunk: org.bukkit.Chunk): void; /** * Checks if the {@link Chunk} at the specified coordinates is loaded */ - public isChunkLoaded(x: number, z: number): boolean; + isChunkLoaded(x: number, z: number): boolean; /** * Checks if the {@link Chunk} at the specified coordinates is generated */ - public isChunkGenerated(x: number, z: number): boolean; + isChunkGenerated(x: number, z: number): boolean; /** * Checks if the {@link Chunk} at the specified coordinates is loaded and * in use by one or more players */ - public isChunkInUse(x: number, z: number): boolean; + isChunkInUse(x: number, z: number): boolean; /** * Loads the {@link Chunk} at the specified coordinates. *

@@ -83,7 +84,7 @@ declare namespace org { * This method is analogous to {@link #loadChunk(int, int, boolean)} where * generate is true. */ - public loadChunk(x: number, z: number): void; + loadChunk(x: number, z: number): void; /** * Loads the {@link Chunk} at the specified coordinates. *

@@ -91,59 +92,59 @@ declare namespace org { * unload methods is manually called. Callers are advised to instead use * getChunkAt which will only temporarily load the requested chunk. */ - public loadChunk(x: number, z: number, generate: boolean): boolean; + loadChunk(x: number, z: number, generate: boolean): boolean; /** * Safely unloads and saves the {@link Chunk} at the specified coordinates *

* This method is analogous to {@link #unloadChunk(int, int, boolean)} * where save is true. */ - public unloadChunk(chunk: org.bukkit.Chunk): boolean; + unloadChunk(chunk: org.bukkit.Chunk): boolean; /** * Safely unloads and saves the {@link Chunk} at the specified coordinates *

* This method is analogous to {@link #unloadChunk(int, int, boolean)} * where save is true. */ - public unloadChunk(x: number, z: number): boolean; + unloadChunk(x: number, z: number): boolean; /** * Safely unloads and optionally saves the {@link Chunk} at the specified * coordinates. */ - public unloadChunk(x: number, z: number, save: boolean): boolean; + unloadChunk(x: number, z: number, save: boolean): boolean; /** * Safely queues the {@link Chunk} at the specified coordinates for * unloading. */ - public unloadChunkRequest(x: number, z: number): boolean; + unloadChunkRequest(x: number, z: number): boolean; /** * Regenerates the {@link Chunk} at the specified coordinates */ - public regenerateChunk(x: number, z: number): boolean; + regenerateChunk(x: number, z: number): boolean; /** * Resends the {@link Chunk} to all clients */ - public refreshChunk(x: number, z: number): boolean; + refreshChunk(x: number, z: number): boolean; /** * Gets whether the chunk at the specified chunk coordinates is force * loaded. *

* A force loaded chunk will not be unloaded due to lack of player activity. */ - public isChunkForceLoaded(x: number, z: number): boolean; + isChunkForceLoaded(x: number, z: number): boolean; /** * Sets whether the chunk at the specified chunk coordinates is force * loaded. *

* A force loaded chunk will not be unloaded due to lack of player activity. */ - public setChunkForceLoaded(x: number, z: number, forced: boolean): void; + setChunkForceLoaded(x: number, z: number, forced: boolean): void; /** * Returns all force loaded chunks in this world. *

* A force loaded chunk will not be unloaded due to lack of player activity. */ - public getForceLoadedChunks(): any[] /*java.util.Collection*/; + getForceLoadedChunks(): any[] /*java.util.Collection*/; /** * Adds a plugin ticket for the specified chunk, loading the chunk if it is * not already loaded. @@ -153,7 +154,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public addPluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean; + addPluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean; /** * Removes the specified plugin's ticket for the specified chunk *

@@ -162,7 +163,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public removePluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean; + removePluginChunkTicket(x: number, z: number, plugin: org.bukkit.plugin.Plugin): boolean; /** * Removes all plugin tickets for the specified plugin *

@@ -171,7 +172,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public removePluginChunkTickets(plugin: org.bukkit.plugin.Plugin): void; + removePluginChunkTickets(plugin: org.bukkit.plugin.Plugin): void; /** * Retrieves a collection specifying which plugins have tickets for the * specified chunk. This collection is not updated when plugin tickets are @@ -182,7 +183,7 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public getPluginChunkTickets(x: number, z: number): any[] /*java.util.Collection*/; + getPluginChunkTickets(x: number, z: number): any[] /*java.util.Collection*/; /** * Returns a map of which plugins have tickets for what chunks. The returned * map is not updated when plugin tickets are added or removed to chunks. If @@ -193,70 +194,70 @@ declare namespace org { * but each chunk can have multiple plugin tickets. *

*/ - public getPluginChunkTickets(): Map /*java.util.Map*/; + getPluginChunkTickets(): Map /*java.util.Map*/; /** * Drops an item at the specified {@link Location} */ - public dropItem(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item; + dropItem(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item; /** * Drops an item at the specified {@link Location} with a random offset */ - public dropItemNaturally(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item; + dropItemNaturally(location: org.bukkit.Location, item: org.bukkit.inventory.ItemStack): org.bukkit.entity.Item; /** * Creates an {@link Arrow} entity at the given {@link Location} */ - public spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number): org.bukkit.entity.Arrow; + spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number): org.bukkit.entity.Arrow; /** * Creates an arrow entity of the given class at the given {@link Location} */ - public spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number, clazz: any): org.bukkit.entity.AbstractArrow; + spawnArrow(location: org.bukkit.Location, direction: org.bukkit.util.Vector, speed: number, spread: number, clazz: any): org.bukkit.entity.AbstractArrow; /** * Creates a tree at the given {@link Location} */ - public generateTree(location: org.bukkit.Location, type: org.bukkit.TreeType): boolean; + generateTree(location: org.bukkit.Location, type: org.bukkit.TreeType): boolean; /** * Creates a tree at the given {@link Location} */ - public generateTree(loc: org.bukkit.Location, type: org.bukkit.TreeType, delegate: org.bukkit.BlockChangeDelegate): boolean; + generateTree(loc: org.bukkit.Location, type: org.bukkit.TreeType, delegate: org.bukkit.BlockChangeDelegate): boolean; /** * Creates a entity at the given {@link Location} */ - public spawnEntity(loc: org.bukkit.Location, type: org.bukkit.entity.EntityType): org.bukkit.entity.Entity; + spawnEntity(loc: org.bukkit.Location, type: org.bukkit.entity.EntityType): org.bukkit.entity.Entity; /** * Strikes lightning at the given {@link Location} */ - public strikeLightning(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; + strikeLightning(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; /** * Strikes lightning at the given {@link Location} without doing damage */ - public strikeLightningEffect(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; + strikeLightningEffect(loc: org.bukkit.Location): org.bukkit.entity.LightningStrike; /** * Get a list of all entities in this World */ - public getEntities(): any[] /*java.util.List*/; + getEntities(): any[] /*java.util.List*/; /** * Get a list of all living entities in this World */ - public getLivingEntities(): any[] /*java.util.List*/; + getLivingEntities(): any[] /*java.util.List*/; /** * Get a collection of all entities in this World matching the given * class/interface */ - public getEntitiesByClass(classes: any): any[] /*java.util.Collection*/; + getEntitiesByClass(classes: any): any[] /*java.util.Collection*/; /** * Get a collection of all entities in this World matching the given * class/interface */ - public getEntitiesByClass(cls: any): any[] /*java.util.Collection*/; + getEntitiesByClass(cls: any): any[] /*java.util.Collection*/; /** * Get a collection of all entities in this World matching any of the * given classes/interfaces */ - public getEntitiesByClasses(classes: any): any[] /*java.util.Collection*/; + getEntitiesByClasses(classes: any): any[] /*java.util.Collection*/; /** * Get a list of all players in this World */ - public getPlayers(): any[] /*java.util.List*/; + getPlayers(): any[] /*java.util.List*/; /** * Returns a list of entities within a bounding box centered around a * Location. @@ -265,7 +266,7 @@ declare namespace org { * implementations may impose artificial restrictions on the size of the * search bounding box. */ - public getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number): any[] /*java.util.Collection*/; + getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number): any[] /*java.util.Collection*/; /** * Returns a list of entities within a bounding box centered around a * Location. @@ -274,7 +275,7 @@ declare namespace org { * implementations may impose artificial restrictions on the size of the * search bounding box. */ - public getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number, filter: any): any[] /*java.util.Collection*/; + getNearbyEntities(location: org.bukkit.Location, x: number, y: number, z: number, filter: any): any[] /*java.util.Collection*/; /** * Returns a list of entities within the given bounding box. *

@@ -282,7 +283,7 @@ declare namespace org { * implementations may impose artificial restrictions on the size of the * search bounding box. */ - public getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox): any[] /*java.util.Collection*/; + getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox): any[] /*java.util.Collection*/; /** * Returns a list of entities within the given bounding box. *

@@ -290,7 +291,7 @@ declare namespace org { * implementations may impose artificial restrictions on the size of the * search bounding box. */ - public getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox, filter: any): any[] /*java.util.Collection*/; + getNearbyEntities(boundingBox: org.bukkit.util.BoundingBox, filter: any): any[] /*java.util.Collection*/; /** * Performs a ray trace that checks for entity collisions. *

@@ -298,7 +299,7 @@ declare namespace org { * implementations may impose artificial restrictions on the maximum * distance. */ - public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult; + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for entity collisions. *

@@ -306,7 +307,7 @@ declare namespace org { * implementations may impose artificial restrictions on the maximum * distance. */ - public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number): org.bukkit.util.RayTraceResult; + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for entity collisions. *

@@ -314,7 +315,7 @@ declare namespace org { * implementations may impose artificial restrictions on the maximum * distance. */ - public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, filter: any): org.bukkit.util.RayTraceResult; + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, filter: any): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for entity collisions. *

@@ -322,7 +323,7 @@ declare namespace org { * implementations may impose artificial restrictions on the maximum * distance. */ - public rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number, filter: any): org.bukkit.util.RayTraceResult; + rayTraceEntities(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, raySize: number, filter: any): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for block collisions using the blocks' * precise collision shapes. @@ -333,7 +334,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult; + rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for block collisions using the blocks' * precise collision shapes. @@ -343,7 +344,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; + rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for block collisions using the blocks' * precise collision shapes. @@ -358,7 +359,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean): org.bukkit.util.RayTraceResult; + rayTraceBlocks(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that checks for both block and entity collisions. *

@@ -376,35 +377,35 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean, raySize: number, filter: any): org.bukkit.util.RayTraceResult; + rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode, ignorePassableBlocks: boolean, raySize: number, filter: any): org.bukkit.util.RayTraceResult; /** * Gets the unique name of this world */ - public getName(): string; + getName(): string; /** * Gets the Unique ID of this world */ - public getUID(): any; + getUID(): any; /** * Gets the default spawn {@link Location} of this world */ - public getSpawnLocation(): org.bukkit.Location; + getSpawnLocation(): org.bukkit.Location; /** * Sets the spawn location of the world. *
* The location provided must be equal to this world. */ - public setSpawnLocation(location: org.bukkit.Location): boolean; + setSpawnLocation(location: org.bukkit.Location): boolean; /** * Sets the spawn location of the world */ - public setSpawnLocation(x: number, y: number, z: number): boolean; + setSpawnLocation(x: number, y: number, z: number): boolean; /** * Gets the relative in-game time of this world. *

* The relative time is analogous to hours * 1000 */ - public getTime(): number; + getTime(): number; /** * Sets the relative in-game time on the server. *

@@ -414,106 +415,106 @@ declare namespace org { * will actually move the clock forward a day. If you require to rewind * time, please see {@link #setFullTime(long)} */ - public setTime(time: number): void; + setTime(time: number): void; /** * Gets the full in-game time on this world */ - public getFullTime(): number; + getFullTime(): number; /** * Sets the in-game time on the server *

* Note that this sets the full time of the world, which may cause adverse * effects such as breaking redstone clocks and any scheduled events */ - public setFullTime(time: number): void; + setFullTime(time: number): void; /** * Returns whether the world has an ongoing storm. */ - public hasStorm(): boolean; + hasStorm(): boolean; /** * Set whether there is a storm. A duration will be set for the new * current conditions. */ - public setStorm(hasStorm: boolean): void; + setStorm(hasStorm: boolean): void; /** * Get the remaining time in ticks of the current conditions. */ - public getWeatherDuration(): number; + getWeatherDuration(): number; /** * Set the remaining time in ticks of the current conditions. */ - public setWeatherDuration(duration: number): void; + setWeatherDuration(duration: number): void; /** * Returns whether there is thunder. */ - public isThundering(): boolean; + isThundering(): boolean; /** * Set whether it is thundering. */ - public setThundering(thundering: boolean): void; + setThundering(thundering: boolean): void; /** * Get the thundering duration. */ - public getThunderDuration(): number; + getThunderDuration(): number; /** * Set the thundering duration. */ - public setThunderDuration(duration: number): void; + setThunderDuration(duration: number): void; /** * Creates explosion at given coordinates with given power */ - public createExplosion(x: number, y: number, z: number, power: number): boolean; + createExplosion(x: number, y: number, z: number, power: number): boolean; /** * Creates explosion at given coordinates with given power and optionally * setting blocks on fire. */ - public createExplosion(x: number, y: number, z: number, power: number, setFire: boolean): boolean; + createExplosion(x: number, y: number, z: number, power: number, setFire: boolean): boolean; /** * Creates explosion at given coordinates with given power and optionally * setting blocks on fire or breaking blocks. */ - public createExplosion(x: number, y: number, z: number, power: number, setFire: boolean, breakBlocks: boolean): boolean; + createExplosion(x: number, y: number, z: number, power: number, setFire: boolean, breakBlocks: boolean): boolean; /** * Creates explosion at given coordinates with given power */ - public createExplosion(loc: org.bukkit.Location, power: number): boolean; + createExplosion(loc: org.bukkit.Location, power: number): boolean; /** * Creates explosion at given coordinates with given power and optionally * setting blocks on fire. */ - public createExplosion(loc: org.bukkit.Location, power: number, setFire: boolean): boolean; + createExplosion(loc: org.bukkit.Location, power: number, setFire: boolean): boolean; /** * Gets the {@link Environment} type of this world */ - public getEnvironment(): org.bukkit.World.Environment; + getEnvironment(): org.bukkit.World.Environment; /** * Gets the Seed for this world. */ - public getSeed(): number; + getSeed(): number; /** * Gets the current PVP setting for this world. */ - public getPVP(): boolean; + getPVP(): boolean; /** * Sets the PVP setting for this world. */ - public setPVP(pvp: boolean): void; + setPVP(pvp: boolean): void; /** * Gets the chunk generator for this world */ - public getGenerator(): org.bukkit.generator.ChunkGenerator; + getGenerator(): org.bukkit.generator.ChunkGenerator; /** * Saves world to disk */ - public save(): void; + save(): void; /** * Gets a list of all applied {@link BlockPopulator}s for this World */ - public getPopulators(): any[] /*java.util.List*/; + getPopulators(): any[] /*java.util.List*/; /** * Spawn an entity of a specific class at the given {@link Location} */ - public spawn(location: org.bukkit.Location, clazz: any): org.bukkit.entity.Entity; + spawn(location: org.bukkit.Location, clazz: any): org.bukkit.entity.Entity; /** * Spawn an entity of a specific class at the given {@link Location}, with * the supplied function run before the entity is added to the world. @@ -522,7 +523,7 @@ declare namespace org { * the world. Any operation involving such as teleporting the entity is undefined * until after this function returns. */ - public spawn(location: org.bukkit.Location, clazz: any, func: org.bukkit.util.Consumer): org.bukkit.entity.Entity; + spawn(location: org.bukkit.Location, clazz: any, func: org.bukkit.util.Consumer): org.bukkit.entity.Entity; /** * Spawn a {@link FallingBlock} entity at the given {@link Location} of * the specified {@link Material}. The material dictates what is falling. @@ -531,7 +532,7 @@ declare namespace org { * The Material must be a block type, check with {@link Material#isBlock() * material.isBlock()}. The Material may not be air. */ - public spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.material.MaterialData): org.bukkit.entity.FallingBlock; + spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.material.MaterialData): org.bukkit.entity.FallingBlock; /** * Spawn a {@link FallingBlock} entity at the given {@link Location} of * the specified {@link Material}. The material dictates what is falling. @@ -540,7 +541,7 @@ declare namespace org { * The Material must be a block type, check with {@link Material#isBlock() * material.isBlock()}. The Material may not be air. */ - public spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.block.data.BlockData): org.bukkit.entity.FallingBlock; + spawnFallingBlock(location: org.bukkit.Location, data: org.bukkit.block.data.BlockData): org.bukkit.entity.FallingBlock; /** * Spawn a {@link FallingBlock} entity at the given {@link Location} of the * specified {@link Material}. The material dictates what is falling. @@ -549,51 +550,51 @@ declare namespace org { * The Material must be a block type, check with {@link Material#isBlock() * material.isBlock()}. The Material may not be air. */ - public spawnFallingBlock(location: org.bukkit.Location, material: org.bukkit.Material, data: number): org.bukkit.entity.FallingBlock; + spawnFallingBlock(location: org.bukkit.Location, material: org.bukkit.Material, data: number): org.bukkit.entity.FallingBlock; /** * Plays an effect to all players within a default radius around a given * location. */ - public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void; + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void; /** * Plays an effect to all players within a given radius around a location. */ - public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number, radius: number): void; + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: number, radius: number): void; /** * Plays an effect to all players within a default radius around a given * location. */ - public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void; + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void; /** * Plays an effect to all players within a given radius around a location. */ - public playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any, radius: number): void; + playEffect(location: org.bukkit.Location, effect: org.bukkit.Effect, data: any, radius: number): void; /** * Get empty chunk snapshot (equivalent to all air blocks), optionally * including valid biome data. Used for representing an ungenerated chunk, * or for fetching only biome data without loading a chunk. */ - public getEmptyChunkSnapshot(x: number, z: number, includeBiome: boolean, includeBiomeTemp: boolean): org.bukkit.ChunkSnapshot; + getEmptyChunkSnapshot(x: number, z: number, includeBiome: boolean, includeBiomeTemp: boolean): org.bukkit.ChunkSnapshot; /** * Sets the spawn flags for this. */ - public setSpawnFlags(allowMonsters: boolean, allowAnimals: boolean): void; + setSpawnFlags(allowMonsters: boolean, allowAnimals: boolean): void; /** * Gets whether animals can spawn in this world. */ - public getAllowAnimals(): boolean; + getAllowAnimals(): boolean; /** * Gets whether monsters can spawn in this world. */ - public getAllowMonsters(): boolean; + getAllowMonsters(): boolean; /** * Gets the biome for the given block coordinates. */ - public getBiome(x: number, z: number): org.bukkit.block.Biome; + getBiome(x: number, z: number): org.bukkit.block.Biome; /** * Sets the biome for the given block coordinates */ - public setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; + setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; /** * Gets the temperature for the given block coordinates. *

@@ -603,64 +604,64 @@ declare namespace org { * This method will return the raw temperature without adjusting for block * height effects. */ - public getTemperature(x: number, z: number): number; + getTemperature(x: number, z: number): number; /** * Gets the humidity for the given block coordinates. *

* It is safe to run this method when the block does not exist, it will * not create the block. */ - public getHumidity(x: number, z: number): number; + getHumidity(x: number, z: number): number; /** * Gets the maximum height of this world. *

* If the max height is 100, there are only blocks from y=0 to y=99. */ - public getMaxHeight(): number; + getMaxHeight(): number; /** * Gets the sea level for this world. *

* This is often half of {@link #getMaxHeight()} */ - public getSeaLevel(): number; + getSeaLevel(): number; /** * Gets whether the world's spawn area should be kept loaded into memory * or not. */ - public getKeepSpawnInMemory(): boolean; + getKeepSpawnInMemory(): boolean; /** * Sets whether the world's spawn area should be kept loaded into memory * or not. */ - public setKeepSpawnInMemory(keepLoaded: boolean): void; + setKeepSpawnInMemory(keepLoaded: boolean): void; /** * Gets whether or not the world will automatically save */ - public isAutoSave(): boolean; + isAutoSave(): boolean; /** * Sets whether or not the world will automatically save */ - public setAutoSave(value: boolean): void; + setAutoSave(value: boolean): void; /** * Sets the Difficulty of the world. */ - public setDifficulty(difficulty: org.bukkit.Difficulty): void; + setDifficulty(difficulty: org.bukkit.Difficulty): void; /** * Gets the Difficulty of the world. */ - public getDifficulty(): org.bukkit.Difficulty; + getDifficulty(): org.bukkit.Difficulty; /** * Gets the folder of this world on disk. */ - public getWorldFolder(): any; + getWorldFolder(): any; /** * Gets the type of this world. */ - public getWorldType(): org.bukkit.WorldType; + getWorldType(): org.bukkit.WorldType; /** * Gets whether or not structures are being generated. */ - public canGenerateStructures(): boolean; + canGenerateStructures(): boolean; /** * Gets the world's ticks per animal spawns value *

@@ -683,7 +684,7 @@ declare namespace org { *

* Minecraft default: 400. */ - public getTicksPerAnimalSpawns(): number; + getTicksPerAnimalSpawns(): number; /** * Sets the world's ticks per animal spawns value *

@@ -706,7 +707,7 @@ declare namespace org { *

* Minecraft default: 400. */ - public setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void; + setTicksPerAnimalSpawns(ticksPerAnimalSpawns: number): void; /** * Gets the world's ticks per monster spawns value *

@@ -729,7 +730,7 @@ declare namespace org { *

* Minecraft default: 1. */ - public getTicksPerMonsterSpawns(): number; + getTicksPerMonsterSpawns(): number; /** * Sets the world's ticks per monster spawns value *

@@ -752,12 +753,12 @@ declare namespace org { *

* Minecraft default: 1. */ - public setTicksPerMonsterSpawns(ticksPerMonsterSpawns: number): void; + setTicksPerMonsterSpawns(ticksPerMonsterSpawns: number): void; /** * Gets limit for number of monsters that can spawn in a chunk in this * world */ - public getMonsterSpawnLimit(): number; + getMonsterSpawnLimit(): number; /** * Sets the limit for number of monsters that can spawn in a chunk in this * world @@ -765,12 +766,12 @@ declare namespace org { * Note: If set to a negative number the world will use the * server-wide spawn limit instead. */ - public setMonsterSpawnLimit(limit: number): void; + setMonsterSpawnLimit(limit: number): void; /** * Gets the limit for number of animals that can spawn in a chunk in this * world */ - public getAnimalSpawnLimit(): number; + getAnimalSpawnLimit(): number; /** * Sets the limit for number of animals that can spawn in a chunk in this * world @@ -778,12 +779,12 @@ declare namespace org { * Note: If set to a negative number the world will use the * server-wide spawn limit instead. */ - public setAnimalSpawnLimit(limit: number): void; + setAnimalSpawnLimit(limit: number): void; /** * Gets the limit for number of water animals that can spawn in a chunk in * this world */ - public getWaterAnimalSpawnLimit(): number; + getWaterAnimalSpawnLimit(): number; /** * Sets the limit for number of water animals that can spawn in a chunk in * this world @@ -791,12 +792,12 @@ declare namespace org { * Note: If set to a negative number the world will use the * server-wide spawn limit instead. */ - public setWaterAnimalSpawnLimit(limit: number): void; + setWaterAnimalSpawnLimit(limit: number): void; /** * Gets the limit for number of ambient mobs that can spawn in a chunk in * this world */ - public getAmbientSpawnLimit(): number; + getAmbientSpawnLimit(): number; /** * Sets the limit for number of ambient mobs that can spawn in a chunk in * this world @@ -804,13 +805,13 @@ declare namespace org { * Note: If set to a negative number the world will use the * server-wide spawn limit instead. */ - public setAmbientSpawnLimit(limit: number): void; + setAmbientSpawnLimit(limit: number): void; /** * Play a Sound at the provided Location in the World *

* This function will fail silently if Location or Sound are null. */ - public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void; /** * Play a Sound at the provided Location in the World. *

@@ -818,13 +819,13 @@ declare namespace org { * sound will be heard by the players if their clients do not have the * respective sound for the value passed. */ - public playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void; /** * Play a Sound at the provided Location in the World. *

* This function will fail silently if Location or Sound are null. */ - public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; /** * Play a Sound at the provided Location in the World. *

@@ -832,17 +833,17 @@ declare namespace org { * will be heard by the players if their clients do not have the respective * sound for the value passed. */ - public playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; /** * Get an array containing the names of all the {@link GameRule}s. */ - public getGameRules(): any; + getGameRules(): any; /** * Gets the current state of the specified rule *

* Will return null if rule passed is null */ - public getGameRuleValue(rule: string): string; + getGameRuleValue(rule: string): string; /** * Set the specified gamerule to specified value. *

@@ -851,118 +852,118 @@ declare namespace org { *

* If rule is null, the function will return false. */ - public setGameRuleValue(rule: string, value: string): boolean; + setGameRuleValue(rule: string, value: string): boolean; /** * Checks if string is a valid game rule */ - public isGameRule(rule: string): boolean; + isGameRule(rule: string): boolean; /** * Get the current value for a given {@link GameRule}. */ - public getGameRuleValue(rule: org.bukkit.GameRule): any; + getGameRuleValue(rule: org.bukkit.GameRule): any; /** * Get the default value for a given {@link GameRule}. This value is not * guaranteed to match the current value. */ - public getGameRuleDefault(rule: org.bukkit.GameRule): any; + getGameRuleDefault(rule: org.bukkit.GameRule): any; /** * Set the given {@link GameRule}'s new value. */ - public setGameRule(rule: org.bukkit.GameRule, newValue: any): boolean; + setGameRule(rule: org.bukkit.GameRule, newValue: any): boolean; /** * Gets the world border for this world. */ - public getWorldBorder(): org.bukkit.WorldBorder; + getWorldBorder(): org.bukkit.WorldBorder; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any, force: boolean): void; /** * Find the closest nearby structure of a given {@link StructureType}. * Finding unexplored structures can, and will, block if the world is @@ -980,7 +981,7 @@ declare namespace org { * unexplored structures. This is because it will keep looking further and * further out in order to find the structure. */ - public locateNearestStructure(origin: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.Location; + locateNearestStructure(origin: org.bukkit.Location, structureType: org.bukkit.StructureType, radius: number, findUnexplored: boolean): org.bukkit.Location; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts b/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts index ee108634..fef52694 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldBorder.ts @@ -1,70 +1,71 @@ declare namespace org { namespace bukkit { - class WorldBorder { + // @ts-ignore + interface WorldBorder { /** * Resets the border to default values. */ - public reset(): void; + reset(): void; /** * Gets the current side length of the border. */ - public getSize(): number; + getSize(): number; /** * Sets the border to a square region with the specified side length in blocks. */ - public setSize(newSize: number): void; + setSize(newSize: number): void; /** * Sets the border to a square region with the specified side length in blocks. */ - public setSize(newSize: number, seconds: number): void; + setSize(newSize: number, seconds: number): void; /** * Gets the current border center. */ - public getCenter(): org.bukkit.Location; + getCenter(): org.bukkit.Location; /** * Sets the new border center. */ - public setCenter(x: number, z: number): void; + setCenter(x: number, z: number): void; /** * Sets the new border center. */ - public setCenter(location: org.bukkit.Location): void; + setCenter(location: org.bukkit.Location): void; /** * Gets the current border damage buffer. */ - public getDamageBuffer(): number; + getDamageBuffer(): number; /** * Sets the amount of blocks a player may safely be outside the border before taking damage. */ - public setDamageBuffer(blocks: number): void; + setDamageBuffer(blocks: number): void; /** * Gets the current border damage amount. */ - public getDamageAmount(): number; + getDamageAmount(): number; /** * Sets the amount of damage a player takes when outside the border plus the border buffer. */ - public setDamageAmount(damage: number): void; + setDamageAmount(damage: number): void; /** * Gets the current border warning time in seconds. */ - public getWarningTime(): number; + getWarningTime(): number; /** * Sets the warning time that causes the screen to be tinted red when a contracting border will reach the player within the specified time. */ - public setWarningTime(seconds: number): void; + setWarningTime(seconds: number): void; /** * Gets the current border warning distance. */ - public getWarningDistance(): number; + getWarningDistance(): number; /** * Sets the warning distance that causes the screen to be tinted red when the player is within the specified number of blocks from the border. */ - public setWarningDistance(distance: number): void; + setWarningDistance(distance: number): void; /** * Check if the specified location is inside this border. */ - public isInside(location: org.bukkit.Location): boolean; + isInside(location: org.bukkit.Location): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts b/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts index dcc282b3..f4751402 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldCreator.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class WorldCreator { + // @ts-ignore + class WorldCreator { /** * Creates an empty WorldCreationOptions for the given world name */ diff --git a/packages/bukkit/src/typings/org.bukkit.WorldType.ts b/packages/bukkit/src/typings/org.bukkit.WorldType.ts index 68cc4461..8062f6b3 100644 --- a/packages/bukkit/src/typings/org.bukkit.WorldType.ts +++ b/packages/bukkit/src/typings/org.bukkit.WorldType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { - class WorldType { + // @ts-ignore + class WorldType { public static NORMAL: org.bukkit.WorldType; public static FLAT: org.bukkit.WorldType; public static VERSION_1_1: org.bukkit.WorldType; diff --git a/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts b/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts index e023d735..b588d17b 100644 --- a/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts +++ b/packages/bukkit/src/typings/org.bukkit.advancement.Advancement.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace advancement { - class Advancement { + // @ts-ignore + interface Advancement extends org.bukkit.Keyed { /** * Get all the criteria present in this advancement. */ - public getCriteria(): any[] /*java.util.Collection*/; + getCriteria(): any[] /*java.util.Collection*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts b/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts index f5aa7014..8352cd2e 100644 --- a/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts +++ b/packages/bukkit/src/typings/org.bukkit.advancement.AdvancementProgress.ts @@ -1,35 +1,36 @@ declare namespace org { namespace bukkit { namespace advancement { - class AdvancementProgress { + // @ts-ignore + interface AdvancementProgress { /** * The advancement this progress is concerning. */ - public getAdvancement(): org.bukkit.advancement.Advancement; + getAdvancement(): org.bukkit.advancement.Advancement; /** * Check if all criteria for this advancement have been met. */ - public isDone(): boolean; + isDone(): boolean; /** * Mark the specified criteria as awarded at the current time. */ - public awardCriteria(criteria: string): boolean; + awardCriteria(criteria: string): boolean; /** * Mark the specified criteria as uncompleted. */ - public revokeCriteria(criteria: string): boolean; + revokeCriteria(criteria: string): boolean; /** * Get the date the specified criteria was awarded. */ - public getDateAwarded(criteria: string): any /*java.util.Date*/; + getDateAwarded(criteria: string): any /*java.util.Date*/; /** * Get the criteria which have not been awarded. */ - public getRemainingCriteria(): any[] /*java.util.Collection*/; + getRemainingCriteria(): any[] /*java.util.Collection*/; /** * Gets the criteria which have been awarded. */ - public getAwardedCriteria(): any[] /*java.util.Collection*/; + getAwardedCriteria(): any[] /*java.util.Collection*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts b/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts index fa669d69..d9a2ce16 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.Attributable.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace attribute { - class Attributable { + // @ts-ignore + interface Attributable { /** * Gets the specified attribute instance from the object. This instance will * be backed directly to the object and any changes will be visible at once. */ - public getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance; + getAttribute(attribute: org.bukkit.attribute.Attribute): org.bukkit.attribute.AttributeInstance; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts b/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts index dd92bcd7..8ba27e5e 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.Attribute.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace attribute { - class Attribute { + // @ts-ignore + class Attribute { public static GENERIC_MAX_HEALTH: org.bukkit.attribute.Attribute; public static GENERIC_FOLLOW_RANGE: org.bukkit.attribute.Attribute; public static GENERIC_KNOCKBACK_RESISTANCE: org.bukkit.attribute.Attribute; diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts index 77060f66..e89e1e4e 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeInstance.ts @@ -1,40 +1,41 @@ declare namespace org { namespace bukkit { namespace attribute { - class AttributeInstance { + // @ts-ignore + interface AttributeInstance { /** * The attribute pertaining to this instance. */ - public getAttribute(): org.bukkit.attribute.Attribute; + getAttribute(): org.bukkit.attribute.Attribute; /** * Base value of this instance before modifiers are applied. */ - public getBaseValue(): number; + getBaseValue(): number; /** * Set the base value of this instance. */ - public setBaseValue(value: number): void; + setBaseValue(value: number): void; /** * Get all modifiers present on this instance. */ - public getModifiers(): any[] /*java.util.Collection*/; + getModifiers(): any[] /*java.util.Collection*/; /** * Add a modifier to this instance. */ - public addModifier(modifier: org.bukkit.attribute.AttributeModifier): void; + addModifier(modifier: org.bukkit.attribute.AttributeModifier): void; /** * Remove a modifier from this instance. */ - public removeModifier(modifier: org.bukkit.attribute.AttributeModifier): void; + removeModifier(modifier: org.bukkit.attribute.AttributeModifier): void; /** * Get the value of this instance after all associated modifiers have been * applied. */ - public getValue(): number; + getValue(): number; /** * Gets the default value of the Attribute attached to this instance. */ - public getDefaultValue(): number; + getDefaultValue(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts index 61999ee6..98684bed 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.Operation.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace attribute { namespace AttributeModifier { - class Operation { + // @ts-ignore + class Operation { public static ADD_NUMBER: org.bukkit.attribute.AttributeModifier.Operation; public static ADD_SCALAR: org.bukkit.attribute.AttributeModifier.Operation; public static MULTIPLY_SCALAR_1: org.bukkit.attribute.AttributeModifier.Operation; diff --git a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts index 2b84cb35..757eaf55 100644 --- a/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts +++ b/packages/bukkit/src/typings/org.bukkit.attribute.AttributeModifier.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace attribute { - class AttributeModifier { + // @ts-ignore + class AttributeModifier implements org.bukkit.configuration.serialization.ConfigurationSerializable { constructor(name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation) constructor(uuid: any, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation) constructor(uuid: any, name: string, amount: number, operation: org.bukkit.attribute.AttributeModifier.Operation, slot: org.bukkit.inventory.EquipmentSlot) diff --git a/packages/bukkit/src/typings/org.bukkit.block.Banner.ts b/packages/bukkit/src/typings/org.bukkit.block.Banner.ts index 93366948..0118ed86 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Banner.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Banner.ts @@ -1,47 +1,48 @@ declare namespace org { namespace bukkit { namespace block { - class Banner { + // @ts-ignore + interface Banner extends org.bukkit.block.TileState { /** * Returns the base color for this banner */ - public getBaseColor(): org.bukkit.DyeColor; + getBaseColor(): org.bukkit.DyeColor; /** * Sets the base color for this banner. * Only valid for shield pseudo banners, otherwise base depends on block * type */ - public setBaseColor(color: org.bukkit.DyeColor): void; + setBaseColor(color: org.bukkit.DyeColor): void; /** * Returns a list of patterns on this banner */ - public getPatterns(): any[] /*java.util.List*/; + getPatterns(): any[] /*java.util.List*/; /** * Sets the patterns used on this banner */ - public setPatterns(patterns: any[] /*java.util.List*/): void; + setPatterns(patterns: any[] /*java.util.List*/): void; /** * Adds a new pattern on top of the existing * patterns */ - public addPattern(pattern: org.bukkit.block.banner.Pattern): void; + addPattern(pattern: org.bukkit.block.banner.Pattern): void; /** * Returns the pattern at the specified index */ - public getPattern(i: number): org.bukkit.block.banner.Pattern; + getPattern(i: number): org.bukkit.block.banner.Pattern; /** * Removes the pattern at the specified index */ - public removePattern(i: number): org.bukkit.block.banner.Pattern; + removePattern(i: number): org.bukkit.block.banner.Pattern; /** * Sets the pattern at the specified index */ - public setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; + setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; /** * Returns the number of patterns on this * banner */ - public numberOfPatterns(): number; + numberOfPatterns(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts b/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts index f554db78..87410264 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Barrel.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Barrel { + // @ts-ignore + interface Barrel extends org.bukkit.block.Container, org.bukkit.loot.Lootable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts b/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts index 0280130d..c3dff8c3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Beacon.ts @@ -1,37 +1,38 @@ declare namespace org { namespace bukkit { namespace block { - class Beacon { + // @ts-ignore + interface Beacon extends org.bukkit.block.TileState, org.bukkit.block.Lockable, org.bukkit.Nameable { /** * Returns the list of players within the beacon's range of effect. *

* This will return an empty list if the block represented by this state is * no longer a beacon. */ - public getEntitiesInRange(): any[] /*java.util.Collection*/; + getEntitiesInRange(): any[] /*java.util.Collection*/; /** * Returns the tier of the beacon pyramid (0-4). The tier refers to the * beacon's power level, based on how many layers of blocks are in the * pyramid. Tier 1 refers to a beacon with one layer of 9 blocks under it. */ - public getTier(): number; + getTier(): number; /** * Returns the primary effect set on the beacon */ - public getPrimaryEffect(): org.bukkit.potion.PotionEffect; + getPrimaryEffect(): org.bukkit.potion.PotionEffect; /** * Set the primary effect on this beacon, or null to clear. */ - public setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void; + setPrimaryEffect(effect: org.bukkit.potion.PotionEffectType): void; /** * Returns the secondary effect set on the beacon. */ - public getSecondaryEffect(): org.bukkit.potion.PotionEffect; + getSecondaryEffect(): org.bukkit.potion.PotionEffect; /** * Set the secondary effect on this beacon, or null to clear. Note that tier * must be >= 4 for this effect to be active. */ - public setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void; + setSecondaryEffect(effect: org.bukkit.potion.PotionEffectType): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Bed.ts b/packages/bukkit/src/typings/org.bukkit.block.Bed.ts index d203c731..7f394b8a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Bed.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Bed.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Bed { + // @ts-ignore + interface Bed extends org.bukkit.block.TileState, org.bukkit.material.Colorable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Bell.ts b/packages/bukkit/src/typings/org.bukkit.block.Bell.ts index 15847982..32d9bf1e 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Bell.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Bell.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Bell { + // @ts-ignore + interface Bell extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Biome.ts b/packages/bukkit/src/typings/org.bukkit.block.Biome.ts index ac8c63a6..5dc6865a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Biome.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Biome.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Biome { + // @ts-ignore + class Biome implements org.bukkit.Keyed { public static OCEAN: org.bukkit.block.Biome; public static PLAINS: org.bukkit.block.Biome; public static DESERT: org.bukkit.block.Biome; diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts b/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts index ae31a19a..f602ee76 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlastFurnace.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class BlastFurnace { + // @ts-ignore + interface BlastFurnace extends org.bukkit.block.Furnace { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Block.ts b/packages/bukkit/src/typings/org.bukkit.block.Block.ts index 19f605ff..fa35d456 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Block.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Block.ts @@ -1,25 +1,26 @@ declare namespace org { namespace bukkit { namespace block { - class Block { + // @ts-ignore + interface Block extends org.bukkit.metadata.Metadatable { /** * Gets the metadata for this block */ - public getData(): number; + getData(): number; /** * Gets the complete block data for this block */ - public getBlockData(): org.bukkit.block.data.BlockData; + getBlockData(): org.bukkit.block.data.BlockData; /** * Gets the block at the given offsets */ - public getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block; + getRelative(modX: number, modY: number, modZ: number): org.bukkit.block.Block; /** * Gets the block at the given face *

* This method is equal to getRelative(face, 1) */ - public getRelative(face: org.bukkit.block.BlockFace): org.bukkit.block.Block; + getRelative(face: org.bukkit.block.BlockFace): org.bukkit.block.Block; /** * Gets the block at the given distance of the given face *

@@ -31,63 +32,63 @@ declare namespace org { * shower.setType(Material.WATER); * */ - public getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block; + getRelative(face: org.bukkit.block.BlockFace, distance: number): org.bukkit.block.Block; /** * Gets the type of this block */ - public getType(): org.bukkit.Material; + getType(): org.bukkit.Material; /** * Gets the light level between 0-15 */ - public getLightLevel(): number; + getLightLevel(): number; /** * Get the amount of light at this block from the sky. *

* Any light given from other sources (such as blocks like torches) will * be ignored. */ - public getLightFromSky(): number; + getLightFromSky(): number; /** * Get the amount of light at this block from nearby blocks. *

* Any light given from other sources (such as the sun) will be ignored. */ - public getLightFromBlocks(): number; + getLightFromBlocks(): number; /** * Gets the world which contains this Block */ - public getWorld(): org.bukkit.World; + getWorld(): org.bukkit.World; /** * Gets the x-coordinate of this block */ - public getX(): number; + getX(): number; /** * Gets the y-coordinate of this block */ - public getY(): number; + getY(): number; /** * Gets the z-coordinate of this block */ - public getZ(): number; + getZ(): number; /** * Gets the Location of the block */ - public getLocation(): org.bukkit.Location; + getLocation(): org.bukkit.Location; /** * Stores the location of the block in the provided Location object. *

* If the provided Location is null this method does nothing and returns * null. */ - public getLocation(loc: org.bukkit.Location): org.bukkit.Location; + getLocation(loc: org.bukkit.Location): org.bukkit.Location; /** * Gets the chunk which contains this block */ - public getChunk(): org.bukkit.Chunk; + getChunk(): org.bukkit.Chunk; /** * Sets the complete data for this block */ - public setBlockData(data: org.bukkit.block.data.BlockData): void; + setBlockData(data: org.bukkit.block.data.BlockData): void; /** * Sets the complete data for this block *
@@ -103,11 +104,11 @@ declare namespace org { * triggered at a later point. If this occurs, the resulting behavior is * undefined. */ - public setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void; + setBlockData(data: org.bukkit.block.data.BlockData, applyPhysics: boolean): void; /** * Sets the type of this block */ - public setType(type: org.bukkit.Material): void; + setType(type: org.bukkit.Material): void; /** * Sets the type of this block *
@@ -123,7 +124,7 @@ declare namespace org { * triggered at a later point. If this occurs, the resulting behavior is * undefined. */ - public setType(type: org.bukkit.Material, applyPhysics: boolean): void; + setType(type: org.bukkit.Material, applyPhysics: boolean): void; /** * Gets the face relation of this block compared to the given block. *

@@ -136,7 +137,7 @@ declare namespace org { *
* If the given block is not connected to this block, null may be returned */ - public getFace(block: org.bukkit.block.Block): org.bukkit.block.BlockFace; + getFace(block: org.bukkit.block.Block): org.bukkit.block.BlockFace; /** * Captures the current state of this block. You may then cast that state * into any accepted type, such as Furnace or Sign. @@ -144,86 +145,86 @@ declare namespace org { * The returned object will never be updated, and you are not guaranteed * that (for example) a sign is still a sign after you capture its state. */ - public getState(): org.bukkit.block.BlockState; + getState(): org.bukkit.block.BlockState; /** * Returns the biome that this block resides in */ - public getBiome(): org.bukkit.block.Biome; + getBiome(): org.bukkit.block.Biome; /** * Sets the biome that this block resides in */ - public setBiome(bio: org.bukkit.block.Biome): void; + setBiome(bio: org.bukkit.block.Biome): void; /** * Returns true if the block is being powered by Redstone. */ - public isBlockPowered(): boolean; + isBlockPowered(): boolean; /** * Returns true if the block is being indirectly powered by Redstone. */ - public isBlockIndirectlyPowered(): boolean; + isBlockIndirectlyPowered(): boolean; /** * Returns true if the block face is being powered by Redstone. */ - public isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean; + isBlockFacePowered(face: org.bukkit.block.BlockFace): boolean; /** * Returns true if the block face is being indirectly powered by Redstone. */ - public isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean; + isBlockFaceIndirectlyPowered(face: org.bukkit.block.BlockFace): boolean; /** * Returns the redstone power being provided to this block face */ - public getBlockPower(face: org.bukkit.block.BlockFace): number; + getBlockPower(face: org.bukkit.block.BlockFace): number; /** * Returns the redstone power being provided to this block */ - public getBlockPower(): number; + getBlockPower(): number; /** * Checks if this block is empty. *

* A block is considered empty when {@link #getType()} returns {@link * Material#AIR}. */ - public isEmpty(): boolean; + isEmpty(): boolean; /** * Checks if this block is liquid. *

* A block is considered liquid when {@link #getType()} returns {@link * Material#WATER} or {@link Material#LAVA}. */ - public isLiquid(): boolean; + isLiquid(): boolean; /** * Gets the temperature of this block. *

* If the raw biome temperature without adjusting for height effects is * required then please use {@link World#getTemperature(int, int)}. */ - public getTemperature(): number; + getTemperature(): number; /** * Gets the humidity of the biome of this block */ - public getHumidity(): number; + getHumidity(): number; /** * Returns the reaction of the block when moved by a piston */ - public getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction; + getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction; /** * Breaks the block and spawns items as if a player had digged it */ - public breakNaturally(): boolean; + breakNaturally(): boolean; /** * Breaks the block and spawns items as if a player had digged it with a * specific tool */ - public breakNaturally(tool: org.bukkit.inventory.ItemStack): boolean; + breakNaturally(tool: org.bukkit.inventory.ItemStack): boolean; /** * Returns a list of items which would drop by destroying this block */ - public getDrops(): any[] /*java.util.Collection*/; + getDrops(): any[] /*java.util.Collection*/; /** * Returns a list of items which would drop by destroying this block with * a specific tool */ - public getDrops(tool: org.bukkit.inventory.ItemStack): any[] /*java.util.Collection*/; + getDrops(tool: org.bukkit.inventory.ItemStack): any[] /*java.util.Collection*/; /** * Checks if this block is passable. *

@@ -234,12 +235,12 @@ declare namespace org { * fence gates, trap doors, etc. are not because they still have parts that * can be collided with. */ - public isPassable(): boolean; + isPassable(): boolean; /** * Performs a ray trace that checks for collision with this specific block * in its current state using its precise collision shape. */ - public rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; + rayTrace(start: org.bukkit.Location, direction: org.bukkit.util.Vector, maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; /** * Gets the approximate bounding box for this block. *

@@ -250,7 +251,7 @@ declare namespace org { * This method will return an empty bounding box if the geometric shape of * the block is empty (such as air blocks). */ - public getBoundingBox(): org.bukkit.util.BoundingBox; + getBoundingBox(): org.bukkit.util.BoundingBox; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts b/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts index b3a4bc61..a478f5b7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlockFace.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class BlockFace { + // @ts-ignore + class BlockFace { public static NORTH: org.bukkit.block.BlockFace; public static EAST: org.bukkit.block.BlockFace; public static SOUTH: org.bukkit.block.BlockFace; diff --git a/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts b/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts index c24f6b83..faec95b1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BlockState.ts @@ -1,49 +1,50 @@ declare namespace org { namespace bukkit { namespace block { - class BlockState { + // @ts-ignore + interface BlockState extends org.bukkit.metadata.Metadatable { /** * Gets the block represented by this block state. */ - public getBlock(): org.bukkit.block.Block; + getBlock(): org.bukkit.block.Block; /** * Gets the metadata for this block state. */ - public getData(): org.bukkit.material.MaterialData; + getData(): org.bukkit.material.MaterialData; /** * Gets the data for this block state. */ - public getBlockData(): org.bukkit.block.data.BlockData; + getBlockData(): org.bukkit.block.data.BlockData; /** * Gets the type of this block state. */ - public getType(): org.bukkit.Material; + getType(): org.bukkit.Material; /** * Gets the current light level of the block represented by this block state. */ - public getLightLevel(): number; + getLightLevel(): number; /** * Gets the world which contains the block represented by this block state. */ - public getWorld(): org.bukkit.World; + getWorld(): org.bukkit.World; /** * Gets the x-coordinate of this block state. */ - public getX(): number; + getX(): number; /** * Gets the y-coordinate of this block state. */ - public getY(): number; + getY(): number; /** * Gets the z-coordinate of this block state. */ - public getZ(): number; + getZ(): number; /** * Gets the location of this block state. *

* If this block state is not placed the location's world will be null! */ - public getLocation(): org.bukkit.Location; + getLocation(): org.bukkit.Location; /** * Stores the location of this block state in the provided Location object. *

@@ -52,23 +53,23 @@ declare namespace org { *

* If this block state is not placed the location's world will be null! */ - public getLocation(loc: org.bukkit.Location): org.bukkit.Location; + getLocation(loc: org.bukkit.Location): org.bukkit.Location; /** * Gets the chunk which contains the block represented by this block state. */ - public getChunk(): org.bukkit.Chunk; + getChunk(): org.bukkit.Chunk; /** * Sets the metadata for this block state. */ - public setData(data: org.bukkit.material.MaterialData): void; + setData(data: org.bukkit.material.MaterialData): void; /** * Sets the data for this block state. */ - public setBlockData(data: org.bukkit.block.data.BlockData): void; + setBlockData(data: org.bukkit.block.data.BlockData): void; /** * Sets the type of this block state. */ - public setType(type: org.bukkit.Material): void; + setType(type: org.bukkit.Material): void; /** * Attempts to update the block represented by this state, setting it to * the new values as defined by this state. @@ -78,7 +79,7 @@ declare namespace org { * type as it was when this state was taken. It will return false in this * eventuality. */ - public update(): boolean; + update(): boolean; /** * Attempts to update the block represented by this state, setting it to * the new values as defined by this state. @@ -86,7 +87,7 @@ declare namespace org { * This has the same effect as calling update(force, true). That is to * say, this will trigger a physics update to surrounding blocks. */ - public update(force: boolean): boolean; + update(force: boolean): boolean; /** * Attempts to update the block represented by this state, setting it to * the new values as defined by this state. @@ -103,16 +104,16 @@ declare namespace org { * If applyPhysics is true, it will trigger a physics update on * surrounding blocks which could cause them to update or disappear. */ - public update(force: boolean, applyPhysics: boolean): boolean; - public getRawData(): number; - public setRawData(data: number): void; + update(force: boolean, applyPhysics: boolean): boolean; + getRawData(): number; + setRawData(data: number): void; /** * Returns whether this state is placed in the world. *

* Some methods will not work if the block state isn't * placed in the world. */ - public isPlaced(): boolean; + isPlaced(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts b/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts index a5fafb86..51875bde 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.BrewingStand.ts @@ -1,25 +1,26 @@ declare namespace org { namespace bukkit { namespace block { - class BrewingStand { + // @ts-ignore + interface BrewingStand extends org.bukkit.block.Container { /** * How much time is left in the brewing cycle. */ - public getBrewingTime(): number; + getBrewingTime(): number; /** * Set the time left before brewing completes. */ - public setBrewingTime(brewTime: number): void; + setBrewingTime(brewTime: number): void; /** * Get the level of current fuel for brewing. */ - public getFuelLevel(): number; + getFuelLevel(): number; /** * Set the level of current fuel for brewing. */ - public setFuelLevel(level: number): void; - public getInventory(): org.bukkit.inventory.BrewerInventory; - public getSnapshotInventory(): org.bukkit.inventory.BrewerInventory; + setFuelLevel(level: number): void; + getInventory(): org.bukkit.inventory.BrewerInventory; + getSnapshotInventory(): org.bukkit.inventory.BrewerInventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts b/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts index c8d47298..d2ff85d3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Campfire.ts @@ -1,30 +1,31 @@ declare namespace org { namespace bukkit { namespace block { - class Campfire { - public getSize(): number; - public getItem(index: number): org.bukkit.inventory.ItemStack; - public setItem(index: number, item: org.bukkit.inventory.ItemStack): void; + // @ts-ignore + interface Campfire extends org.bukkit.block.TileState { + getSize(): number; + getItem(index: number): org.bukkit.inventory.ItemStack; + setItem(index: number, item: org.bukkit.inventory.ItemStack): void; /** * Get cook time. * This is the amount of time the item has been cooking for. */ - public getCookTime(index: number): number; + getCookTime(index: number): number; /** * Set cook time. * This is the amount of time the item has been cooking for. */ - public setCookTime(index: number, cookTime: number): void; + setCookTime(index: number, cookTime: number): void; /** * Get cook time total. * This is the amount of time the item is required to cook for. */ - public getCookTimeTotal(index: number): number; + getCookTimeTotal(index: number): number; /** * Set cook time. * This is the amount of time the item is required to cook for. */ - public setCookTimeTotal(index: number, cookTimeTotal: number): void; + setCookTimeTotal(index: number, cookTimeTotal: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Chest.ts b/packages/bukkit/src/typings/org.bukkit.block.Chest.ts index fac3dd97..5b0e02cb 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Chest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Chest.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Chest { + // @ts-ignore + interface Chest extends org.bukkit.block.Container, org.bukkit.loot.Lootable { /** * Gets the inventory of the chest block represented by this block state. *

@@ -14,7 +15,7 @@ declare namespace org { * If this block state is not placed this will return the captured * inventory snapshot instead. */ - public getBlockInventory(): org.bukkit.inventory.Inventory; + getBlockInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts index 3f0bfbad..1f99af25 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.CommandBlock.ts @@ -1,31 +1,32 @@ declare namespace org { namespace bukkit { namespace block { - class CommandBlock { + // @ts-ignore + interface CommandBlock extends org.bukkit.block.TileState { /** * Gets the command that this CommandBlock will run when powered. * This will never return null. If the CommandBlock does not have a * command, an empty String will be returned instead. */ - public getCommand(): string; + getCommand(): string; /** * Sets the command that this CommandBlock will run when powered. * Setting the command to null is the same as setting it to an empty * String. */ - public setCommand(command: string): void; + setCommand(command: string): void; /** * Gets the name of this CommandBlock. The name is used with commands * that this CommandBlock executes. This name will never be null, and * by default is "@". */ - public getName(): string; + getName(): string; /** * Sets the name of this CommandBlock. The name is used with commands * that this CommandBlock executes. Setting the name to null is the * same as setting it to "@". */ - public setName(name: string): void; + setName(name: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts index f6c39980..49874ea7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Comparator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Comparator { + // @ts-ignore + interface Comparator extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts b/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts index 29627022..b14c65a9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Conduit.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Conduit { + // @ts-ignore + interface Conduit extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Container.ts b/packages/bukkit/src/typings/org.bukkit.block.Container.ts index 613f55e2..37154fbe 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Container.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Container.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Container { + // @ts-ignore + interface Container extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.block.Lockable, org.bukkit.Nameable { /** * Gets the inventory of the block represented by this block state. *

@@ -11,7 +12,7 @@ declare namespace org { * If this block state is not placed this will return the captured inventory * snapshot instead. */ - public getInventory(): org.bukkit.inventory.Inventory; + getInventory(): org.bukkit.inventory.Inventory; /** * Gets the captured inventory snapshot of this container. *

@@ -20,7 +21,7 @@ declare namespace org { * this block state up until {@link #update(boolean, boolean)} has been * called. */ - public getSnapshotInventory(): org.bukkit.inventory.Inventory; + getSnapshotInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts b/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts index 6f77ed32..0bbb23d9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.CreatureSpawner.ts @@ -1,36 +1,37 @@ declare namespace org { namespace bukkit { namespace block { - class CreatureSpawner { + // @ts-ignore + interface CreatureSpawner extends org.bukkit.block.TileState { /** * Get the spawner's creature type. */ - public getSpawnedType(): org.bukkit.entity.EntityType; + getSpawnedType(): org.bukkit.entity.EntityType; /** * Set the spawner's creature type. */ - public setSpawnedType(creatureType: org.bukkit.entity.EntityType): void; + setSpawnedType(creatureType: org.bukkit.entity.EntityType): void; /** * Set the spawner mob type. */ - public setCreatureTypeByName(creatureType: string): void; + setCreatureTypeByName(creatureType: string): void; /** * Get the spawner's creature type. */ - public getCreatureTypeName(): string; + getCreatureTypeName(): string; /** * Get the spawner's delay. *
* This is the delay, in ticks, until the spawner will spawn its next mob. */ - public getDelay(): number; + getDelay(): number; /** * Set the spawner's delay. *
* If set to -1, the spawn delay will be reset to a random value between * {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}. */ - public setDelay(delay: number): void; + setDelay(delay: number): void; /** * The minimum spawn delay amount (in ticks). *
@@ -39,11 +40,11 @@ declare namespace org { * and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}. * Default value is 200 ticks. */ - public getMinSpawnDelay(): number; + getMinSpawnDelay(): number; /** * Set the minimum spawn delay amount (in ticks). */ - public setMinSpawnDelay(delay: number): void; + setMinSpawnDelay(delay: number): void; /** * The maximum spawn delay amount (in ticks). *
@@ -55,24 +56,24 @@ declare namespace org { * {@link #getMaxSpawnDelay()}. * Default value is 800 ticks. */ - public getMaxSpawnDelay(): number; + getMaxSpawnDelay(): number; /** * Set the maximum spawn delay amount (in ticks). *
* This value must be greater than 0, as well as greater than or * equal to {@link #getMinSpawnDelay()} */ - public setMaxSpawnDelay(delay: number): void; + setMaxSpawnDelay(delay: number): void; /** * Get how many mobs attempt to spawn. *
* Default value is 4. */ - public getSpawnCount(): number; + getSpawnCount(): number; /** * Set how many mobs attempt to spawn. */ - public setSpawnCount(spawnCount: number): void; + setSpawnCount(spawnCount: number): void; /** * Set the new maximum amount of similar entities that are allowed to be * within spawning range of this spawner. @@ -82,14 +83,14 @@ declare namespace org { *
* Default value is 16. */ - public getMaxNearbyEntities(): number; + getMaxNearbyEntities(): number; /** * Set the maximum number of similar entities that are allowed to be within * spawning range of this spawner. *
* Similar entities are entities that are of the same {@link EntityType} */ - public setMaxNearbyEntities(maxNearbyEntities: number): void; + setMaxNearbyEntities(maxNearbyEntities: number): void; /** * Get the maximum distance(squared) a player can be in order for this * spawner to be active. @@ -99,7 +100,7 @@ declare namespace org { *
* Default value is 16. */ - public getRequiredPlayerRange(): number; + getRequiredPlayerRange(): number; /** * Set the maximum distance (squared) a player can be in order for this * spawner to be active. @@ -107,7 +108,7 @@ declare namespace org { * Setting this value to less than or equal to 0 will make this spawner * always active (given that there are players online). */ - public setRequiredPlayerRange(requiredPlayerRange: number): void; + setRequiredPlayerRange(requiredPlayerRange: number): void; /** * Get the radius around which the spawner will attempt to spawn mobs in. *
@@ -120,12 +121,12 @@ declare namespace org { *
* Default value is 4. */ - public getSpawnRange(): number; + getSpawnRange(): number; /** * Set the new spawn range. *
*/ - public setSpawnRange(spawnRange: number): void; + setSpawnRange(spawnRange: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts b/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts index d740f043..867d37f9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.DaylightDetector.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class DaylightDetector { + // @ts-ignore + interface DaylightDetector extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts index f76d64f4..ed2fc5d5 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Dispenser.ts @@ -1,21 +1,22 @@ declare namespace org { namespace bukkit { namespace block { - class Dispenser { + // @ts-ignore + interface Dispenser extends org.bukkit.block.Container, org.bukkit.Nameable, org.bukkit.loot.Lootable { /** * Gets the BlockProjectileSource object for the dispenser. *

* If the block represented by this state is no longer a dispenser, this * will return null. */ - public getBlockProjectileSource(): org.bukkit.projectiles.BlockProjectileSource; + getBlockProjectileSource(): org.bukkit.projectiles.BlockProjectileSource; /** * Attempts to dispense the contents of the dispenser. *

* If the block represented by this state is no longer a dispenser, this * will return false. */ - public dispense(): boolean; + dispense(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts b/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts index 177f3c44..218fdf02 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.DoubleChest.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class DoubleChest { + // @ts-ignore + class DoubleChest implements org.bukkit.inventory.InventoryHolder { constructor(chest: org.bukkit.inventory.DoubleChestInventory) public getInventory(): org.bukkit.inventory.Inventory; public getLeftSide(): org.bukkit.inventory.InventoryHolder; diff --git a/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts b/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts index 0b0e7ef1..1e3c128d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Dropper.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Dropper { + // @ts-ignore + interface Dropper extends org.bukkit.block.Container, org.bukkit.loot.Lootable { /** * Tries to drop a randomly selected item from the dropper's inventory, * following the normal behavior of a dropper. @@ -20,7 +21,7 @@ declare namespace org { * If the block represented by this state is no longer a dropper, this will * do nothing. */ - public drop(): void; + drop(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts b/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts index 6e59690c..ac13f091 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.EnchantingTable.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class EnchantingTable { + // @ts-ignore + interface EnchantingTable extends org.bukkit.block.TileState, org.bukkit.Nameable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts b/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts index 3418fbcc..541b1bc4 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.EndGateway.ts @@ -1,45 +1,46 @@ declare namespace org { namespace bukkit { namespace block { - class EndGateway { + // @ts-ignore + interface EndGateway extends org.bukkit.block.TileState { /** * Gets the location that entities are teleported to when * entering the gateway portal. *

* If this block state is not placed the location's world will be null. */ - public getExitLocation(): org.bukkit.Location; + getExitLocation(): org.bukkit.Location; /** * Sets the exit location that entities are teleported to when * they enter the gateway portal. *

* If this block state is not placed the location's world has to be null. */ - public setExitLocation(location: org.bukkit.Location): void; + setExitLocation(location: org.bukkit.Location): void; /** * Gets whether this gateway will teleport entities directly to * the exit location instead of finding a nearby location. */ - public isExactTeleport(): boolean; + isExactTeleport(): boolean; /** * Sets whether this gateway will teleport entities directly to * the exit location instead of finding a nearby location. */ - public setExactTeleport(exact: boolean): void; + setExactTeleport(exact: boolean): void; /** * Gets the age in ticks of the gateway. *
* If the age is less than 200 ticks a magenta beam will be emitted, whilst * if it is a multiple of 2400 ticks a purple beam will be emitted. */ - public getAge(): number; + getAge(): number; /** * Sets the age in ticks of the gateway. *
* If the age is less than 200 ticks a magenta beam will be emitted, whilst * if it is a multiple of 2400 ticks a purple beam will be emitted. */ - public setAge(age: number): void; + setAge(age: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts index e3496408..b20bb10a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.EnderChest.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class EnderChest { + // @ts-ignore + interface EnderChest extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts b/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts index f16259ce..dab41382 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.FlowerPot.ts @@ -1,17 +1,18 @@ declare namespace org { namespace bukkit { namespace block { - class FlowerPot { + // @ts-ignore + interface FlowerPot extends org.bukkit.block.BlockState { /** * Gets the item present in this flower pot. */ - public getContents(): org.bukkit.material.MaterialData; + getContents(): org.bukkit.material.MaterialData; /** * Sets the item present in this flower pot. * NOTE: The Vanilla Minecraft client will currently not refresh this until * a block update is triggered. */ - public setContents(item: org.bukkit.material.MaterialData): void; + setContents(item: org.bukkit.material.MaterialData): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts index 1139b8a9..ebfaa131 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Furnace.ts @@ -1,39 +1,40 @@ declare namespace org { namespace bukkit { namespace block { - class Furnace { + // @ts-ignore + interface Furnace extends org.bukkit.block.Container { /** * Get burn time. */ - public getBurnTime(): number; + getBurnTime(): number; /** * Set burn time. * A burn time greater than 0 will cause this block to be lit, whilst a time * less than 0 will extinguish it. */ - public setBurnTime(burnTime: number): void; + setBurnTime(burnTime: number): void; /** * Get cook time. * This is the amount of time the item has been cooking for. */ - public getCookTime(): number; + getCookTime(): number; /** * Set cook time. * This is the amount of time the item has been cooking for. */ - public setCookTime(cookTime: number): void; + setCookTime(cookTime: number): void; /** * Get cook time total. * This is the amount of time the item is required to cook for. */ - public getCookTimeTotal(): number; + getCookTimeTotal(): number; /** * Set cook time. * This is the amount of time the item is required to cook for. */ - public setCookTimeTotal(cookTimeTotal: number): void; - public getInventory(): org.bukkit.inventory.FurnaceInventory; - public getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory; + setCookTimeTotal(cookTimeTotal: number): void; + getInventory(): org.bukkit.inventory.FurnaceInventory; + getSnapshotInventory(): org.bukkit.inventory.FurnaceInventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts index 7a23712c..8f507567 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Hopper.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Hopper { + // @ts-ignore + interface Hopper extends org.bukkit.block.Container, org.bukkit.loot.Lootable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts b/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts index 3bb694c5..b8749689 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Jigsaw.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Jigsaw { + // @ts-ignore + interface Jigsaw extends org.bukkit.block.TileState { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts b/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts index 546f3c01..b7a3c2d5 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Jukebox.ts @@ -1,34 +1,35 @@ declare namespace org { namespace bukkit { namespace block { - class Jukebox { + // @ts-ignore + interface Jukebox extends org.bukkit.block.TileState { /** * Gets the record inserted into the jukebox. */ - public getPlaying(): org.bukkit.Material; + getPlaying(): org.bukkit.Material; /** * Sets the record being played. */ - public setPlaying(record: org.bukkit.Material): void; + setPlaying(record: org.bukkit.Material): void; /** * Gets the record item inserted into the jukebox. */ - public getRecord(): org.bukkit.inventory.ItemStack; + getRecord(): org.bukkit.inventory.ItemStack; /** * Sets the record being played. */ - public setRecord(record: org.bukkit.inventory.ItemStack): void; + setRecord(record: org.bukkit.inventory.ItemStack): void; /** * Checks if the jukebox is playing a record. */ - public isPlaying(): boolean; + isPlaying(): boolean; /** * Stops the jukebox playing and ejects the current record. *

* If the block represented by this state is no longer a jukebox, this will * do nothing and return false. */ - public eject(): boolean; + eject(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts b/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts index f07e2c8a..7bd462ad 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Lectern.ts @@ -1,19 +1,20 @@ declare namespace org { namespace bukkit { namespace block { - class Lectern { + // @ts-ignore + interface Lectern extends org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder { /** * Get the current lectern page. */ - public getPage(): number; + getPage(): number; /** * Set the current lectern page. * If the page is greater than the number of pages of the book currently in * the inventory, then behavior is undefined. */ - public setPage(page: number): void; - public getInventory(): org.bukkit.inventory.Inventory; - public getSnapshotInventory(): org.bukkit.inventory.Inventory; + setPage(page: number): void; + getInventory(): org.bukkit.inventory.Inventory; + getSnapshotInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts b/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts index e1460582..46ffc918 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Lockable.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { namespace block { - class Lockable { + // @ts-ignore + interface Lockable { /** * Checks if the container has a valid (non empty) key. */ - public isLocked(): boolean; + isLocked(): boolean; /** * Gets the key needed to access the container. */ - public getLock(): string; + getLock(): string; /** * Sets the key required to access this container. Set to null (or empty * string) to remove key. */ - public setLock(key: string): void; + setLock(key: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts index e4bb8611..c13bab41 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.NoteBlock.ts @@ -1,44 +1,45 @@ declare namespace org { namespace bukkit { namespace block { - class NoteBlock { + // @ts-ignore + interface NoteBlock extends org.bukkit.block.BlockState { /** * Gets the note. */ - public getNote(): org.bukkit.Note; + getNote(): org.bukkit.Note; /** * Gets the note. */ - public getRawNote(): number; + getRawNote(): number; /** * Set the note. */ - public setNote(note: org.bukkit.Note): void; + setNote(note: org.bukkit.Note): void; /** * Set the note. */ - public setRawNote(note: number): void; + setRawNote(note: number): void; /** * Attempts to play the note at the block. *

* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(): boolean; + play(): boolean; /** * Plays an arbitrary note with an arbitrary instrument at the block. *

* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(instrument: number, note: number): boolean; + play(instrument: number, note: number): boolean; /** * Plays an arbitrary note with an arbitrary instrument at the block. *

* If the block represented by this block state is no longer a note block, * this will return false. */ - public play(instrument: org.bukkit.Instrument, note: org.bukkit.Note): boolean; + play(instrument: org.bukkit.Instrument, note: org.bukkit.Note): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts b/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts index 17f87ae7..1abaea15 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.PistonMoveReaction.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class PistonMoveReaction { + // @ts-ignore + class PistonMoveReaction { public static MOVE: org.bukkit.block.PistonMoveReaction; public static BREAK: org.bukkit.block.PistonMoveReaction; public static BLOCK: org.bukkit.block.PistonMoveReaction; diff --git a/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts b/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts index 881a4be2..604e0d28 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.ShulkerBox.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace block { - class ShulkerBox { + // @ts-ignore + interface ShulkerBox extends org.bukkit.block.Container, org.bukkit.loot.Lootable { /** * Get the {@link DyeColor} corresponding to this ShulkerBox */ - public getColor(): org.bukkit.DyeColor; + getColor(): org.bukkit.DyeColor; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Sign.ts b/packages/bukkit/src/typings/org.bukkit.block.Sign.ts index 07c9169e..98b62e27 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Sign.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Sign.ts @@ -1,24 +1,25 @@ declare namespace org { namespace bukkit { namespace block { - class Sign { + // @ts-ignore + interface Sign extends org.bukkit.block.TileState, org.bukkit.material.Colorable { /** * Gets all the lines of text currently on this sign. */ - public getLines(): any; + getLines(): any; /** * Gets the line of text at the specified index. *

* For example, getLine(0) will return the first line of text. */ - public getLine(index: number): string; + getLine(index: number): string; /** * Sets the line of text at the specified index. *

* For example, setLine(0, "Line One") will set the first line of text to * "Line One". */ - public setLine(index: number, line: string): void; + setLine(index: number, line: string): void; /** * Marks whether this sign can be edited by players. *
@@ -26,7 +27,7 @@ declare namespace org { * a placed sign is manipulated during the BlockPlaceEvent. Behaviour * outside of this event is undefined. */ - public isEditable(): boolean; + isEditable(): boolean; /** * Marks whether this sign can be edited by players. *
@@ -34,7 +35,7 @@ declare namespace org { * a placed sign is manipulated during the BlockPlaceEvent. Behaviour * outside of this event is undefined. */ - public setEditable(editable: boolean): void; + setEditable(editable: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Skull.ts b/packages/bukkit/src/typings/org.bukkit.block.Skull.ts index 9c0095d4..83ba37b0 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Skull.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Skull.ts @@ -1,50 +1,51 @@ declare namespace org { namespace bukkit { namespace block { - class Skull { + // @ts-ignore + interface Skull extends org.bukkit.block.TileState { /** * Checks to see if the skull has an owner */ - public hasOwner(): boolean; + hasOwner(): boolean; /** * Gets the owner of the skull, if one exists */ - public getOwner(): string; + getOwner(): string; /** * Sets the owner of the skull *

* Involves a potentially blocking web request to acquire the profile data for * the provided name. */ - public setOwner(name: string): boolean; + setOwner(name: string): boolean; /** * Get the player which owns the skull. This player may appear as the * texture depending on skull type. */ - public getOwningPlayer(): org.bukkit.OfflinePlayer; + getOwningPlayer(): org.bukkit.OfflinePlayer; /** * Set the player which owns the skull. This player may appear as the * texture depending on skull type. */ - public setOwningPlayer(player: org.bukkit.OfflinePlayer): void; + setOwningPlayer(player: org.bukkit.OfflinePlayer): void; /** * Gets the rotation of the skull in the world (or facing direction if this * is a wall mounted skull). */ - public getRotation(): org.bukkit.block.BlockFace; + getRotation(): org.bukkit.block.BlockFace; /** * Sets the rotation of the skull in the world (or facing direction if this * is a wall mounted skull). */ - public setRotation(rotation: org.bukkit.block.BlockFace): void; + setRotation(rotation: org.bukkit.block.BlockFace): void; /** * Gets the type of skull */ - public getSkullType(): org.bukkit.SkullType; + getSkullType(): org.bukkit.SkullType; /** * Sets the type of skull */ - public setSkullType(skullType: org.bukkit.SkullType): void; + setSkullType(skullType: org.bukkit.SkullType): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts b/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts index f1a1f589..ce919169 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Smoker.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class Smoker { + // @ts-ignore + interface Smoker extends org.bukkit.block.Furnace { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.Structure.ts b/packages/bukkit/src/typings/org.bukkit.block.Structure.ts index ea4fa3de..0675932c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.Structure.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.Structure.ts @@ -1,78 +1,79 @@ declare namespace org { namespace bukkit { namespace block { - class Structure { + // @ts-ignore + interface Structure extends org.bukkit.block.TileState { /** * The name of this structure. */ - public getStructureName(): string; + getStructureName(): string; /** * Set the name of this structure. This is case-sensitive. The name of the * structure in the {@link UsageMode#SAVE} structure block MUST match the * name within the {@link UsageMode#CORNER} block or the size calculation * will fail. */ - public setStructureName(name: string): void; + setStructureName(name: string): void; /** * Get the name of who created this structure. */ - public getAuthor(): string; + getAuthor(): string; /** * Set the name of whoever created this structure. */ - public setAuthor(author: string): void; + setAuthor(author: string): void; /** * Set the name of whoever created this structure using a * {@link LivingEntity}. */ - public setAuthor(livingEntity: org.bukkit.entity.LivingEntity): void; + setAuthor(livingEntity: org.bukkit.entity.LivingEntity): void; /** * The relative position of the structure outline based on the position of * the structure block. Maximum allowed distance is 32 blocks in any * direction. */ - public getRelativePosition(): org.bukkit.util.BlockVector; + getRelativePosition(): org.bukkit.util.BlockVector; /** * Set the relative position from the structure block. Maximum allowed * distance is 32 blocks in any direction. */ - public setRelativePosition(vector: org.bukkit.util.BlockVector): void; + setRelativePosition(vector: org.bukkit.util.BlockVector): void; /** * The distance to the opposite corner of this structure. The maximum * structure size is 32x32x32. When a structure has successfully been * calculated (i.e. it is within the maximum allowed distance) a white * border surrounds the structure. */ - public getStructureSize(): org.bukkit.util.BlockVector; + getStructureSize(): org.bukkit.util.BlockVector; /** * Set the maximum size of this structure from the origin point. Maximum * allowed size is 32x32x32. */ - public setStructureSize(vector: org.bukkit.util.BlockVector): void; + setStructureSize(vector: org.bukkit.util.BlockVector): void; /** * Sets the mirroring of the structure. */ - public setMirror(mirror: org.bukkit.block.structure.Mirror): void; + setMirror(mirror: org.bukkit.block.structure.Mirror): void; /** * How this structure is mirrored. */ - public getMirror(): org.bukkit.block.structure.Mirror; + getMirror(): org.bukkit.block.structure.Mirror; /** * Set how this structure is rotated. */ - public setRotation(rotation: org.bukkit.block.structure.StructureRotation): void; + setRotation(rotation: org.bukkit.block.structure.StructureRotation): void; /** * Get how this structure is rotated. */ - public getRotation(): org.bukkit.block.structure.StructureRotation; + getRotation(): org.bukkit.block.structure.StructureRotation; /** * Set the {@link UsageMode} of this structure block. */ - public setUsageMode(mode: org.bukkit.block.structure.UsageMode): void; + setUsageMode(mode: org.bukkit.block.structure.UsageMode): void; /** * Get the {@link UsageMode} of this structure block. */ - public getUsageMode(): org.bukkit.block.structure.UsageMode; + getUsageMode(): org.bukkit.block.structure.UsageMode; /** * While in {@link UsageMode#SAVE} mode, this will ignore any entities when * saving the structure. @@ -80,63 +81,63 @@ declare namespace org { * While in {@link UsageMode#LOAD} mode this will ignore any entities that * were saved to file. */ - public setIgnoreEntities(ignoreEntities: boolean): void; + setIgnoreEntities(ignoreEntities: boolean): void; /** * Get if this structure block should ignore entities. */ - public isIgnoreEntities(): boolean; + isIgnoreEntities(): boolean; /** * Set if the structure outline should show air blocks. */ - public setShowAir(showAir: boolean): void; + setShowAir(showAir: boolean): void; /** * Check if this structure block is currently showing all air blocks */ - public isShowAir(): boolean; + isShowAir(): boolean; /** * Set if this structure box should show the bounding box. */ - public setBoundingBoxVisible(showBoundingBox: boolean): void; + setBoundingBoxVisible(showBoundingBox: boolean): void; /** * Get if this structure block is currently showing the bounding box. */ - public isBoundingBoxVisible(): boolean; + isBoundingBoxVisible(): boolean; /** * Set the integrity of the structure. Integrity must be between 0.0 and 1.0 * Lower integrity values will result in more blocks being removed when * loading a structure. Integrity and {@link #getSeed()} are used together * to determine which blocks are randomly removed to mimic "decay." */ - public setIntegrity(integrity: number): void; + setIntegrity(integrity: number): void; /** * Get the integrity of this structure. */ - public getIntegrity(): number; + getIntegrity(): number; /** * The seed used to determine which blocks will be removed upon loading. * {@link #getIntegrity()} and seed are used together to determine which * blocks are randomly removed to mimic "decay." */ - public setSeed(seed: number): void; + setSeed(seed: number): void; /** * The seed used to determine how many blocks are removed upon loading of * this structure. */ - public getSeed(): number; + getSeed(): number; /** * Only applicable while in {@link UsageMode#DATA}. Metadata are specific * functions that can be applied to the structure location. Consult the * Minecraft * wiki for more information. */ - public setMetadata(metadata: string): void; + setMetadata(metadata: string): void; /** * Get the metadata function this structure block will perform when * activated. Consult the * Minecraft * Wiki for more information. */ - public getMetadata(): string; + getMetadata(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.TileState.ts b/packages/bukkit/src/typings/org.bukkit.block.TileState.ts index 78920cfe..6a37b63a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.TileState.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.TileState.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace block { - class TileState { + // @ts-ignore + interface TileState extends org.bukkit.block.BlockState, org.bukkit.persistence.PersistentDataHolder { /** * Returns a custom tag container capable of storing tags on the object. * Note that the tags stored on this container are all stored under their @@ -14,7 +15,7 @@ declare namespace org { * content will only be applied to the actual tile entity after one of the * {@link #update()} methods is called. */ - public getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts b/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts index 8fa284c7..5045b5bc 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.banner.Pattern.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace block { namespace banner { - class Pattern { + // @ts-ignore + class Pattern implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Creates a new pattern from the specified color and * pattern type diff --git a/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts b/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts index 6a1c8069..ddc2c20e 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.banner.PatternType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace block { namespace banner { - class PatternType { + // @ts-ignore + class PatternType { public static BASE: org.bukkit.block.banner.PatternType; public static SQUARE_BOTTOM_LEFT: org.bukkit.block.banner.PatternType; public static SQUARE_BOTTOM_RIGHT: org.bukkit.block.banner.PatternType; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts index 0744a9d5..288e1b4b 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Ageable.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Ageable { + // @ts-ignore + interface Ageable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'age' property. */ - public getAge(): number; + getAge(): number; /** * Sets the value of the 'age' property. */ - public setAge(age: number): void; + setAge(age: number): void; /** * Gets the maximum allowed value of the 'age' property. */ - public getMaximumAge(): number; + getMaximumAge(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts index 7f0ecf03..dd2384ed 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.AnaloguePowerable.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class AnaloguePowerable { + // @ts-ignore + interface AnaloguePowerable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'power' property. */ - public getPower(): number; + getPower(): number; /** * Sets the value of the 'power' property. */ - public setPower(power: number): void; + setPower(power: number): void; /** * Gets the maximum allowed value of the 'power' property. */ - public getMaximumPower(): number; + getMaximumPower(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts index dbc80a66..6b1b69c2 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Attachable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Attachable { + // @ts-ignore + interface Attachable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'attached' property. */ - public isAttached(): boolean; + isAttached(): boolean; /** * Sets the value of the 'attached' property. */ - public setAttached(attached: boolean): void; + setAttached(attached: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts index febf8ee8..9eb46103 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.Half.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace Bisected { - class Half { + // @ts-ignore + class Half { public static TOP: org.bukkit.block.data.Bisected.Half; public static BOTTOM: org.bukkit.block.data.Bisected.Half; public static values(): org.bukkit.block.data.Bisected.Half[]; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts index 30938613..5ffeee3b 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Bisected.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Bisected { + // @ts-ignore + interface Bisected extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'half' property. */ - public getHalf(): org.bukkit.block.data.Bisected.Half; + getHalf(): org.bukkit.block.data.Bisected.Half; /** * Sets the value of the 'half' property. */ - public setHalf(half: org.bukkit.block.data.Bisected.Half): void; + setHalf(half: org.bukkit.block.data.Bisected.Half): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts b/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts index 8231f481..7e303d9c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.BlockData.ts @@ -2,17 +2,18 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class BlockData { + // @ts-ignore + interface BlockData { /** * Get the Material represented by this block data. */ - public getMaterial(): org.bukkit.Material; + getMaterial(): org.bukkit.Material; /** * Gets a string, which when passed into a method such as * {@link Server#createBlockData(java.lang.String)} will unambiguously * recreate this instance. */ - public getAsString(): string; + getAsString(): string; /** * Gets a string, which when passed into a method such as * {@link Server#createBlockData(java.lang.String)} will recreate this or a @@ -34,7 +35,7 @@ declare namespace org { * dataString.equals(data.getAsString()); // This is equivalent to the above, "getAsString(false)" * } */ - public getAsString(hideUnspecified: boolean): string; + getAsString(hideUnspecified: boolean): string; /** * Merges all explicitly set states from the given data with this BlockData. *
@@ -44,7 +45,7 @@ declare namespace org { *
* Note also that the block types must match identically. */ - public merge(data: org.bukkit.block.data.BlockData): org.bukkit.block.data.BlockData; + merge(data: org.bukkit.block.data.BlockData): org.bukkit.block.data.BlockData; /** * Checks if the specified BlockData matches this block data. *
@@ -57,11 +58,11 @@ declare namespace org { * Note that these semantics mean that a.matches(b) may not be the same * as b.matches(a) */ - public matches(data: org.bukkit.block.data.BlockData): boolean; + matches(data: org.bukkit.block.data.BlockData): boolean; /** * Returns a copy of this BlockData. */ - public clone(): org.bukkit.block.data.BlockData; + clone(): org.bukkit.block.data.BlockData; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts index 62e35a29..88b4b600 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Directional.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Directional { + // @ts-ignore + interface Directional extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'facing' property. */ - public getFacing(): org.bukkit.block.BlockFace; + getFacing(): org.bukkit.block.BlockFace; /** * Sets the value of the 'facing' property. */ - public setFacing(facing: org.bukkit.block.BlockFace): void; + setFacing(facing: org.bukkit.block.BlockFace): void; /** * Gets the faces which are applicable to this block. */ - public getFaces(): any[] /*java.util.Set*/; + getFaces(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts index 97ef169f..5cf9b43a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Levelled.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Levelled { + // @ts-ignore + interface Levelled extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'level' property. */ - public getLevel(): number; + getLevel(): number; /** * Sets the value of the 'level' property. */ - public setLevel(level: number): void; + setLevel(level: number): void; /** * Gets the maximum allowed value of the 'level' property. */ - public getMaximumLevel(): number; + getMaximumLevel(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts index fc2727dd..9540f1ca 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Lightable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Lightable { + // @ts-ignore + interface Lightable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'lit' property. */ - public isLit(): boolean; + isLit(): boolean; /** * Sets the value of the 'lit' property. */ - public setLit(lit: boolean): void; + setLit(lit: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts b/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts index 97e176f1..cbfaefb2 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.MultipleFacing.ts @@ -2,23 +2,24 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class MultipleFacing { + // @ts-ignore + interface MultipleFacing extends org.bukkit.block.data.BlockData { /** * Checks if this block has the specified face enabled. */ - public hasFace(face: org.bukkit.block.BlockFace): boolean; + hasFace(face: org.bukkit.block.BlockFace): boolean; /** * Set whether this block has the specified face enabled. */ - public setFace(face: org.bukkit.block.BlockFace, has: boolean): void; + setFace(face: org.bukkit.block.BlockFace, has: boolean): void; /** * Get all of the faces which are enabled on this block. */ - public getFaces(): any[] /*java.util.Set*/; + getFaces(): any[] /*java.util.Set*/; /** * Gets all of this faces which may be set on this block. */ - public getAllowedFaces(): any[] /*java.util.Set*/; + getAllowedFaces(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts index c9fc2487..bf006e57 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Openable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Openable { + // @ts-ignore + interface Openable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'open' property. */ - public isOpen(): boolean; + isOpen(): boolean; /** * Sets the value of the 'open' property. */ - public setOpen(open: boolean): void; + setOpen(open: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts index 23006e38..90672681 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Orientable.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Orientable { + // @ts-ignore + interface Orientable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'axis' property. */ - public getAxis(): org.bukkit.Axis; + getAxis(): org.bukkit.Axis; /** * Sets the value of the 'axis' property. */ - public setAxis(axis: org.bukkit.Axis): void; + setAxis(axis: org.bukkit.Axis): void; /** * Gets the axes which are applicable to this block. */ - public getAxes(): any[] /*java.util.Set*/; + getAxes(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts index e1ee08ad..a3c0d50a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Powerable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Powerable { + // @ts-ignore + interface Powerable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'powered' property. */ - public isPowered(): boolean; + isPowered(): boolean; /** * Sets the value of the 'powered' property. */ - public setPowered(powered: boolean): void; + setPowered(powered: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts index 9302a7b3..7a6c4a2c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.Shape.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace Rail { - class Shape { + // @ts-ignore + class Shape { public static NORTH_SOUTH: org.bukkit.block.data.Rail.Shape; public static EAST_WEST: org.bukkit.block.data.Rail.Shape; public static ASCENDING_EAST: org.bukkit.block.data.Rail.Shape; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts index d229b68b..16f7c4cf 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rail.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Rail { + // @ts-ignore + interface Rail extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'shape' property. */ - public getShape(): org.bukkit.block.data.Rail.Shape; + getShape(): org.bukkit.block.data.Rail.Shape; /** * Sets the value of the 'shape' property. */ - public setShape(shape: org.bukkit.block.data.Rail.Shape): void; + setShape(shape: org.bukkit.block.data.Rail.Shape): void; /** * Gets the shapes which are applicable to this block. */ - public getShapes(): any[] /*java.util.Set*/; + getShapes(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts index 5eefae0d..79281db1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Rotatable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Rotatable { + // @ts-ignore + interface Rotatable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'rotation' property. */ - public getRotation(): org.bukkit.block.BlockFace; + getRotation(): org.bukkit.block.BlockFace; /** * Sets the value of the 'rotation' property. */ - public setRotation(rotation: org.bukkit.block.BlockFace): void; + setRotation(rotation: org.bukkit.block.BlockFace): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts index 37cd74f6..ef7bec90 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Snowable.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Snowable { + // @ts-ignore + interface Snowable extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'snowy' property. */ - public isSnowy(): boolean; + isSnowy(): boolean; /** * Sets the value of the 'snowy' property. */ - public setSnowy(snowy: boolean): void; + setSnowy(snowy: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts b/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts index fae11e9e..a9028229 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.Waterlogged.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace block { namespace data { - class Waterlogged { + // @ts-ignore + interface Waterlogged extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'waterlogged' property. */ - public isWaterlogged(): boolean; + isWaterlogged(): boolean; /** * Sets the value of the 'waterlogged' property. */ - public setWaterlogged(waterlogged: boolean): void; + setWaterlogged(waterlogged: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts index 1cc44916..029aecb6 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.Leaves.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Bamboo { - class Leaves { + // @ts-ignore + class Leaves { public static NONE: org.bukkit.block.data.type.Bamboo.Leaves; public static SMALL: org.bukkit.block.data.type.Bamboo.Leaves; public static LARGE: org.bukkit.block.data.type.Bamboo.Leaves; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts index da35cc7e..ab5bb77c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bamboo.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Bamboo { + // @ts-ignore + interface Bamboo extends org.bukkit.block.data.Ageable, org.bukkit.block.data.type.Sapling { /** * Gets the value of the 'leaves' property. */ - public getLeaves(): org.bukkit.block.data.type.Bamboo.Leaves; + getLeaves(): org.bukkit.block.data.type.Bamboo.Leaves; /** * Sets the value of the 'leaves' property. */ - public setLeaves(leaves: org.bukkit.block.data.type.Bamboo.Leaves): void; + setLeaves(leaves: org.bukkit.block.data.type.Bamboo.Leaves): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts index 03620c86..6a3470ae 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.Part.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Bed { - class Part { + // @ts-ignore + class Part { public static HEAD: org.bukkit.block.data.type.Bed.Part; public static FOOT: org.bukkit.block.data.type.Bed.Part; public static values(): org.bukkit.block.data.type.Bed.Part[]; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts index 974361b5..37192435 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bed.ts @@ -3,19 +3,20 @@ declare namespace org { namespace block { namespace data { namespace type { - class Bed { + // @ts-ignore + interface Bed extends org.bukkit.block.data.Directional { /** * Gets the value of the 'part' property. */ - public getPart(): org.bukkit.block.data.type.Bed.Part; + getPart(): org.bukkit.block.data.type.Bed.Part; /** * Sets the value of the 'part' property. */ - public setPart(part: org.bukkit.block.data.type.Bed.Part): void; + setPart(part: org.bukkit.block.data.type.Bed.Part): void; /** * Gets the value of the 'occupied' property. */ - public isOccupied(): boolean; + isOccupied(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts index 330e8ebe..7dcbf624 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.Attachment.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Bell { - class Attachment { + // @ts-ignore + class Attachment { public static FLOOR: org.bukkit.block.data.type.Bell.Attachment; public static CEILING: org.bukkit.block.data.type.Bell.Attachment; public static SINGLE_WALL: org.bukkit.block.data.type.Bell.Attachment; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts index 37dc5a24..68434bbb 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Bell.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Bell { + // @ts-ignore + interface Bell extends org.bukkit.block.data.Directional { /** * Gets the value of the 'attachment' property. */ - public getAttachment(): org.bukkit.block.data.type.Bell.Attachment; + getAttachment(): org.bukkit.block.data.type.Bell.Attachment; /** * Sets the value of the 'attachment' property. */ - public setAttachment(attachment: org.bukkit.block.data.type.Bell.Attachment): void; + setAttachment(attachment: org.bukkit.block.data.type.Bell.Attachment): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts index 3580c1ca..fe061781 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.BrewingStand.ts @@ -3,23 +3,24 @@ declare namespace org { namespace block { namespace data { namespace type { - class BrewingStand { + // @ts-ignore + interface BrewingStand extends org.bukkit.block.data.BlockData { /** * Checks if the stand has the following bottle */ - public hasBottle(bottle: number): boolean; + hasBottle(bottle: number): boolean; /** * Set whether the stand has this bottle present. */ - public setBottle(bottle: number, has: boolean): void; + setBottle(bottle: number, has: boolean): void; /** * Get the indexes of all the bottles present on this block. */ - public getBottles(): any[] /*java.util.Set*/; + getBottles(): any[] /*java.util.Set*/; /** * Get the maximum amount of bottles present on this stand. */ - public getMaximumBottles(): number; + getMaximumBottles(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts index 1f693ec4..ea339357 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.BubbleColumn.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class BubbleColumn { + // @ts-ignore + interface BubbleColumn extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'drag' property. */ - public isDrag(): boolean; + isDrag(): boolean; /** * Sets the value of the 'drag' property. */ - public setDrag(drag: boolean): void; + setDrag(drag: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts index 4c27a7cb..f810b6d9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cake.ts @@ -3,19 +3,20 @@ declare namespace org { namespace block { namespace data { namespace type { - class Cake { + // @ts-ignore + interface Cake extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'bites' property. */ - public getBites(): number; + getBites(): number; /** * Sets the value of the 'bites' property. */ - public setBites(bites: number): void; + setBites(bites: number): void; /** * Gets the maximum allowed value of the 'bites' property. */ - public getMaximumBites(): number; + getMaximumBites(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts index e5916996..dd944ac4 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Campfire.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Campfire { + // @ts-ignore + interface Campfire extends org.bukkit.block.data.Lightable, org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'signal_fire' property. */ - public isSignalFire(): boolean; + isSignalFire(): boolean; /** * Sets the value of the 'signal_fire' property. */ - public setSignalFire(signalFire: boolean): void; + setSignalFire(signalFire: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts index 75f1aa09..ec91972a 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.Type.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Chest { - class Type { + // @ts-ignore + class Type { public static SINGLE: org.bukkit.block.data.type.Chest.Type; public static LEFT: org.bukkit.block.data.type.Chest.Type; public static RIGHT: org.bukkit.block.data.type.Chest.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts index 45e7246a..ee189ed8 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Chest.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Chest { + // @ts-ignore + interface Chest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'type' property. */ - public getType(): org.bukkit.block.data.type.Chest.Type; + getType(): org.bukkit.block.data.type.Chest.Type; /** * Sets the value of the 'type' property. */ - public setType(type: org.bukkit.block.data.type.Chest.Type): void; + setType(type: org.bukkit.block.data.type.Chest.Type): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts index 2efe8882..e582202e 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Cocoa.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Cocoa { + // @ts-ignore + interface Cocoa extends org.bukkit.block.data.Ageable, org.bukkit.block.data.Directional { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts index 562e1006..83cba77b 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.CommandBlock.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class CommandBlock { + // @ts-ignore + interface CommandBlock extends org.bukkit.block.data.Directional { /** * Gets the value of the 'conditional' property. */ - public isConditional(): boolean; + isConditional(): boolean; /** * Sets the value of the 'conditional' property. */ - public setConditional(conditional: boolean): void; + setConditional(conditional: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts index e0b212c7..5a7decf3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.Mode.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Comparator { - class Mode { + // @ts-ignore + class Mode { public static COMPARE: org.bukkit.block.data.type.Comparator.Mode; public static SUBTRACT: org.bukkit.block.data.type.Comparator.Mode; public static values(): org.bukkit.block.data.type.Comparator.Mode[]; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts index d6f9a603..22b458cf 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Comparator.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Comparator { + // @ts-ignore + interface Comparator extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { /** * Gets the value of the 'mode' property. */ - public getMode(): org.bukkit.block.data.type.Comparator.Mode; + getMode(): org.bukkit.block.data.type.Comparator.Mode; /** * Sets the value of the 'mode' property. */ - public setMode(mode: org.bukkit.block.data.type.Comparator.Mode): void; + setMode(mode: org.bukkit.block.data.type.Comparator.Mode): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts index 3785414e..435e9be1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.CoralWallFan.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class CoralWallFan { + // @ts-ignore + interface CoralWallFan extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts index 3330a8fd..17b83034 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.DaylightDetector.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class DaylightDetector { + // @ts-ignore + interface DaylightDetector extends org.bukkit.block.data.AnaloguePowerable { /** * Gets the value of the 'inverted' property. */ - public isInverted(): boolean; + isInverted(): boolean; /** * Sets the value of the 'inverted' property. */ - public setInverted(inverted: boolean): void; + setInverted(inverted: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts index 979df898..1612fcf1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Dispenser.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Dispenser { + // @ts-ignore + interface Dispenser extends org.bukkit.block.data.Directional { /** * Gets the value of the 'triggered' property. */ - public isTriggered(): boolean; + isTriggered(): boolean; /** * Sets the value of the 'triggered' property. */ - public setTriggered(triggered: boolean): void; + setTriggered(triggered: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts index 22239c42..84d5f6c3 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.Hinge.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Door { - class Hinge { + // @ts-ignore + class Hinge { public static LEFT: org.bukkit.block.data.type.Door.Hinge; public static RIGHT: org.bukkit.block.data.type.Door.Hinge; public static values(): org.bukkit.block.data.type.Door.Hinge[]; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts index 6e78f351..f478e986 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Door.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Door { + // @ts-ignore + interface Door extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable { /** * Gets the value of the 'hinge' property. */ - public getHinge(): org.bukkit.block.data.type.Door.Hinge; + getHinge(): org.bukkit.block.data.type.Door.Hinge; /** * Sets the value of the 'hinge' property. */ - public setHinge(hinge: org.bukkit.block.data.type.Door.Hinge): void; + setHinge(hinge: org.bukkit.block.data.type.Door.Hinge): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts index 9d128bdd..81921289 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.EndPortalFrame.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class EndPortalFrame { + // @ts-ignore + interface EndPortalFrame extends org.bukkit.block.data.Directional { /** * Gets the value of the 'eye' property. */ - public hasEye(): boolean; + hasEye(): boolean; /** * Sets the value of the 'eye' property. */ - public setEye(eye: boolean): void; + setEye(eye: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts index 97775649..d9e40884 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.EnderChest.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class EnderChest { + // @ts-ignore + interface EnderChest extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts index 9e65196c..4b239d23 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Farmland.ts @@ -3,19 +3,20 @@ declare namespace org { namespace block { namespace data { namespace type { - class Farmland { + // @ts-ignore + interface Farmland extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'moisture' property. */ - public getMoisture(): number; + getMoisture(): number; /** * Sets the value of the 'moisture' property. */ - public setMoisture(moisture: number): void; + setMoisture(moisture: number): void; /** * Gets the maximum allowed value of the 'moisture' property. */ - public getMaximumMoisture(): number; + getMaximumMoisture(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts index 70e16f48..6e8292f7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fence.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Fence { + // @ts-ignore + interface Fence extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts index 8e024049..e6c54f57 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Fire.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Fire { + // @ts-ignore + interface Fire extends org.bukkit.block.data.Ageable, org.bukkit.block.data.MultipleFacing { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts index 0cd9c7e8..3dcaf6b7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Furnace.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Furnace { + // @ts-ignore + interface Furnace extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts index af922fef..bb9fbd84 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Gate.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Gate { + // @ts-ignore + interface Gate extends org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable { /** * Gets the value of the 'in_wall' property. */ - public isInWall(): boolean; + isInWall(): boolean; /** * Sets the value of the 'in_wall' property. */ - public setInWall(inWall: boolean): void; + setInWall(inWall: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts index 6266a241..8f7b794e 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.GlassPane.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class GlassPane { + // @ts-ignore + interface GlassPane extends org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts index b0522b72..4c308561 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Hopper.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Hopper { + // @ts-ignore + interface Hopper extends org.bukkit.block.data.Directional { /** * Gets the value of the 'enabled' property. */ - public isEnabled(): boolean; + isEnabled(): boolean; /** * Sets the value of the 'enabled' property. */ - public setEnabled(enabled: boolean): void; + setEnabled(enabled: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts index c1731588..47976147 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Jukebox.ts @@ -3,11 +3,12 @@ declare namespace org { namespace block { namespace data { namespace type { - class Jukebox { + // @ts-ignore + interface Jukebox extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'has_record' property. */ - public hasRecord(): boolean; + hasRecord(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts index b61d876c..a974dea9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Ladder.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Ladder { + // @ts-ignore + interface Ladder extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts index d7c301c0..5e6cec88 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lantern.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Lantern { + // @ts-ignore + interface Lantern { /** * Gets the value of the 'hanging' property. */ - public isHanging(): boolean; + isHanging(): boolean; /** * Sets the value of the 'hanging' property. */ - public setHanging(hanging: boolean): void; + setHanging(hanging: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts index ec508bc1..51ac3647 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Leaves.ts @@ -3,23 +3,24 @@ declare namespace org { namespace block { namespace data { namespace type { - class Leaves { + // @ts-ignore + interface Leaves extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'persistent' property. */ - public isPersistent(): boolean; + isPersistent(): boolean; /** * Sets the value of the 'persistent' property. */ - public setPersistent(persistent: boolean): void; + setPersistent(persistent: boolean): void; /** * Gets the value of the 'distance' property. */ - public getDistance(): number; + getDistance(): number; /** * Sets the value of the 'distance' property. */ - public setDistance(distance: number): void; + setDistance(distance: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts index 788aa2b8..48eb126c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Lectern.ts @@ -3,11 +3,12 @@ declare namespace org { namespace block { namespace data { namespace type { - class Lectern { + // @ts-ignore + interface Lectern extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { /** * Gets the value of the 'has_book' property. */ - public hasBook(): boolean; + hasBook(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts index d12a5d82..c20d16e1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.NoteBlock.ts @@ -3,23 +3,24 @@ declare namespace org { namespace block { namespace data { namespace type { - class NoteBlock { + // @ts-ignore + interface NoteBlock extends org.bukkit.block.data.Powerable { /** * Gets the value of the 'instrument' property. */ - public getInstrument(): org.bukkit.Instrument; + getInstrument(): org.bukkit.Instrument; /** * Sets the value of the 'instrument' property. */ - public setInstrument(instrument: org.bukkit.Instrument): void; + setInstrument(instrument: org.bukkit.Instrument): void; /** * Gets the value of the 'note' property. */ - public getNote(): org.bukkit.Note; + getNote(): org.bukkit.Note; /** * Sets the value of the 'note' property. */ - public setNote(note: org.bukkit.Note): void; + setNote(note: org.bukkit.Note): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts index 42a6c167..d1fc78e7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Observer.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Observer { + // @ts-ignore + interface Observer extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts index 100dd73d..55852813 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Piston.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Piston { + // @ts-ignore + interface Piston extends org.bukkit.block.data.Directional { /** * Gets the value of the 'extended' property. */ - public isExtended(): boolean; + isExtended(): boolean; /** * Sets the value of the 'extended' property. */ - public setExtended(extended: boolean): void; + setExtended(extended: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts index 61be80de..d01b2769 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.PistonHead.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class PistonHead { + // @ts-ignore + interface PistonHead extends org.bukkit.block.data.type.TechnicalPiston { /** * Gets the value of the 'short' property. */ - public isShort(): boolean; + isShort(): boolean; /** * Sets the value of the 'short' property. */ - public setShort(_short: boolean): void; + setShort(_short: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts index 73992dae..65a4963b 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneRail.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class RedstoneRail { + // @ts-ignore + interface RedstoneRail extends org.bukkit.block.data.Powerable, org.bukkit.block.data.Rail { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts index 641a442a..dbccd575 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWallTorch.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class RedstoneWallTorch { + // @ts-ignore + interface RedstoneWallTorch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Lightable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts index 6fd6ddc5..c4b078d8 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.Connection.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace RedstoneWire { - class Connection { + // @ts-ignore + class Connection { public static UP: org.bukkit.block.data.type.RedstoneWire.Connection; public static SIDE: org.bukkit.block.data.type.RedstoneWire.Connection; public static NONE: org.bukkit.block.data.type.RedstoneWire.Connection; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts index 07bb0820..9477a561 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.RedstoneWire.ts @@ -3,19 +3,20 @@ declare namespace org { namespace block { namespace data { namespace type { - class RedstoneWire { + // @ts-ignore + interface RedstoneWire extends org.bukkit.block.data.AnaloguePowerable { /** * Checks the type of connection on the specified face. */ - public getFace(face: org.bukkit.block.BlockFace): org.bukkit.block.data.type.RedstoneWire.Connection; + getFace(face: org.bukkit.block.BlockFace): org.bukkit.block.data.type.RedstoneWire.Connection; /** * Sets the type of connection on the specified face. */ - public setFace(face: org.bukkit.block.BlockFace, connection: org.bukkit.block.data.type.RedstoneWire.Connection): void; + setFace(face: org.bukkit.block.BlockFace, connection: org.bukkit.block.data.type.RedstoneWire.Connection): void; /** * Gets all of this faces which may be set on this block. */ - public getAllowedFaces(): any[] /*java.util.Set*/; + getAllowedFaces(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts index 8c945cb8..99bda3e6 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Repeater.ts @@ -3,31 +3,32 @@ declare namespace org { namespace block { namespace data { namespace type { - class Repeater { + // @ts-ignore + interface Repeater extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { /** * Gets the value of the 'delay' property. */ - public getDelay(): number; + getDelay(): number; /** * Sets the value of the 'delay' property. */ - public setDelay(delay: number): void; + setDelay(delay: number): void; /** * Gets the minimum allowed value of the 'delay' property. */ - public getMinimumDelay(): number; + getMinimumDelay(): number; /** * Gets the maximum allowed value of the 'delay' property. */ - public getMaximumDelay(): number; + getMaximumDelay(): number; /** * Gets the value of the 'locked' property. */ - public isLocked(): boolean; + isLocked(): boolean; /** * Sets the value of the 'locked' property. */ - public setLocked(locked: boolean): void; + setLocked(locked: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts index f0e48c86..838312f7 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sapling.ts @@ -3,19 +3,20 @@ declare namespace org { namespace block { namespace data { namespace type { - class Sapling { + // @ts-ignore + interface Sapling extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'stage' property. */ - public getStage(): number; + getStage(): number; /** * Sets the value of the 'stage' property. */ - public setStage(stage: number): void; + setStage(stage: number): void; /** * Gets the maximum allowed value of the 'stage' property. */ - public getMaximumStage(): number; + getMaximumStage(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts index 9bb97bcb..9e57f215 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Scaffolding.ts @@ -3,27 +3,28 @@ declare namespace org { namespace block { namespace data { namespace type { - class Scaffolding { + // @ts-ignore + interface Scaffolding extends org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'bottom' property. */ - public isBottom(): boolean; + isBottom(): boolean; /** * Sets the value of the 'bottom' property. */ - public setBottom(bottom: boolean): void; + setBottom(bottom: boolean): void; /** * Gets the value of the 'distance' property. */ - public getDistance(): number; + getDistance(): number; /** * Sets the value of the 'distance' property. */ - public setDistance(distance: number): void; + setDistance(distance: number): void; /** * Gets the maximum allowed value of the 'distance' property. */ - public getMaximumDistance(): number; + getMaximumDistance(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts index ad2143de..7badead9 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.SeaPickle.ts @@ -3,23 +3,24 @@ declare namespace org { namespace block { namespace data { namespace type { - class SeaPickle { + // @ts-ignore + interface SeaPickle extends org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'pickles' property. */ - public getPickles(): number; + getPickles(): number; /** * Sets the value of the 'pickles' property. */ - public setPickles(pickles: number): void; + setPickles(pickles: number): void; /** * Gets the minimum allowed value of the 'pickles' property. */ - public getMinimumPickles(): number; + getMinimumPickles(): number; /** * Gets the maximum allowed value of the 'pickles' property. */ - public getMaximumPickles(): number; + getMaximumPickles(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts index 7b651f04..ba27875f 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Sign.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class Sign { + // @ts-ignore + interface Sign extends org.bukkit.block.data.Rotatable, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts index 6ff11646..14e6fb5d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.Type.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Slab { - class Type { + // @ts-ignore + class Type { public static TOP: org.bukkit.block.data.type.Slab.Type; public static BOTTOM: org.bukkit.block.data.type.Slab.Type; public static DOUBLE: org.bukkit.block.data.type.Slab.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts index a0588606..c7bb900c 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Slab.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Slab { + // @ts-ignore + interface Slab extends org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'type' property. */ - public getType(): org.bukkit.block.data.type.Slab.Type; + getType(): org.bukkit.block.data.type.Slab.Type; /** * Sets the value of the 'type' property. */ - public setType(type: org.bukkit.block.data.type.Slab.Type): void; + setType(type: org.bukkit.block.data.type.Slab.Type): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts index d3517a40..353d3cec 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Snow.ts @@ -3,23 +3,24 @@ declare namespace org { namespace block { namespace data { namespace type { - class Snow { + // @ts-ignore + interface Snow extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'layers' property. */ - public getLayers(): number; + getLayers(): number; /** * Sets the value of the 'layers' property. */ - public setLayers(layers: number): void; + setLayers(layers: number): void; /** * Gets the minimum allowed value of the 'layers' property. */ - public getMinimumLayers(): number; + getMinimumLayers(): number; /** * Gets the maximum allowed value of the 'layers' property. */ - public getMaximumLayers(): number; + getMaximumLayers(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts index 5c0193ed..f6b8c221 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.Shape.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Stairs { - class Shape { + // @ts-ignore + class Shape { public static STRAIGHT: org.bukkit.block.data.type.Stairs.Shape; public static INNER_LEFT: org.bukkit.block.data.type.Stairs.Shape; public static INNER_RIGHT: org.bukkit.block.data.type.Stairs.Shape; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts index 16ade43e..3f725494 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Stairs.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Stairs { + // @ts-ignore + interface Stairs extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { /** * Gets the value of the 'shape' property. */ - public getShape(): org.bukkit.block.data.type.Stairs.Shape; + getShape(): org.bukkit.block.data.type.Stairs.Shape; /** * Sets the value of the 'shape' property. */ - public setShape(shape: org.bukkit.block.data.type.Stairs.Shape): void; + setShape(shape: org.bukkit.block.data.type.Stairs.Shape): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts index 82841477..814d73f6 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.Mode.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace StructureBlock { - class Mode { + // @ts-ignore + class Mode { public static SAVE: org.bukkit.block.data.type.StructureBlock.Mode; public static LOAD: org.bukkit.block.data.type.StructureBlock.Mode; public static CORNER: org.bukkit.block.data.type.StructureBlock.Mode; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts index ee0ce590..c06008ff 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.StructureBlock.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class StructureBlock { + // @ts-ignore + interface StructureBlock extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'mode' property. */ - public getMode(): org.bukkit.block.data.type.StructureBlock.Mode; + getMode(): org.bukkit.block.data.type.StructureBlock.Mode; /** * Sets the value of the 'mode' property. */ - public setMode(mode: org.bukkit.block.data.type.StructureBlock.Mode): void; + setMode(mode: org.bukkit.block.data.type.StructureBlock.Mode): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts index 63d85b9f..d0c34406 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.Face.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace Switch { - class Face { + // @ts-ignore + class Face { public static FLOOR: org.bukkit.block.data.type.Switch.Face; public static WALL: org.bukkit.block.data.type.Switch.Face; public static CEILING: org.bukkit.block.data.type.Switch.Face; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts index 2bdf62f0..ce1a7b0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Switch.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Switch { + // @ts-ignore + interface Switch extends org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { /** * Gets the value of the 'face' property. */ - public getFace(): org.bukkit.block.data.type.Switch.Face; + getFace(): org.bukkit.block.data.type.Switch.Face; /** * Sets the value of the 'face' property. */ - public setFace(face: org.bukkit.block.data.type.Switch.Face): void; + setFace(face: org.bukkit.block.data.type.Switch.Face): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts index 08188c47..70f6f002 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TNT.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class TNT { + // @ts-ignore + interface TNT extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'unstable' property. */ - public isUnstable(): boolean; + isUnstable(): boolean; /** * Sets the value of the 'unstable' property. */ - public setUnstable(unstable: boolean): void; + setUnstable(unstable: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts index 5b834334..70a062ff 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.Type.ts @@ -4,7 +4,8 @@ declare namespace org { namespace data { namespace type { namespace TechnicalPiston { - class Type { + // @ts-ignore + class Type { public static NORMAL: org.bukkit.block.data.type.TechnicalPiston.Type; public static STICKY: org.bukkit.block.data.type.TechnicalPiston.Type; public static values(): org.bukkit.block.data.type.TechnicalPiston.Type[]; diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts index 18f3cec4..a02c228b 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TechnicalPiston.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class TechnicalPiston { + // @ts-ignore + interface TechnicalPiston extends org.bukkit.block.data.Directional { /** * Gets the value of the 'type' property. */ - public getType(): org.bukkit.block.data.type.TechnicalPiston.Type; + getType(): org.bukkit.block.data.type.TechnicalPiston.Type; /** * Sets the value of the 'type' property. */ - public setType(type: org.bukkit.block.data.type.TechnicalPiston.Type): void; + setType(type: org.bukkit.block.data.type.TechnicalPiston.Type): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts index b342ba2a..957e7991 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TrapDoor.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class TrapDoor { + // @ts-ignore + interface TrapDoor extends org.bukkit.block.data.Bisected, org.bukkit.block.data.Directional, org.bukkit.block.data.Openable, org.bukkit.block.data.Powerable, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts index 4fa4755f..f4906e0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.Tripwire.ts @@ -3,15 +3,16 @@ declare namespace org { namespace block { namespace data { namespace type { - class Tripwire { + // @ts-ignore + interface Tripwire extends org.bukkit.block.data.Attachable, org.bukkit.block.data.MultipleFacing, org.bukkit.block.data.Powerable { /** * Gets the value of the 'disarmed' property. */ - public isDisarmed(): boolean; + isDisarmed(): boolean; /** * Sets the value of the 'disarmed' property. */ - public setDisarmed(disarmed: boolean): void; + setDisarmed(disarmed: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts index 8aa54845..1c4b058d 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TripwireHook.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class TripwireHook { + // @ts-ignore + interface TripwireHook extends org.bukkit.block.data.Attachable, org.bukkit.block.data.Directional, org.bukkit.block.data.Powerable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts index 9da8b221..b343a0a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.TurtleEgg.ts @@ -3,35 +3,36 @@ declare namespace org { namespace block { namespace data { namespace type { - class TurtleEgg { + // @ts-ignore + interface TurtleEgg extends org.bukkit.block.data.BlockData { /** * Gets the value of the 'eggs' property. */ - public getEggs(): number; + getEggs(): number; /** * Sets the value of the 'eggs' property. */ - public setEggs(eggs: number): void; + setEggs(eggs: number): void; /** * Gets the minimum allowed value of the 'eggs' property. */ - public getMinimumEggs(): number; + getMinimumEggs(): number; /** * Gets the maximum allowed value of the 'eggs' property. */ - public getMaximumEggs(): number; + getMaximumEggs(): number; /** * Gets the value of the 'hatch' property. */ - public getHatch(): number; + getHatch(): number; /** * Sets the value of the 'hatch' property. */ - public setHatch(hatch: number): void; + setHatch(hatch: number): void; /** * Gets the maximum allowed value of the 'hatch' property. */ - public getMaximumHatch(): number; + getMaximumHatch(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts b/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts index 02d0fc71..81cee2be 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.data.type.WallSign.ts @@ -3,7 +3,8 @@ declare namespace org { namespace block { namespace data { namespace type { - class WallSign { + // @ts-ignore + interface WallSign extends org.bukkit.block.data.Directional, org.bukkit.block.data.Waterlogged { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts index cc18ce2b..4a2376c1 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.structure.Mirror.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace block { namespace structure { - class Mirror { + // @ts-ignore + class Mirror { public static NONE: org.bukkit.block.structure.Mirror; public static LEFT_RIGHT: org.bukkit.block.structure.Mirror; public static FRONT_BACK: org.bukkit.block.structure.Mirror; diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts index a6d124c9..6c484841 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.structure.StructureRotation.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace block { namespace structure { - class StructureRotation { + // @ts-ignore + class StructureRotation { public static NONE: org.bukkit.block.structure.StructureRotation; public static CLOCKWISE_90: org.bukkit.block.structure.StructureRotation; public static CLOCKWISE_180: org.bukkit.block.structure.StructureRotation; diff --git a/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts b/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts index d8a4c37e..ad7618dc 100644 --- a/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts +++ b/packages/bukkit/src/typings/org.bukkit.block.structure.UsageMode.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace block { namespace structure { - class UsageMode { + // @ts-ignore + class UsageMode { public static SAVE: org.bukkit.block.structure.UsageMode; public static LOAD: org.bukkit.block.structure.UsageMode; public static CORNER: org.bukkit.block.structure.UsageMode; diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts index 83ab70ee..72b4a8b6 100644 --- a/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts +++ b/packages/bukkit/src/typings/org.bukkit.boss.BarColor.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace boss { - class BarColor { + // @ts-ignore + class BarColor { public static PINK: org.bukkit.boss.BarColor; public static BLUE: org.bukkit.boss.BarColor; public static RED: org.bukkit.boss.BarColor; diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts index 8f3bd52d..bf5e21d3 100644 --- a/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts +++ b/packages/bukkit/src/typings/org.bukkit.boss.BarFlag.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace boss { - class BarFlag { + // @ts-ignore + class BarFlag { public static DARKEN_SKY: org.bukkit.boss.BarFlag; public static PLAY_BOSS_MUSIC: org.bukkit.boss.BarFlag; public static CREATE_FOG: org.bukkit.boss.BarFlag; diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts b/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts index 8273acdd..d58938c7 100644 --- a/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts +++ b/packages/bukkit/src/typings/org.bukkit.boss.BarStyle.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace boss { - class BarStyle { + // @ts-ignore + class BarStyle { public static SOLID: org.bukkit.boss.BarStyle; public static SEGMENTED_6: org.bukkit.boss.BarStyle; public static SEGMENTED_10: org.bukkit.boss.BarStyle; diff --git a/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts b/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts index 342dbb14..cab6fe04 100644 --- a/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts +++ b/packages/bukkit/src/typings/org.bukkit.boss.BossBar.ts @@ -1,85 +1,86 @@ declare namespace org { namespace bukkit { namespace boss { - class BossBar { + // @ts-ignore + interface BossBar { /** * Returns the title of this boss bar */ - public getTitle(): string; + getTitle(): string; /** * Sets the title of this boss bar */ - public setTitle(title: string): void; + setTitle(title: string): void; /** * Returns the color of this boss bar */ - public getColor(): org.bukkit.boss.BarColor; + getColor(): org.bukkit.boss.BarColor; /** * Sets the color of this boss bar. */ - public setColor(color: org.bukkit.boss.BarColor): void; + setColor(color: org.bukkit.boss.BarColor): void; /** * Returns the style of this boss bar */ - public getStyle(): org.bukkit.boss.BarStyle; + getStyle(): org.bukkit.boss.BarStyle; /** * Sets the bar style of this boss bar */ - public setStyle(style: org.bukkit.boss.BarStyle): void; + setStyle(style: org.bukkit.boss.BarStyle): void; /** * Remove an existing flag on this boss bar */ - public removeFlag(flag: org.bukkit.boss.BarFlag): void; + removeFlag(flag: org.bukkit.boss.BarFlag): void; /** * Add an optional flag to this boss bar */ - public addFlag(flag: org.bukkit.boss.BarFlag): void; + addFlag(flag: org.bukkit.boss.BarFlag): void; /** * Returns whether this boss bar as the passed flag set */ - public hasFlag(flag: org.bukkit.boss.BarFlag): boolean; + hasFlag(flag: org.bukkit.boss.BarFlag): boolean; /** * Sets the progress of the bar. Values should be between 0.0 (empty) and * 1.0 (full) */ - public setProgress(progress: number): void; + setProgress(progress: number): void; /** * Returns the progress of the bar between 0.0 and 1.0 */ - public getProgress(): number; + getProgress(): number; /** * Adds the player to this boss bar causing it to display on their screen. */ - public addPlayer(player: org.bukkit.entity.Player): void; + addPlayer(player: org.bukkit.entity.Player): void; /** * Removes the player from this boss bar causing it to be removed from their * screen. */ - public removePlayer(player: org.bukkit.entity.Player): void; + removePlayer(player: org.bukkit.entity.Player): void; /** * Removes all players from this boss bar */ - public removeAll(): void; + removeAll(): void; /** * Returns all players viewing this boss bar */ - public getPlayers(): any[] /*java.util.List*/; + getPlayers(): any[] /*java.util.List*/; /** * Set if the boss bar is displayed to attached players. */ - public setVisible(visible: boolean): void; + setVisible(visible: boolean): void; /** * Return if the boss bar is displayed to attached players. */ - public isVisible(): boolean; + isVisible(): boolean; /** * Shows the previously hidden boss bar to all attached players */ - public show(): void; + show(): void; /** * Hides this boss bar from all attached players */ - public hide(): void; + hide(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts b/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts index 65b640d6..add6d544 100644 --- a/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts +++ b/packages/bukkit/src/typings/org.bukkit.boss.KeyedBossBar.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace boss { - class KeyedBossBar { + // @ts-ignore + interface KeyedBossBar extends org.bukkit.boss.BossBar, org.bukkit.Keyed { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts index 04215a2e..0a6fc4b9 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.BlockCommandSender.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace command { - class BlockCommandSender { + // @ts-ignore + interface BlockCommandSender extends org.bukkit.command.CommandSender { /** * Returns the block this command sender belongs to */ - public getBlock(): org.bukkit.block.Block; + getBlock(): org.bukkit.block.Block; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.Command.ts b/packages/bukkit/src/typings/org.bukkit.command.Command.ts index a4b1be89..b4a904a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.Command.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.Command.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace command { + // @ts-ignore abstract class Command { constructor(name: string) constructor(name: string, description: string, usageMessage: string, aliases: any[] /*java.util.List*/) diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts index 1c5f47d4..4f0c718e 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.CommandException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class CommandException { + // @ts-ignore + class CommandException { /** * Creates a new instance of CommandException without detail * message. diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts index 57a8e4fe..f28f5e88 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.CommandExecutor.ts @@ -1,14 +1,15 @@ declare namespace org { namespace bukkit { namespace command { - class CommandExecutor { + // @ts-ignore + interface CommandExecutor { /** * Executes the given command, returning its success. *
* If false is returned, then the "usage" plugin.yml entry for this command * (if defined) will be sent to the player. */ - public onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean; + onCommand(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, label: string, args: string): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts index 6d20c644..5a43fda6 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.CommandMap.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class CommandMap { + // @ts-ignore + interface CommandMap { /** * Registers all the commands belonging to a certain plugin. *

@@ -13,7 +14,7 @@ declare namespace org { * registered * */ - public registerAll(fallbackPrefix: string, commands: any[] /*java.util.List*/): void; + registerAll(fallbackPrefix: string, commands: any[] /*java.util.List*/): void; /** * Registers a command. Returns true on success; false if name is already * taken and fallback had to be used. @@ -26,7 +27,7 @@ declare namespace org { * registered * */ - public register(label: string, fallbackPrefix: string, command: org.bukkit.command.Command): boolean; + register(label: string, fallbackPrefix: string, command: org.bukkit.command.Command): boolean; /** * Registers a command. Returns true on success; false if name is already * taken and fallback had to be used. @@ -39,31 +40,31 @@ declare namespace org { * registered * */ - public register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean; + register(fallbackPrefix: string, command: org.bukkit.command.Command): boolean; /** * Looks for the requested command and executes it if found. */ - public dispatch(sender: org.bukkit.command.CommandSender, cmdLine: string): boolean; + dispatch(sender: org.bukkit.command.CommandSender, cmdLine: string): boolean; /** * Clears all registered commands. */ - public clearCommands(): void; + clearCommands(): void; /** * Gets the command registered to the specified name */ - public getCommand(name: string): org.bukkit.command.Command; + getCommand(name: string): org.bukkit.command.Command; /** * Looks for the requested command and executes an appropriate * tab-completer if found. This method will also tab-complete partial * commands. */ - public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): any[] /*java.util.List*/; + tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string): any[] /*java.util.List*/; /** * Looks for the requested command and executes an appropriate * tab-completer if found. This method will also tab-complete partial * commands. */ - public tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): any[] /*java.util.List*/; + tabComplete(sender: org.bukkit.command.CommandSender, cmdLine: string, location: org.bukkit.Location): any[] /*java.util.List*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts index 327b3188..3a84549a 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.CommandSender.ts @@ -1,23 +1,23 @@ declare namespace org { namespace bukkit { namespace command { - class CommandSender { + interface CommandSender extends org.bukkit.permissions.Permissible { /** * Sends this sender a message */ - public sendMessage(message: string): void; + sendMessage(message: string): void; /** * Sends this sender multiple messages */ - public sendMessage(messages: string): void; + sendMessage(messages: string): void; /** * Returns the server instance that this command is running on */ - public getServer(): org.bukkit.Server; + getServer(): org.bukkit.Server; /** * Gets the name of this command sender */ - public getName(): string; + getName(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts index 05d9b110..8a049adc 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.ConsoleCommandSender.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class ConsoleCommandSender { + // @ts-ignore + interface ConsoleCommandSender extends org.bukkit.command.CommandSender, org.bukkit.conversations.Conversable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts b/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts index 79918f3d..89d9b79d 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.FormattedCommandAlias.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class FormattedCommandAlias { + // @ts-ignore + class FormattedCommandAlias { constructor(alias: string, formatStrings: string) public execute(sender: org.bukkit.command.CommandSender, commandLabel: string, args: string): boolean; } diff --git a/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts b/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts index 289f0f3a..9444e838 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.MultipleCommandAlias.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class MultipleCommandAlias { + // @ts-ignore + class MultipleCommandAlias { constructor(name: string, commands: org.bukkit.command.Command) /** * Gets the commands associated with the multi-command alias. diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts index 046034ea..db51dbff 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.PluginCommand.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class PluginCommand { + // @ts-ignore + class PluginCommand implements org.bukkit.command.PluginIdentifiableCommand { constructor(name: string, owner: org.bukkit.plugin.Plugin) /** * Executes the command, returning its success diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts index ab4b3294..4af2f3bd 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.PluginCommandYamlParser.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class PluginCommandYamlParser { + // @ts-ignore + class PluginCommandYamlParser { constructor() public static parse(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/; } diff --git a/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts index ae0b5606..e3fe337d 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.PluginIdentifiableCommand.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace command { - class PluginIdentifiableCommand { + // @ts-ignore + interface PluginIdentifiableCommand { /** * Gets the owner of this PluginIdentifiableCommand. */ - public getPlugin(): org.bukkit.plugin.Plugin; + getPlugin(): org.bukkit.plugin.Plugin; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts index 1d055cf5..47ac16af 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.ProxiedCommandSender.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace command { - class ProxiedCommandSender { + // @ts-ignore + interface ProxiedCommandSender extends org.bukkit.command.CommandSender { /** * Returns the CommandSender which triggered this proxied command */ - public getCaller(): org.bukkit.command.CommandSender; + getCaller(): org.bukkit.command.CommandSender; /** * Returns the CommandSender which is being used to call the command */ - public getCallee(): org.bukkit.command.CommandSender; + getCallee(): org.bukkit.command.CommandSender; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts b/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts index dbc08078..82d50bc4 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.RemoteConsoleCommandSender.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class RemoteConsoleCommandSender { + // @ts-ignore + interface RemoteConsoleCommandSender extends org.bukkit.command.CommandSender { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts b/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts index 8ba5894d..9f72782a 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.SimpleCommandMap.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class SimpleCommandMap { + // @ts-ignore + class SimpleCommandMap implements org.bukkit.command.CommandMap { constructor(server: org.bukkit.Server) protected knownCommands: Map /*java.util.Map*/; public setFallbackCommands(): void; diff --git a/packages/bukkit/src/typings/org.bukkit.command.TabCompleter.ts b/packages/bukkit/src/typings/org.bukkit.command.TabCompleter.ts index 24e9e69e..a5ea18bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.TabCompleter.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.TabCompleter.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace command { - class TabCompleter { + // @ts-ignore + interface TabCompleter { /** * Requests a list of possible completions for a command argument. */ - public onTabComplete(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, alias: string, args: string): any[] /*java.util.List*/; + onTabComplete(sender: org.bukkit.command.CommandSender, command: org.bukkit.command.Command, alias: string, args: string): any[] /*java.util.List*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.TabExecutor.ts b/packages/bukkit/src/typings/org.bukkit.command.TabExecutor.ts index 5fe7c355..6d4b86a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.TabExecutor.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.TabExecutor.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace command { - class TabExecutor { + // @ts-ignore + interface TabExecutor extends org.bukkit.command.TabCompleter, org.bukkit.command.CommandExecutor { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.BukkitCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.BukkitCommand.ts index 3abd17b1..5904eff7 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.BukkitCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.BukkitCommand.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { + // @ts-ignore abstract class BukkitCommand { constructor(name: string) constructor(name: string, description: string, usageMessage: string, aliases: any[] /*java.util.List*/) diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.HelpCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.HelpCommand.ts index edd1bac2..2f312c2f 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.HelpCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.HelpCommand.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { - class HelpCommand { + // @ts-ignore + class HelpCommand { constructor() public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/; diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.PluginsCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.PluginsCommand.ts index 47900426..42721723 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.PluginsCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.PluginsCommand.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { - class PluginsCommand { + // @ts-ignore + class PluginsCommand { constructor(name: string) public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/; diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.ReloadCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.ReloadCommand.ts index 7075f275..3a30d1e8 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.ReloadCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.ReloadCommand.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { - class ReloadCommand { + // @ts-ignore + class ReloadCommand { constructor(name: string) public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/; diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.TimingsCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.TimingsCommand.ts index a9189ea9..cd6438bf 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.TimingsCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.TimingsCommand.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { - class TimingsCommand { + // @ts-ignore + class TimingsCommand { constructor(name: string) public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/; diff --git a/packages/bukkit/src/typings/org.bukkit.command.defaults.VersionCommand.ts b/packages/bukkit/src/typings/org.bukkit.command.defaults.VersionCommand.ts index 05076eea..ebbcb7db 100644 --- a/packages/bukkit/src/typings/org.bukkit.command.defaults.VersionCommand.ts +++ b/packages/bukkit/src/typings/org.bukkit.command.defaults.VersionCommand.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace command { namespace defaults { - class VersionCommand { + // @ts-ignore + class VersionCommand { constructor(name: string) public execute(sender: org.bukkit.command.CommandSender, currentAlias: string, args: string): boolean; public tabComplete(sender: org.bukkit.command.CommandSender, alias: string, args: string): any[] /*java.util.List*/; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.Configuration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.Configuration.ts index d8cb9204..034a7355 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.Configuration.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.Configuration.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class Configuration { + // @ts-ignore + interface Configuration extends org.bukkit.configuration.ConfigurationSection { /** * Sets the default value of the given path as provided. *

@@ -12,7 +13,7 @@ declare namespace org { * If value is null, the value will be removed from the default * Configuration source. */ - public addDefault(path: string, value: any): void; + addDefault(path: string, value: any): void; /** * Sets the default values of the given paths as provided. *

@@ -20,7 +21,7 @@ declare namespace org { * collection, then a new {@link MemoryConfiguration} will be created to * hold the new default values. */ - public addDefaults(defaults: Map /*java.util.Map*/): void; + addDefaults(defaults: Map /*java.util.Map*/): void; /** * Sets the default values of the given paths as provided. *

@@ -33,14 +34,14 @@ declare namespace org { * you require this, you should set the default source with {@link * #setDefaults(org.bukkit.configuration.Configuration)}. */ - public addDefaults(defaults: org.bukkit.configuration.Configuration): void; + addDefaults(defaults: org.bukkit.configuration.Configuration): void; /** * Sets the source of all default values for this {@link Configuration}. *

* If a previous source was set, or previous default values were defined, * then they will not be copied to the new source. */ - public setDefaults(defaults: org.bukkit.configuration.Configuration): void; + setDefaults(defaults: org.bukkit.configuration.Configuration): void; /** * Gets the source {@link Configuration} for this configuration. *

@@ -48,13 +49,13 @@ declare namespace org { * a {@link MemoryConfiguration} will be returned. If no source was set * and no defaults were set, then this method will return null. */ - public getDefaults(): org.bukkit.configuration.Configuration; + getDefaults(): org.bukkit.configuration.Configuration; /** * Gets the {@link ConfigurationOptions} for this {@link Configuration}. *

* All setters through this method are chainable. */ - public options(): org.bukkit.configuration.ConfigurationOptions; + options(): org.bukkit.configuration.ConfigurationOptions; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts index 328702b1..dea11a5a 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationOptions.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class ConfigurationOptions { + // @ts-ignore + class ConfigurationOptions { constructor(configuration: org.bukkit.configuration.Configuration) /** * Returns the {@link Configuration} that this object is responsible for. diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts index 3538d61a..add6e6c4 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.ConfigurationSection.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class ConfigurationSection { + // @ts-ignore + interface ConfigurationSection { /** * Gets a set containing all keys in this section. *

@@ -12,7 +13,7 @@ declare namespace org { * If deep is set to false, then this will contain only the keys of any * direct children, and not their own children. */ - public getKeys(deep: boolean): any[] /*java.util.Set*/; + getKeys(deep: boolean): any[] /*java.util.Set*/; /** * Gets a Map containing all keys and their values for this section. *

@@ -23,14 +24,14 @@ declare namespace org { * If deep is set to false, then this will contain only the keys and * values of any direct children, and not their own children. */ - public getValues(deep: boolean): Map /*java.util.Map*/; + getValues(deep: boolean): Map /*java.util.Map*/; /** * Checks if this {@link ConfigurationSection} contains the given path. *

* If the value for the requested path does not exist but a default value * has been specified, this will return true. */ - public contains(path: string): boolean; + contains(path: string): boolean; /** * Checks if this {@link ConfigurationSection} contains the given path. *

@@ -41,7 +42,7 @@ declare namespace org { * If a boolean parameter of false has been specified, true will only be * returned if there is a set value for the specified path. */ - public contains(path: string, ignoreDefault: boolean): boolean; + contains(path: string, ignoreDefault: boolean): boolean; /** * Checks if this {@link ConfigurationSection} has a value set for the * given path. @@ -49,7 +50,7 @@ declare namespace org { * If the value for the requested path does not exist but a default value * has been specified, this will still return false. */ - public isSet(path: string): boolean; + isSet(path: string): boolean; /** * Gets the path of this {@link ConfigurationSection} from its root {@link * Configuration} @@ -63,7 +64,7 @@ declare namespace org { * To retrieve the single name of this section, that is, the final part of * the path returned by this method, you may use {@link #getName()}. */ - public getCurrentPath(): string; + getCurrentPath(): string; /** * Gets the name of this individual {@link ConfigurationSection}, in the * path. @@ -71,7 +72,7 @@ declare namespace org { * This will always be the final part of {@link #getCurrentPath()}, unless * the section is orphaned. */ - public getName(): string; + getName(): string; /** * Gets the root {@link Configuration} that contains this {@link * ConfigurationSection} @@ -82,7 +83,7 @@ declare namespace org { * If the section is no longer contained within its root for any reason, * such as being replaced with a different value, this may return null. */ - public getRoot(): org.bukkit.configuration.Configuration; + getRoot(): org.bukkit.configuration.Configuration; /** * Gets the parent {@link ConfigurationSection} that directly contains * this {@link ConfigurationSection}. @@ -92,7 +93,7 @@ declare namespace org { * If the section is no longer contained within its parent for any reason, * such as being replaced with a different value, this may return null. */ - public getParent(): org.bukkit.configuration.ConfigurationSection; + getParent(): org.bukkit.configuration.ConfigurationSection; /** * Gets the requested Object by path. *

@@ -100,7 +101,7 @@ declare namespace org { * this will return the default value. If the Object does not exist and no * default value was specified, this will return null. */ - public get(path: string): any; + get(path: string): any; /** * Gets the requested Object by path, returning a default value if not * found. @@ -109,7 +110,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public get(path: string, def: any): any; + get(path: string, def: any): any; /** * Sets the specified path to the given value. *

@@ -121,7 +122,7 @@ declare namespace org { * you to store {@link Configuration}s or {@link ConfigurationSection}s, * please use {@link #createSection(java.lang.String)} for that. */ - public set(path: string, value: any): void; + set(path: string, value: any): void; /** * Creates an empty {@link ConfigurationSection} at the specified path. *

@@ -129,7 +130,7 @@ declare namespace org { * the previous value was itself a {@link ConfigurationSection}, it will * be orphaned. */ - public createSection(path: string): org.bukkit.configuration.ConfigurationSection; + createSection(path: string): org.bukkit.configuration.ConfigurationSection; /** * Creates a {@link ConfigurationSection} at the specified path, with * specified values. @@ -138,7 +139,7 @@ declare namespace org { * the previous value was itself a {@link ConfigurationSection}, it will * be orphaned. */ - public createSection(path: string, map: Map /*java.util.Map*/): org.bukkit.configuration.ConfigurationSection; + createSection(path: string, map: Map /*java.util.Map*/): org.bukkit.configuration.ConfigurationSection; /** * Gets the requested String by path. *

@@ -146,7 +147,7 @@ declare namespace org { * this will return the default value. If the String does not exist and no * default value was specified, this will return null. */ - public getString(path: string): string; + getString(path: string): string; /** * Gets the requested String by path, returning a default value if not * found. @@ -155,7 +156,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getString(path: string, def: string): string; + getString(path: string, def: string): string; /** * Checks if the specified path is a String. *

@@ -164,7 +165,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a String and return appropriately. */ - public isString(path: string): boolean; + isString(path: string): boolean; /** * Gets the requested int by path. *

@@ -172,7 +173,7 @@ declare namespace org { * will return the default value. If the int does not exist and no default * value was specified, this will return 0. */ - public getInt(path: string): number; + getInt(path: string): number; /** * Gets the requested int by path, returning a default value if not found. *

@@ -180,7 +181,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getInt(path: string, def: number): number; + getInt(path: string, def: number): number; /** * Checks if the specified path is an int. *

@@ -189,7 +190,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a int and return appropriately. */ - public isInt(path: string): boolean; + isInt(path: string): boolean; /** * Gets the requested boolean by path. *

@@ -197,7 +198,7 @@ declare namespace org { * this will return the default value. If the boolean does not exist and * no default value was specified, this will return false. */ - public getBoolean(path: string): boolean; + getBoolean(path: string): boolean; /** * Gets the requested boolean by path, returning a default value if not * found. @@ -206,7 +207,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getBoolean(path: string, def: boolean): boolean; + getBoolean(path: string, def: boolean): boolean; /** * Checks if the specified path is a boolean. *

@@ -215,7 +216,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a boolean and return appropriately. */ - public isBoolean(path: string): boolean; + isBoolean(path: string): boolean; /** * Gets the requested double by path. *

@@ -223,7 +224,7 @@ declare namespace org { * this will return the default value. If the double does not exist and no * default value was specified, this will return 0. */ - public getDouble(path: string): number; + getDouble(path: string): number; /** * Gets the requested double by path, returning a default value if not * found. @@ -232,7 +233,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getDouble(path: string, def: number): number; + getDouble(path: string, def: number): number; /** * Checks if the specified path is a double. *

@@ -241,7 +242,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a double and return appropriately. */ - public isDouble(path: string): boolean; + isDouble(path: string): boolean; /** * Gets the requested long by path. *

@@ -249,7 +250,7 @@ declare namespace org { * will return the default value. If the long does not exist and no * default value was specified, this will return 0. */ - public getLong(path: string): number; + getLong(path: string): number; /** * Gets the requested long by path, returning a default value if not * found. @@ -258,7 +259,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getLong(path: string, def: number): number; + getLong(path: string, def: number): number; /** * Checks if the specified path is a long. *

@@ -267,7 +268,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a long and return appropriately. */ - public isLong(path: string): boolean; + isLong(path: string): boolean; /** * Gets the requested List by path. *

@@ -275,7 +276,7 @@ declare namespace org { * will return the default value. If the List does not exist and no * default value was specified, this will return null. */ - public getList(path: string): any[] /*java.util.List*/; + getList(path: string): any[] /*java.util.List*/; /** * Gets the requested List by path, returning a default value if not * found. @@ -284,7 +285,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getList(path: string, def: any[] /*java.util.List*/): any[] /*java.util.List*/; + getList(path: string, def: any[] /*java.util.List*/): any[] /*java.util.List*/; /** * Checks if the specified path is a List. *

@@ -293,7 +294,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a List and return appropriately. */ - public isList(path: string): boolean; + isList(path: string): boolean; /** * Gets the requested List of String by path. *

@@ -304,7 +305,7 @@ declare namespace org { * This method will attempt to cast any values into a String if possible, * but may miss any values out if they are not compatible. */ - public getStringList(path: string): any[] /*java.util.List*/; + getStringList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Integer by path. *

@@ -315,7 +316,7 @@ declare namespace org { * This method will attempt to cast any values into a Integer if possible, * but may miss any values out if they are not compatible. */ - public getIntegerList(path: string): any[] /*java.util.List*/; + getIntegerList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Boolean by path. *

@@ -326,7 +327,7 @@ declare namespace org { * This method will attempt to cast any values into a Boolean if possible, * but may miss any values out if they are not compatible. */ - public getBooleanList(path: string): any[] /*java.util.List*/; + getBooleanList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Double by path. *

@@ -337,7 +338,7 @@ declare namespace org { * This method will attempt to cast any values into a Double if possible, * but may miss any values out if they are not compatible. */ - public getDoubleList(path: string): any[] /*java.util.List*/; + getDoubleList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Float by path. *

@@ -348,7 +349,7 @@ declare namespace org { * This method will attempt to cast any values into a Float if possible, * but may miss any values out if they are not compatible. */ - public getFloatList(path: string): any[] /*java.util.List*/; + getFloatList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Long by path. *

@@ -359,7 +360,7 @@ declare namespace org { * This method will attempt to cast any values into a Long if possible, * but may miss any values out if they are not compatible. */ - public getLongList(path: string): any[] /*java.util.List*/; + getLongList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Byte by path. *

@@ -370,7 +371,7 @@ declare namespace org { * This method will attempt to cast any values into a Byte if possible, * but may miss any values out if they are not compatible. */ - public getByteList(path: string): any[] /*java.util.List*/; + getByteList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Character by path. *

@@ -381,7 +382,7 @@ declare namespace org { * This method will attempt to cast any values into a Character if * possible, but may miss any values out if they are not compatible. */ - public getCharacterList(path: string): any[] /*java.util.List*/; + getCharacterList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Short by path. *

@@ -392,7 +393,7 @@ declare namespace org { * This method will attempt to cast any values into a Short if possible, * but may miss any values out if they are not compatible. */ - public getShortList(path: string): any[] /*java.util.List*/; + getShortList(path: string): any[] /*java.util.List*/; /** * Gets the requested List of Maps by path. *

@@ -403,7 +404,7 @@ declare namespace org { * This method will attempt to cast any values into a Map if possible, but * may miss any values out if they are not compatible. */ - public getMapList(path: string): any[] /*java.util.List*/; + getMapList(path: string): any[] /*java.util.List*/; /** * Gets the requested object at the given path. * If the Object does not exist but a default value has been specified, this @@ -415,7 +416,7 @@ declare namespace org { * Objects to Strings. However, #getObject(path, Boolean.class) is * equivalent to {@link #getBoolean(String) #getBoolean(path)} for example. */ - public getObject(path: string, clazz: any): any; + getObject(path: string, clazz: any): any; /** * Gets the requested object at the given path, returning a default value if * not found @@ -430,7 +431,7 @@ declare namespace org { * Boolean.class, def) is equivalent to {@link #getBoolean(String, boolean) #getBoolean(path, * def)} for example. */ - public getObject(path: string, clazz: any, def: any): any; + getObject(path: string, clazz: any, def: any): any; /** * Gets the requested {@link ConfigurationSerializable} object at the given * path. @@ -438,7 +439,7 @@ declare namespace org { * will return the default value. If the Object does not exist and no * default value was specified, this will return null. */ - public getSerializable(path: string, clazz: any): org.bukkit.configuration.serialization.ConfigurationSerializable; + getSerializable(path: string, clazz: any): org.bukkit.configuration.serialization.ConfigurationSerializable; /** * Gets the requested {@link ConfigurationSerializable} object at the given * path, returning a default value if not found @@ -446,7 +447,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getSerializable(path: string, clazz: any, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable; + getSerializable(path: string, clazz: any, def: org.bukkit.configuration.serialization.ConfigurationSerializable): org.bukkit.configuration.serialization.ConfigurationSerializable; /** * Gets the requested Vector by path. *

@@ -454,7 +455,7 @@ declare namespace org { * this will return the default value. If the Vector does not exist and no * default value was specified, this will return null. */ - public getVector(path: string): org.bukkit.util.Vector; + getVector(path: string): org.bukkit.util.Vector; /** * Gets the requested {@link Vector} by path, returning a default value if * not found. @@ -463,7 +464,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector; + getVector(path: string, def: org.bukkit.util.Vector): org.bukkit.util.Vector; /** * Checks if the specified path is a Vector. *

@@ -472,7 +473,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a Vector and return appropriately. */ - public isVector(path: string): boolean; + isVector(path: string): boolean; /** * Gets the requested OfflinePlayer by path. *

@@ -481,7 +482,7 @@ declare namespace org { * does not exist and no default value was specified, this will return * null. */ - public getOfflinePlayer(path: string): org.bukkit.OfflinePlayer; + getOfflinePlayer(path: string): org.bukkit.OfflinePlayer; /** * Gets the requested {@link OfflinePlayer} by path, returning a default * value if not found. @@ -490,7 +491,7 @@ declare namespace org { * will returned regardless of if a default has been identified in the * root {@link Configuration}. */ - public getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer; + getOfflinePlayer(path: string, def: org.bukkit.OfflinePlayer): org.bukkit.OfflinePlayer; /** * Checks if the specified path is an OfflinePlayer. *

@@ -499,7 +500,7 @@ declare namespace org { * not exist but a default value has been specified, this will check if * that default value is a OfflinePlayer and return appropriately. */ - public isOfflinePlayer(path: string): boolean; + isOfflinePlayer(path: string): boolean; /** * Gets the requested ItemStack by path. *

@@ -507,7 +508,7 @@ declare namespace org { * this will return the default value. If the ItemStack does not exist and * no default value was specified, this will return null. */ - public getItemStack(path: string): org.bukkit.inventory.ItemStack; + getItemStack(path: string): org.bukkit.inventory.ItemStack; /** * Gets the requested {@link ItemStack} by path, returning a default value * if not found. @@ -516,7 +517,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack; + getItemStack(path: string, def: org.bukkit.inventory.ItemStack): org.bukkit.inventory.ItemStack; /** * Checks if the specified path is an ItemStack. *

@@ -525,7 +526,7 @@ declare namespace org { * exist but a default value has been specified, this will check if that * default value is a ItemStack and return appropriately. */ - public isItemStack(path: string): boolean; + isItemStack(path: string): boolean; /** * Gets the requested Color by path. *

@@ -533,7 +534,7 @@ declare namespace org { * this will return the default value. If the Color does not exist and no * default value was specified, this will return null. */ - public getColor(path: string): org.bukkit.Color; + getColor(path: string): org.bukkit.Color; /** * Gets the requested {@link Color} by path, returning a default value if * not found. @@ -542,7 +543,7 @@ declare namespace org { * returned regardless of if a default has been identified in the root * {@link Configuration}. */ - public getColor(path: string, def: org.bukkit.Color): org.bukkit.Color; + getColor(path: string, def: org.bukkit.Color): org.bukkit.Color; /** * Checks if the specified path is a Color. *

@@ -551,7 +552,7 @@ declare namespace org { * but a default value has been specified, this will check if that default * value is a Color and return appropriately. */ - public isColor(path: string): boolean; + isColor(path: string): boolean; /** * Gets the requested ConfigurationSection by path. *

@@ -560,7 +561,7 @@ declare namespace org { * ConfigurationSection does not exist and no default value was specified, * this will return null. */ - public getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection; + getConfigurationSection(path: string): org.bukkit.configuration.ConfigurationSection; /** * Checks if the specified path is a ConfigurationSection. *

@@ -570,7 +571,7 @@ declare namespace org { * if that default value is a ConfigurationSection and return * appropriately. */ - public isConfigurationSection(path: string): boolean; + isConfigurationSection(path: string): boolean; /** * Gets the equivalent {@link ConfigurationSection} from the default * {@link Configuration} defined in {@link #getRoot()}. @@ -579,7 +580,7 @@ declare namespace org { * value for this path, or the value at this path is not a {@link * ConfigurationSection} then this will return null. */ - public getDefaultSection(): org.bukkit.configuration.ConfigurationSection; + getDefaultSection(): org.bukkit.configuration.ConfigurationSection; /** * Sets the default value in the root at the given path as provided. *

@@ -594,7 +595,7 @@ declare namespace org { * this will create a new section at the path, replacing anything that may * have existed there previously. */ - public addDefault(path: string, value: any): void; + addDefault(path: string, value: any): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts b/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts index b614c335..b5f095d7 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.InvalidConfigurationException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class InvalidConfigurationException { + // @ts-ignore + class InvalidConfigurationException { /** * Creates a new instance of InvalidConfigurationException without a * message or cause. diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts index ac419ac5..9151aa9c 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfiguration.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class MemoryConfiguration { + // @ts-ignore + class MemoryConfiguration implements org.bukkit.configuration.Configuration { /** * Creates an empty {@link MemoryConfiguration} with no default values. */ @@ -18,7 +19,6 @@ declare namespace org { public setDefaults(defaults: org.bukkit.configuration.Configuration): void; public getDefaults(): org.bukkit.configuration.Configuration; public getParent(): org.bukkit.configuration.ConfigurationSection; - public options(): org.bukkit.configuration.MemoryConfigurationOptions; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts index 81795842..a656c4d7 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemoryConfigurationOptions.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class MemoryConfigurationOptions { + // @ts-ignore + class MemoryConfigurationOptions { constructor(configuration: org.bukkit.configuration.MemoryConfiguration) public configuration(): org.bukkit.configuration.MemoryConfiguration; public copyDefaults(value: boolean): org.bukkit.configuration.MemoryConfigurationOptions; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts b/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts index 4a25c85b..5edab5e0 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.MemorySection.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace configuration { - class MemorySection { + // @ts-ignore + class MemorySection implements org.bukkit.configuration.ConfigurationSection { /** * Creates an empty MemorySection for use as a root {@link Configuration} * section. diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts index 8e4296d1..a75404f4 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfiguration.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { + // @ts-ignore abstract class FileConfiguration { /** * Creates an empty {@link FileConfiguration} with no default values. diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts index 5e44c219..b60206a2 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.FileConfigurationOptions.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { - class FileConfigurationOptions { + // @ts-ignore + class FileConfigurationOptions { constructor(configuration: org.bukkit.configuration.MemoryConfiguration) public configuration(): org.bukkit.configuration.file.FileConfiguration; public copyDefaults(value: boolean): org.bukkit.configuration.file.FileConfigurationOptions; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts index bebaa1ed..7434a029 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfiguration.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { - class YamlConfiguration { + // @ts-ignore + class YamlConfiguration { constructor() protected static COMMENT_PREFIX: string; protected static BLANK_CONFIG: string; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts index 51c4f378..1fecea79 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConfigurationOptions.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { - class YamlConfigurationOptions { + // @ts-ignore + class YamlConfigurationOptions { constructor(configuration: org.bukkit.configuration.file.YamlConfiguration) public configuration(): org.bukkit.configuration.file.YamlConfiguration; public copyDefaults(value: boolean): org.bukkit.configuration.file.YamlConfigurationOptions; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts index 652fbca1..b94659c4 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlConstructor.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { - class YamlConstructor { + // @ts-ignore + class YamlConstructor { constructor() } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts index b8e47900..c6b8eb7b 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.file.YamlRepresenter.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace file { - class YamlRepresenter { + // @ts-ignore + class YamlRepresenter { constructor() } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts index 0d654a5c..f77320ca 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerializable.ts @@ -2,14 +2,15 @@ declare namespace org { namespace bukkit { namespace configuration { namespace serialization { - class ConfigurationSerializable { + // @ts-ignore + interface ConfigurationSerializable { /** * Creates a Map representation of this class. *

* This class must provide a method to restore this class, as defined in * the {@link ConfigurationSerializable} interface javadocs. */ - public serialize(): Map /*java.util.Map*/; + serialize(): Map /*java.util.Map*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerialization.ts b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerialization.ts index 2ac2fe54..6ec91027 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerialization.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.ConfigurationSerialization.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace configuration { namespace serialization { - class ConfigurationSerialization { + // @ts-ignore + class ConfigurationSerialization { constructor(clazz: any) public static SERIALIZED_TYPE_KEY: string; protected getMethod(name: string, isStatic: boolean): any; diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.DelegateDeserialization.ts b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.DelegateDeserialization.ts index 11dff5cc..a62b7437 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.DelegateDeserialization.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.DelegateDeserialization.ts @@ -2,12 +2,13 @@ declare namespace org { namespace bukkit { namespace configuration { namespace serialization { - class DelegateDeserialization { + // @ts-ignore + interface DelegateDeserialization { /** * Which class should be used as a delegate for this classes * deserialization */ - public value(): any; + value(): any; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.SerializableAs.ts b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.SerializableAs.ts index 589f6c38..2974eb4f 100644 --- a/packages/bukkit/src/typings/org.bukkit.configuration.serialization.SerializableAs.ts +++ b/packages/bukkit/src/typings/org.bukkit.configuration.serialization.SerializableAs.ts @@ -2,14 +2,15 @@ declare namespace org { namespace bukkit { namespace configuration { namespace serialization { - class SerializableAs { + // @ts-ignore + interface SerializableAs { /** * This is the name your class will be stored and retrieved as. *

* This name MUST be unique. We recommend using names such as * "MyPluginThing" instead of "Thing". */ - public value(): string; + value(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts index c3a418e4..f8c558d2 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.BooleanPrompt.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace conversations { + // @ts-ignore abstract class BooleanPrompt { constructor() protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts index 878b1628..3cb6623a 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversable.ts @@ -1,33 +1,34 @@ declare namespace org { namespace bukkit { namespace conversations { - class Conversable { + // @ts-ignore + interface Conversable { /** * Tests to see of a Conversable object is actively engaged in a * conversation. */ - public isConversing(): boolean; + isConversing(): boolean; /** * Accepts input into the active conversation. If no conversation is in * progress, this method does nothing. */ - public acceptConversationInput(input: string): void; + acceptConversationInput(input: string): void; /** * Enters into a dialog with a Conversation object. */ - public beginConversation(conversation: org.bukkit.conversations.Conversation): boolean; + beginConversation(conversation: org.bukkit.conversations.Conversation): boolean; /** * Abandons an active conversation. */ - public abandonConversation(conversation: org.bukkit.conversations.Conversation): void; + abandonConversation(conversation: org.bukkit.conversations.Conversation): void; /** * Abandons an active conversation. */ - public abandonConversation(conversation: org.bukkit.conversations.Conversation, details: org.bukkit.conversations.ConversationAbandonedEvent): void; + abandonConversation(conversation: org.bukkit.conversations.Conversation, details: org.bukkit.conversations.ConversationAbandonedEvent): void; /** * Sends this sender a message raw */ - public sendRawMessage(message: string): void; + sendRawMessage(message: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts index f42f3c91..eda94ea6 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ConversationState.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace conversations { namespace Conversation { - class ConversationState { + // @ts-ignore + class ConversationState { public static UNSTARTED: org.bukkit.conversations.Conversation.ConversationState; public static STARTED: org.bukkit.conversations.Conversation.ConversationState; public static ABANDONED: org.bukkit.conversations.Conversation.ConversationState; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts index 923574fc..f9af77ce 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.Conversation.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class Conversation { + // @ts-ignore + class Conversation { /** * Initializes a new Conversation. */ diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts index b2d0b6f8..5a829951 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedEvent.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationAbandonedEvent { + // @ts-ignore + class ConversationAbandonedEvent { constructor(conversation: org.bukkit.conversations.Conversation) constructor(conversation: org.bukkit.conversations.Conversation, canceller: org.bukkit.conversations.ConversationCanceller) /** diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts index ce9984ba..e698d6cf 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationAbandonedListener.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationAbandonedListener { + // @ts-ignore + interface ConversationAbandonedListener { /** * Called whenever a {@link Conversation} is abandoned. */ - public conversationAbandoned(abandonedEvent: org.bukkit.conversations.ConversationAbandonedEvent): void; + conversationAbandoned(abandonedEvent: org.bukkit.conversations.ConversationAbandonedEvent): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts index 3fd090d0..e4d0baec 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationCanceller.ts @@ -1,22 +1,23 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationCanceller { + // @ts-ignore + interface ConversationCanceller { /** * Sets the conversation this ConversationCanceller can optionally cancel. */ - public setConversation(conversation: org.bukkit.conversations.Conversation): void; + setConversation(conversation: org.bukkit.conversations.Conversation): void; /** * Cancels a conversation based on user input. */ - public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; + cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; /** * Allows the {@link ConversationFactory} to duplicate this * ConversationCanceller when creating a new {@link Conversation}. *

* Implementing this method should reset any internal object state. */ - public clone(): org.bukkit.conversations.ConversationCanceller; + clone(): org.bukkit.conversations.ConversationCanceller; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts index 96e992bc..ce0f86d0 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationContext.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationContext { + // @ts-ignore + class ConversationContext { constructor(plugin: org.bukkit.plugin.Plugin, forWhom: org.bukkit.conversations.Conversable, initialSessionData: Map /*java.util.Map*/) /** * Gets the plugin that owns this conversation. diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationFactory.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationFactory.ts index 537e385f..b849086f 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationFactory.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationFactory.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationFactory { + // @ts-ignore + class ConversationFactory { /** * Constructs a ConversationFactory. */ diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationPrefix.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationPrefix.ts index 30169687..c14a1f53 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ConversationPrefix.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ConversationPrefix.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace conversations { - class ConversationPrefix { + // @ts-ignore + interface ConversationPrefix { /** * Gets the prefix to use before each message to the player. */ - public getPrefix(context: org.bukkit.conversations.ConversationContext): string; + getPrefix(context: org.bukkit.conversations.ConversationContext): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ExactMatchConversationCanceller.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ExactMatchConversationCanceller.ts index 7844008b..a7da933f 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ExactMatchConversationCanceller.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ExactMatchConversationCanceller.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class ExactMatchConversationCanceller { + // @ts-ignore + class ExactMatchConversationCanceller implements org.bukkit.conversations.ConversationCanceller { /** * Builds an ExactMatchConversationCanceller. */ diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.FixedSetPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.FixedSetPrompt.ts index 449cd983..a0625780 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.FixedSetPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.FixedSetPrompt.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace conversations { + // @ts-ignore abstract class FixedSetPrompt { /** * Creates a FixedSetPrompt from a set of strings. diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.InactivityConversationCanceller.ts b/packages/bukkit/src/typings/org.bukkit.conversations.InactivityConversationCanceller.ts index d711f128..03044e4f 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.InactivityConversationCanceller.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.InactivityConversationCanceller.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class InactivityConversationCanceller { + // @ts-ignore + class InactivityConversationCanceller implements org.bukkit.conversations.ConversationCanceller { /** * Creates an InactivityConversationCanceller. */ diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.ts index 747c9006..80239db9 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ManuallyAbandonedConversationCanceller.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class ManuallyAbandonedConversationCanceller { + // @ts-ignore + class ManuallyAbandonedConversationCanceller implements org.bukkit.conversations.ConversationCanceller { constructor() public setConversation(conversation: org.bukkit.conversations.Conversation): void; public cancelBasedOnInput(context: org.bukkit.conversations.ConversationContext, input: string): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.MessagePrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.MessagePrompt.ts index 625a3be2..c5a2287c 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.MessagePrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.MessagePrompt.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - abstract class MessagePrompt { + // @ts-ignore + abstract class MessagePrompt implements org.bukkit.conversations.Prompt { constructor() /** * Message prompts never wait for user input before continuing. diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.NullConversationPrefix.ts b/packages/bukkit/src/typings/org.bukkit.conversations.NullConversationPrefix.ts index 8d6575e6..716a1cfa 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.NullConversationPrefix.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.NullConversationPrefix.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class NullConversationPrefix { + // @ts-ignore + class NullConversationPrefix implements org.bukkit.conversations.ConversationPrefix { constructor() /** * Prepends each conversation message with an empty string. diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.NumericPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.NumericPrompt.ts index b2e9717b..0cb9621a 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.NumericPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.NumericPrompt.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace conversations { + // @ts-ignore abstract class NumericPrompt { constructor() protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.PlayerNamePrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.PlayerNamePrompt.ts index e95f1c0d..faf4cdb7 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.PlayerNamePrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.PlayerNamePrompt.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace conversations { + // @ts-ignore abstract class PlayerNamePrompt { constructor(plugin: org.bukkit.plugin.Plugin) protected isInputValid(context: org.bukkit.conversations.ConversationContext, input: string): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.PluginNameConversationPrefix.ts b/packages/bukkit/src/typings/org.bukkit.conversations.PluginNameConversationPrefix.ts index 8693ad59..1e38ac55 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.PluginNameConversationPrefix.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.PluginNameConversationPrefix.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - class PluginNameConversationPrefix { + // @ts-ignore + class PluginNameConversationPrefix implements org.bukkit.conversations.ConversationPrefix { constructor(plugin: org.bukkit.plugin.Plugin) constructor(plugin: org.bukkit.plugin.Plugin, separator: string, prefixColor: org.bukkit.ChatColor) protected separator: string; diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.Prompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.Prompt.ts index c165749d..38bcd1db 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.Prompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.Prompt.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace conversations { - class Prompt { - public static END_OF_CONVERSATION: org.bukkit.conversations.Prompt; + // @ts-ignore + interface Prompt { + END_OF_CONVERSATION: org.bukkit.conversations.Prompt; /** * Gets the text to display to the user when this prompt is first * presented. */ - public getPromptText(context: org.bukkit.conversations.ConversationContext): string; + getPromptText(context: org.bukkit.conversations.ConversationContext): string; /** * Checks to see if this prompt implementation should wait for user input * or immediately display the next prompt. */ - public blocksForInput(context: org.bukkit.conversations.ConversationContext): boolean; + blocksForInput(context: org.bukkit.conversations.ConversationContext): boolean; /** * Accepts and processes input from the user. Using the input, the next * Prompt in the prompt graph is returned. */ - public acceptInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; + acceptInput(context: org.bukkit.conversations.ConversationContext, input: string): org.bukkit.conversations.Prompt; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.RegexPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.RegexPrompt.ts index 5ae46791..5cebfd41 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.RegexPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.RegexPrompt.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace conversations { + // @ts-ignore abstract class RegexPrompt { constructor(regex: string) constructor(pattern: any) diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.StringPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.StringPrompt.ts index aae2864e..997a2234 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.StringPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.StringPrompt.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - abstract class StringPrompt { + // @ts-ignore + abstract class StringPrompt implements org.bukkit.conversations.Prompt { constructor() /** * Ensures that the prompt waits for the user to provide input. diff --git a/packages/bukkit/src/typings/org.bukkit.conversations.ValidatingPrompt.ts b/packages/bukkit/src/typings/org.bukkit.conversations.ValidatingPrompt.ts index 6841d6ab..cefca5e4 100644 --- a/packages/bukkit/src/typings/org.bukkit.conversations.ValidatingPrompt.ts +++ b/packages/bukkit/src/typings/org.bukkit.conversations.ValidatingPrompt.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace conversations { - abstract class ValidatingPrompt { + // @ts-ignore + abstract class ValidatingPrompt implements org.bukkit.conversations.Prompt { constructor() /** * Accepts and processes input from the user and validates it. If diff --git a/packages/bukkit/src/typings/org.bukkit.enchantments.Enchantment.ts b/packages/bukkit/src/typings/org.bukkit.enchantments.Enchantment.ts index ee6102eb..182ddc2d 100644 --- a/packages/bukkit/src/typings/org.bukkit.enchantments.Enchantment.ts +++ b/packages/bukkit/src/typings/org.bukkit.enchantments.Enchantment.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace enchantments { - abstract class Enchantment { + // @ts-ignore + abstract class Enchantment implements org.bukkit.Keyed { constructor(key: org.bukkit.NamespacedKey) public static PROTECTION_ENVIRONMENTAL: org.bukkit.enchantments.Enchantment; public static PROTECTION_FIRE: org.bukkit.enchantments.Enchantment; diff --git a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentOffer.ts b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentOffer.ts index 6aa7aeba..537710f2 100644 --- a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentOffer.ts +++ b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentOffer.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace enchantments { - class EnchantmentOffer { + // @ts-ignore + class EnchantmentOffer { constructor(enchantment: org.bukkit.enchantments.Enchantment, enchantmentLevel: number, cost: number) /** * Get the type of the enchantment. diff --git a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentTarget.ts b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentTarget.ts index 046ed412..b9527011 100644 --- a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentTarget.ts +++ b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentTarget.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace enchantments { - class EnchantmentTarget { + // @ts-ignore + class EnchantmentTarget { public static ALL: org.bukkit.enchantments.EnchantmentTarget; public static ARMOR: org.bukkit.enchantments.EnchantmentTarget; public static ARMOR_FEET: org.bukkit.enchantments.EnchantmentTarget; diff --git a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentWrapper.ts b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentWrapper.ts index b3b12cb0..5cf714f1 100644 --- a/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentWrapper.ts +++ b/packages/bukkit/src/typings/org.bukkit.enchantments.EnchantmentWrapper.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace enchantments { - class EnchantmentWrapper { + // @ts-ignore + class EnchantmentWrapper { constructor(name: string) /** * Gets the enchantment bound to this wrapper diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.PickupStatus.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.PickupStatus.ts index 1149e0f8..38575b9e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.PickupStatus.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.PickupStatus.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace AbstractArrow { - class PickupStatus { + // @ts-ignore + class PickupStatus { public static DISALLOWED: org.bukkit.entity.AbstractArrow.PickupStatus; public static ALLOWED: org.bukkit.entity.AbstractArrow.PickupStatus; public static CREATIVE_ONLY: org.bukkit.entity.AbstractArrow.PickupStatus; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.ts index 38d593d4..510b90ff 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractArrow.ts @@ -1,37 +1,38 @@ declare namespace org { namespace bukkit { namespace entity { - class AbstractArrow { + // @ts-ignore + interface AbstractArrow extends org.bukkit.entity.Projectile { /** * Gets the knockback strength for an arrow, which is the * {@link org.bukkit.enchantments.Enchantment#KNOCKBACK KnockBack} level * of the bow that shot it. */ - public getKnockbackStrength(): number; + getKnockbackStrength(): number; /** * Sets the knockback strength for an arrow. */ - public setKnockbackStrength(knockbackStrength: number): void; + setKnockbackStrength(knockbackStrength: number): void; /** * Gets the base amount of damage this arrow will do. * Defaults to 2.0 for a normal arrow with * 0.5 * (1 + power level) added for arrows fired from * enchanted bows. */ - public getDamage(): number; + getDamage(): number; /** * Sets the base amount of damage this arrow will do. */ - public setDamage(damage: number): void; + setDamage(damage: number): void; /** * Gets the number of times this arrow can pierce through an entity. */ - public getPierceLevel(): number; + getPierceLevel(): number; /** * Sets the number of times this arrow can pierce through an entity. * Must be between 0 and 127 times. */ - public setPierceLevel(pierceLevel: number): void; + setPierceLevel(pierceLevel: number): void; /** * Gets whether this arrow is critical. *

@@ -40,29 +41,29 @@ declare namespace org { * Critical arrows generally occur when a player fully draws a bow before * firing. */ - public isCritical(): boolean; + isCritical(): boolean; /** * Sets whether or not this arrow should be critical. */ - public setCritical(critical: boolean): void; + setCritical(critical: boolean): void; /** * Gets whether this arrow is in a block or not. *

* Arrows in a block are motionless and may be picked up by players. */ - public isInBlock(): boolean; + isInBlock(): boolean; /** * Gets the block to which this arrow is attached. */ - public getAttachedBlock(): org.bukkit.block.Block; + getAttachedBlock(): org.bukkit.block.Block; /** * Gets the current pickup status of this arrow. */ - public getPickupStatus(): org.bukkit.entity.AbstractArrow.PickupStatus; + getPickupStatus(): org.bukkit.entity.AbstractArrow.PickupStatus; /** * Sets the current pickup status of this arrow. */ - public setPickupStatus(status: org.bukkit.entity.AbstractArrow.PickupStatus): void; + setPickupStatus(status: org.bukkit.entity.AbstractArrow.PickupStatus): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts index 43201180..a78de381 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractHorse.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class AbstractHorse { + // @ts-ignore + interface AbstractHorse extends org.bukkit.entity.Animals, org.bukkit.entity.Vehicle, org.bukkit.inventory.InventoryHolder, org.bukkit.entity.Tameable { /** * Gets the horse's variant. *

@@ -9,8 +10,8 @@ declare namespace org { * Whether a horse is a regular horse, donkey, mule, or other kind of horse * is determined using the variant. */ - public getVariant(): org.bukkit.entity.Horse.Variant; - public setVariant(variant: org.bukkit.entity.Horse.Variant): void; + getVariant(): org.bukkit.entity.Horse.Variant; + setVariant(variant: org.bukkit.entity.Horse.Variant): void; /** * Gets the domestication level of this horse. *

@@ -18,7 +19,7 @@ declare namespace org { * becoming tame. As the domestication level gets closer to the max * domestication level, the chance of the horse becoming tame increases. */ - public getDomestication(): number; + getDomestication(): number; /** * Sets the domestication level of this horse. *

@@ -29,14 +30,14 @@ declare namespace org { * the max domestication level of the horse, determined with * {@link #getMaxDomestication()} */ - public setDomestication(level: number): void; + setDomestication(level: number): void; /** * Gets the maximum domestication level of this horse. *

* The higher this level is, the longer it will likely take * for the horse to be tamed. */ - public getMaxDomestication(): number; + getMaxDomestication(): number; /** * Sets the maximum domestication level of this horse. *

@@ -46,14 +47,14 @@ declare namespace org { *

* Maximum domestication must be greater than zero. */ - public setMaxDomestication(level: number): void; + setMaxDomestication(level: number): void; /** * Gets the jump strength of this horse. *

* Jump strength defines how high the horse can jump. A higher jump strength * increases how high a jump will go. */ - public getJumpStrength(): number; + getJumpStrength(): number; /** * Sets the jump strength of this horse. *

@@ -62,8 +63,8 @@ declare namespace org { * You cannot set a jump strength to a value below 0 or * above 2. */ - public setJumpStrength(strength: number): void; - public getInventory(): org.bukkit.inventory.AbstractHorseInventory; + setJumpStrength(strength: number): void; + getInventory(): org.bukkit.inventory.AbstractHorseInventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts index 20b87365..1d666119 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AbstractVillager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class AbstractVillager { + // @ts-ignore + interface AbstractVillager extends org.bukkit.entity.Ageable, org.bukkit.entity.NPC, org.bukkit.inventory.InventoryHolder, org.bukkit.inventory.Merchant { /** * Gets this villager's inventory. *
@@ -9,7 +10,7 @@ declare namespace org { * items that a villager might have collected (from harvesting crops, etc.) * {@inheritDoc} */ - public getInventory(): org.bukkit.inventory.Inventory; + getInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts index aec91f78..eb7f6c38 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ageable.ts @@ -1,45 +1,46 @@ declare namespace org { namespace bukkit { namespace entity { - class Ageable { + // @ts-ignore + interface Ageable extends org.bukkit.entity.Creature { /** * Gets the age of this animal. */ - public getAge(): number; + getAge(): number; /** * Sets the age of this animal. */ - public setAge(age: number): void; + setAge(age: number): void; /** * Lock the age of the animal, setting this will prevent the animal from * maturing or getting ready for mating. */ - public setAgeLock(lock: boolean): void; + setAgeLock(lock: boolean): void; /** * Gets the current agelock. */ - public getAgeLock(): boolean; + getAgeLock(): boolean; /** * Sets the age of the animal to a baby */ - public setBaby(): void; + setBaby(): void; /** * Sets the age of the animal to an adult */ - public setAdult(): void; + setAdult(): void; /** * Returns true if the animal is an adult. */ - public isAdult(): boolean; + isAdult(): boolean; /** * Return the ability to breed of the animal. */ - public canBreed(): boolean; + canBreed(): boolean; /** * Set breedability of the animal, if the animal is a baby and set to * breed it will instantly grow up. */ - public setBreed(breed: boolean): void; + setBreed(breed: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts index 463d1c0a..445e9219 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ambient.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Ambient { + // @ts-ignore + interface Ambient extends org.bukkit.entity.Mob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts b/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts index b1c05bd8..53f468b9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AnimalTamer.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class AnimalTamer { + // @ts-ignore + interface AnimalTamer { /** * This is the name of the specified AnimalTamer. */ - public getName(): string; + getName(): string; /** * This is the UUID of the specified AnimalTamer. */ - public getUniqueId(): any; + getUniqueId(): any; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts b/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts index 12e9085e..fc3f9273 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Animals.ts @@ -1,34 +1,35 @@ declare namespace org { namespace bukkit { namespace entity { - class Animals { + // @ts-ignore + interface Animals extends org.bukkit.entity.Ageable { /** * Get the UUID of the entity that caused this entity to enter the * {@link #canBreed()} state. */ - public getBreedCause(): any; + getBreedCause(): any; /** * Set the UUID of the entity that caused this entity to enter the * {@link #canBreed()} state. */ - public setBreedCause(uuid: any): void; + setBreedCause(uuid: any): void; /** * Get whether or not this entity is in love mode and will produce * offspring with another entity in love mode. Will return true if * and only if {@link #getLoveModeTicks()} is greater than 0. */ - public isLoveMode(): boolean; + isLoveMode(): boolean; /** * Get the amount of ticks remaining for this entity in love mode. * If the entity is not in love mode, 0 will be returned. */ - public getLoveModeTicks(): number; + getLoveModeTicks(): number; /** * Set the amount of ticks for which this entity should be in love mode. * Setting the love mode ticks to 600 is the equivalent of a player * feeding the entity their breeding item of choice. */ - public setLoveModeTicks(ticks: number): void; + setLoveModeTicks(ticks: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts b/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts index ab17a07c..daa061d9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.AreaEffectCloud.ts @@ -1,93 +1,94 @@ declare namespace org { namespace bukkit { namespace entity { - class AreaEffectCloud { + // @ts-ignore + interface AreaEffectCloud extends org.bukkit.entity.Entity { /** * Gets the duration which this cloud will exist for (in ticks). */ - public getDuration(): number; + getDuration(): number; /** * Sets the duration which this cloud will exist for (in ticks). */ - public setDuration(duration: number): void; + setDuration(duration: number): void; /** * Gets the time which an entity has to be exposed to the cloud before the * effect is applied. */ - public getWaitTime(): number; + getWaitTime(): number; /** * Sets the time which an entity has to be exposed to the cloud before the * effect is applied. */ - public setWaitTime(waitTime: number): void; + setWaitTime(waitTime: number): void; /** * Gets the time that an entity will be immune from subsequent exposure. */ - public getReapplicationDelay(): number; + getReapplicationDelay(): number; /** * Sets the time that an entity will be immune from subsequent exposure. */ - public setReapplicationDelay(delay: number): void; + setReapplicationDelay(delay: number): void; /** * Gets the amount that the duration of this cloud will decrease by when it * applies an effect to an entity. */ - public getDurationOnUse(): number; + getDurationOnUse(): number; /** * Sets the amount that the duration of this cloud will decrease by when it * applies an effect to an entity. */ - public setDurationOnUse(duration: number): void; + setDurationOnUse(duration: number): void; /** * Gets the initial radius of the cloud. */ - public getRadius(): number; + getRadius(): number; /** * Sets the initial radius of the cloud. */ - public setRadius(radius: number): void; + setRadius(radius: number): void; /** * Gets the amount that the radius of this cloud will decrease by when it * applies an effect to an entity. */ - public getRadiusOnUse(): number; + getRadiusOnUse(): number; /** * Sets the amount that the radius of this cloud will decrease by when it * applies an effect to an entity. */ - public setRadiusOnUse(radius: number): void; + setRadiusOnUse(radius: number): void; /** * Gets the amount that the radius of this cloud will decrease by each tick. */ - public getRadiusPerTick(): number; + getRadiusPerTick(): number; /** * Gets the amount that the radius of this cloud will decrease by each tick. */ - public setRadiusPerTick(radius: number): void; + setRadiusPerTick(radius: number): void; /** * Gets the particle which this cloud will be composed of */ - public getParticle(): org.bukkit.Particle; + getParticle(): org.bukkit.Particle; /** * Sets the particle which this cloud will be composed of */ - public setParticle(particle: org.bukkit.Particle): void; + setParticle(particle: org.bukkit.Particle): void; /** * Sets the particle which this cloud will be composed of */ - public setParticle(particle: org.bukkit.Particle, data: any): void; + setParticle(particle: org.bukkit.Particle, data: any): void; /** * Sets the underlying potion data */ - public setBasePotionData(data: org.bukkit.potion.PotionData): void; + setBasePotionData(data: org.bukkit.potion.PotionData): void; /** * Returns the potion data about the base potion */ - public getBasePotionData(): org.bukkit.potion.PotionData; + getBasePotionData(): org.bukkit.potion.PotionData; /** * Checks for the presence of custom potion effects. */ - public hasCustomEffects(): boolean; + hasCustomEffects(): boolean; /** * Gets an immutable list containing all custom potion effects applied to * this cloud. @@ -95,39 +96,39 @@ declare namespace org { * Plugins should check that hasCustomEffects() returns true before calling * this method. */ - public getCustomEffects(): any[] /*java.util.List*/; + getCustomEffects(): any[] /*java.util.List*/; /** * Adds a custom potion effect to this cloud. */ - public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; /** * Removes a custom potion effect from this cloud. */ - public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Checks for a specific custom potion effect type on this cloud. */ - public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Removes all custom potion effects from this cloud. */ - public clearCustomEffects(): void; + clearCustomEffects(): void; /** * Gets the color of this cloud. Will be applied as a tint to its particles. */ - public getColor(): org.bukkit.Color; + getColor(): org.bukkit.Color; /** * Sets the color of this cloud. Will be applied as a tint to its particles. */ - public setColor(color: org.bukkit.Color): void; + setColor(color: org.bukkit.Color): void; /** * Retrieve the original source of this cloud. */ - public getSource(): org.bukkit.projectiles.ProjectileSource; + getSource(): org.bukkit.projectiles.ProjectileSource; /** * Set the original source of this cloud. */ - public setSource(source: org.bukkit.projectiles.ProjectileSource): void; + setSource(source: org.bukkit.projectiles.ProjectileSource): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts b/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts index 2a9066bf..3f301a52 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ArmorStand.ts @@ -1,165 +1,166 @@ declare namespace org { namespace bukkit { namespace entity { - class ArmorStand { + // @ts-ignore + interface ArmorStand extends org.bukkit.entity.LivingEntity { /** * Returns the item the armor stand is * currently holding */ - public getItemInHand(): org.bukkit.inventory.ItemStack; + getItemInHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the armor stand is currently * holding */ - public setItemInHand(item: org.bukkit.inventory.ItemStack): void; + setItemInHand(item: org.bukkit.inventory.ItemStack): void; /** * Returns the item currently being worn * by the armor stand on its feet */ - public getBoots(): org.bukkit.inventory.ItemStack; + getBoots(): org.bukkit.inventory.ItemStack; /** * Sets the item currently being worn * by the armor stand on its feet */ - public setBoots(item: org.bukkit.inventory.ItemStack): void; + setBoots(item: org.bukkit.inventory.ItemStack): void; /** * Returns the item currently being worn * by the armor stand on its legs */ - public getLeggings(): org.bukkit.inventory.ItemStack; + getLeggings(): org.bukkit.inventory.ItemStack; /** * Sets the item currently being worn * by the armor stand on its legs */ - public setLeggings(item: org.bukkit.inventory.ItemStack): void; + setLeggings(item: org.bukkit.inventory.ItemStack): void; /** * Returns the item currently being worn * by the armor stand on its chest */ - public getChestplate(): org.bukkit.inventory.ItemStack; + getChestplate(): org.bukkit.inventory.ItemStack; /** * Sets the item currently being worn * by the armor stand on its chest */ - public setChestplate(item: org.bukkit.inventory.ItemStack): void; + setChestplate(item: org.bukkit.inventory.ItemStack): void; /** * Returns the item currently being worn * by the armor stand on its head */ - public getHelmet(): org.bukkit.inventory.ItemStack; + getHelmet(): org.bukkit.inventory.ItemStack; /** * Sets the item currently being worn * by the armor stand on its head */ - public setHelmet(item: org.bukkit.inventory.ItemStack): void; + setHelmet(item: org.bukkit.inventory.ItemStack): void; /** * Returns the armor stand's body's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getBodyPose(): org.bukkit.util.EulerAngle; + getBodyPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's body's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setBodyPose(pose: org.bukkit.util.EulerAngle): void; + setBodyPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns the armor stand's left arm's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getLeftArmPose(): org.bukkit.util.EulerAngle; + getLeftArmPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's left arm's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setLeftArmPose(pose: org.bukkit.util.EulerAngle): void; + setLeftArmPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns the armor stand's right arm's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getRightArmPose(): org.bukkit.util.EulerAngle; + getRightArmPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's right arm's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setRightArmPose(pose: org.bukkit.util.EulerAngle): void; + setRightArmPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns the armor stand's left leg's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getLeftLegPose(): org.bukkit.util.EulerAngle; + getLeftLegPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's left leg's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setLeftLegPose(pose: org.bukkit.util.EulerAngle): void; + setLeftLegPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns the armor stand's right leg's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getRightLegPose(): org.bukkit.util.EulerAngle; + getRightLegPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's right leg's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setRightLegPose(pose: org.bukkit.util.EulerAngle): void; + setRightLegPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns the armor stand's head's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public getHeadPose(): org.bukkit.util.EulerAngle; + getHeadPose(): org.bukkit.util.EulerAngle; /** * Sets the armor stand's head's * current pose as a {@link org.bukkit.util.EulerAngle} */ - public setHeadPose(pose: org.bukkit.util.EulerAngle): void; + setHeadPose(pose: org.bukkit.util.EulerAngle): void; /** * Returns whether the armor stand has * a base plate */ - public hasBasePlate(): boolean; + hasBasePlate(): boolean; /** * Sets whether the armor stand has a * base plate */ - public setBasePlate(basePlate: boolean): void; + setBasePlate(basePlate: boolean): void; /** * Returns whether the armor stand should be * visible or not */ - public isVisible(): boolean; + isVisible(): boolean; /** * Sets whether the armor stand should be * visible or not */ - public setVisible(visible: boolean): void; + setVisible(visible: boolean): void; /** * Returns whether this armor stand has arms */ - public hasArms(): boolean; + hasArms(): boolean; /** * Sets whether this armor stand has arms */ - public setArms(arms: boolean): void; + setArms(arms: boolean): void; /** * Returns whether this armor stand is scaled * down */ - public isSmall(): boolean; + isSmall(): boolean; /** * Sets whether this armor stand is scaled * down */ - public setSmall(small: boolean): void; + setSmall(small: boolean): void; /** * Returns whether this armor stand is a marker, * meaning it has a very small collision box */ - public isMarker(): boolean; + isMarker(): boolean; /** * Sets whether this armor stand is a marker, * meaning it has a very small collision box */ - public setMarker(marker: boolean): void; + setMarker(marker: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts index 6e01935c..9204d24e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Arrow.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace entity { - class Arrow { + // @ts-ignore + interface Arrow extends org.bukkit.entity.AbstractArrow { /** * Sets the underlying potion data */ - public setBasePotionData(data: org.bukkit.potion.PotionData): void; + setBasePotionData(data: org.bukkit.potion.PotionData): void; /** * Returns the potion data about the base potion */ - public getBasePotionData(): org.bukkit.potion.PotionData; + getBasePotionData(): org.bukkit.potion.PotionData; /** * Gets the color of this arrow. */ - public getColor(): org.bukkit.Color; + getColor(): org.bukkit.Color; /** * Sets the color of this arrow. Will be applied as a tint to its particles. */ - public setColor(color: org.bukkit.Color): void; + setColor(color: org.bukkit.Color): void; /** * Checks for the presence of custom potion effects. */ - public hasCustomEffects(): boolean; + hasCustomEffects(): boolean; /** * Gets an immutable list containing all custom potion effects applied to * this arrow. @@ -29,23 +30,23 @@ declare namespace org { * Plugins should check that hasCustomEffects() returns true before calling * this method. */ - public getCustomEffects(): any[] /*java.util.List*/; + getCustomEffects(): any[] /*java.util.List*/; /** * Adds a custom potion effect to this arrow. */ - public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; /** * Removes a custom potion effect from this arrow. */ - public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Checks for a specific custom potion effect type on this arrow. */ - public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Removes all custom potion effects from this arrow. */ - public clearCustomEffects(): void; + clearCustomEffects(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts index 793f0a6e..0772273a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Bat.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { namespace entity { - class Bat { + // @ts-ignore + interface Bat extends org.bukkit.entity.Ambient { /** * Checks the current waking state of this bat. *

* This does not imply any persistence of state past the method call. */ - public isAwake(): boolean; + isAwake(): boolean; /** * This method modifies the current waking state of this bat. *

* This does not prevent a bat from spontaneously awaking itself, or from * reattaching itself to a block. */ - public setAwake(state: boolean): void; + setAwake(state: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts b/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts index 2e8ced2e..7c72b2d8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Blaze.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Blaze { + // @ts-ignore + interface Blaze extends org.bukkit.entity.Monster { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts index 541676d6..44eeb2c4 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Boat.ts @@ -1,56 +1,57 @@ declare namespace org { namespace bukkit { namespace entity { - class Boat { + // @ts-ignore + interface Boat extends org.bukkit.entity.Vehicle { /** * Gets the wood type of the boat. */ - public getWoodType(): org.bukkit.TreeSpecies; + getWoodType(): org.bukkit.TreeSpecies; /** * Sets the wood type of the boat. */ - public setWoodType(species: org.bukkit.TreeSpecies): void; + setWoodType(species: org.bukkit.TreeSpecies): void; /** * Gets the maximum speed of a boat. The speed is unrelated to the * velocity. */ - public getMaxSpeed(): number; + getMaxSpeed(): number; /** * Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D. */ - public setMaxSpeed(speed: number): void; + setMaxSpeed(speed: number): void; /** * Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied * boats. The default is 0.2. */ - public getOccupiedDeceleration(): number; + getOccupiedDeceleration(): number; /** * Sets the deceleration rate (newSpeed = curSpeed * rate) of occupied * boats. Setting this to a higher value allows for quicker acceleration. * The default is 0.2. */ - public setOccupiedDeceleration(rate: number): void; + setOccupiedDeceleration(rate: number): void; /** * Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied * boats. The default is -1. Values below 0 indicate that no additional * deceleration is imposed. */ - public getUnoccupiedDeceleration(): number; + getUnoccupiedDeceleration(): number; /** * Sets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied * boats. Setting this to a higher value allows for quicker deceleration * of boats when a player disembarks. The default is -1. Values below 0 * indicate that no additional deceleration is imposed. */ - public setUnoccupiedDeceleration(rate: number): void; + setUnoccupiedDeceleration(rate: number): void; /** * Get whether boats can work on land. */ - public getWorkOnLand(): boolean; + getWorkOnLand(): boolean; /** * Set whether boats can work on land. */ - public setWorkOnLand(workOnLand: boolean): void; + setWorkOnLand(workOnLand: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts b/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts index 0108c135..9badd8f9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Boss.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace entity { - class Boss { + // @ts-ignore + interface Boss extends org.bukkit.entity.Entity { /** * Returns the {@link BossBar} of the {@link Boss} */ - public getBossBar(): org.bukkit.boss.BossBar; + getBossBar(): org.bukkit.boss.BossBar; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts index 3e4e1691..ad15fe87 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Cat.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Cat { - class Type { + // @ts-ignore + class Type { public static TABBY: org.bukkit.entity.Cat.Type; public static BLACK: org.bukkit.entity.Cat.Type; public static RED: org.bukkit.entity.Cat.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts index 57fae02c..3fe2e601 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Cat.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Cat { + // @ts-ignore + interface Cat extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { /** * Gets the current type of this cat. */ - public getCatType(): org.bukkit.entity.Cat.Type; + getCatType(): org.bukkit.entity.Cat.Type; /** * Sets the current type of this cat. */ - public setCatType(type: org.bukkit.entity.Cat.Type): void; + setCatType(type: org.bukkit.entity.Cat.Type): void; /** * Get the collar color of this cat */ - public getCollarColor(): org.bukkit.DyeColor; + getCollarColor(): org.bukkit.DyeColor; /** * Set the collar color of this cat */ - public setCollarColor(color: org.bukkit.DyeColor): void; + setCollarColor(color: org.bukkit.DyeColor): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts b/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts index 1a4abc92..25286c7d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.CaveSpider.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class CaveSpider { + // @ts-ignore + interface CaveSpider extends org.bukkit.entity.Spider { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts index af398df1..2c9a08c6 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ChestedHorse.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace entity { - class ChestedHorse { + // @ts-ignore + interface ChestedHorse extends org.bukkit.entity.AbstractHorse { /** * Gets whether the horse has a chest equipped. */ - public isCarryingChest(): boolean; + isCarryingChest(): boolean; /** * Sets whether the horse has a chest equipped. Removing a chest will also * clear the chest's inventory. */ - public setCarryingChest(chest: boolean): void; + setCarryingChest(chest: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts b/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts index b230ca8d..4067f10e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Chicken.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Chicken { + // @ts-ignore + interface Chicken extends org.bukkit.entity.Animals { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts index 9d862c46..cea97103 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Cod.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Cod { + // @ts-ignore + interface Cod extends org.bukkit.entity.Fish { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts b/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts index 1a9ef881..b6a2d2ae 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ComplexEntityPart.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace entity { - class ComplexEntityPart { + // @ts-ignore + interface ComplexEntityPart extends org.bukkit.entity.Entity { /** * Gets the parent {@link ComplexLivingEntity} of this part. */ - public getParent(): org.bukkit.entity.ComplexLivingEntity; + getParent(): org.bukkit.entity.ComplexLivingEntity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts index a863fe7c..6169e6d6 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ComplexLivingEntity.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace entity { - class ComplexLivingEntity { + // @ts-ignore + interface ComplexLivingEntity extends org.bukkit.entity.LivingEntity { /** * Gets a list of parts that belong to this complex entity */ - public getParts(): any[] /*java.util.Set*/; + getParts(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts b/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts index d349c499..17d42b6a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Cow.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Cow { + // @ts-ignore + interface Cow extends org.bukkit.entity.Animals { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts b/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts index c0eb9d3c..164ce29d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Creature.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Creature { + // @ts-ignore + interface Creature extends org.bukkit.entity.Mob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts b/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts index 11ffcb3a..e2c252af 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Creeper.ts @@ -1,42 +1,43 @@ declare namespace org { namespace bukkit { namespace entity { - class Creeper { + // @ts-ignore + interface Creeper extends org.bukkit.entity.Monster { /** * Checks if this Creeper is powered (Electrocuted) */ - public isPowered(): boolean; + isPowered(): boolean; /** * Sets the Powered status of this Creeper */ - public setPowered(value: boolean): void; + setPowered(value: boolean): void; /** * Set the maximum fuse ticks for this Creeper, where the maximum ticks * is the amount of time in which a creeper is allowed to be in the * primed state before exploding. */ - public setMaxFuseTicks(ticks: number): void; + setMaxFuseTicks(ticks: number): void; /** * Get the maximum fuse ticks for this Creeper, where the maximum ticks * is the amount of time in which a creeper is allowed to be in the * primed state before exploding. */ - public getMaxFuseTicks(): number; + getMaxFuseTicks(): number; /** * Set the explosion radius in which this Creeper's explosion will affect. */ - public setExplosionRadius(radius: number): void; + setExplosionRadius(radius: number): void; /** * Get the explosion radius in which this Creeper's explosion will affect. */ - public getExplosionRadius(): number; + getExplosionRadius(): number; /** * Makes this Creeper explode instantly. * The resulting explosion can be cancelled by an * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob * griefing gamerule. */ - public explode(): void; + explode(): void; /** * Ignites this Creeper, beginning its fuse. * The amount of time the Creeper takes to explode will depend on what @@ -45,7 +46,7 @@ declare namespace org { * {@link org.bukkit.event.entity.ExplosionPrimeEvent} and obeys the mob * griefing gamerule. */ - public ignite(): void; + ignite(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts index f98c37ba..7fa3f6f3 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Damageable.ts @@ -1,29 +1,30 @@ declare namespace org { namespace bukkit { namespace entity { - class Damageable { + // @ts-ignore + interface Damageable extends org.bukkit.entity.Entity { /** * Deals the given amount of damage to this entity. */ - public damage(amount: number): void; + damage(amount: number): void; /** * Deals the given amount of damage to this entity, from a specified * entity. */ - public damage(amount: number, source: org.bukkit.entity.Entity): void; + damage(amount: number, source: org.bukkit.entity.Entity): void; /** * Gets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is dead. */ - public getHealth(): number; + getHealth(): number; /** * Sets the entity's health from 0 to {@link #getMaxHealth()}, where 0 is * dead. */ - public setHealth(health: number): void; + setHealth(health: number): void; /** * Gets the maximum health this entity has. */ - public getMaxHealth(): number; + getMaxHealth(): number; /** * Sets the maximum health this entity can have. *

@@ -33,11 +34,11 @@ declare namespace org { * Note: An entity with a health bar ({@link Player}, {@link EnderDragon}, * {@link Wither}, etc...} will have their bar scaled accordingly. */ - public setMaxHealth(health: number): void; + setMaxHealth(health: number): void; /** * Resets the max health to the original amount. */ - public resetMaxHealth(): void; + resetMaxHealth(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts b/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts index 4ff99a98..2c72f34d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Dolphin.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Dolphin { + // @ts-ignore + interface Dolphin extends org.bukkit.entity.WaterMob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts b/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts index 71619003..aad3de39 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Donkey.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Donkey { + // @ts-ignore + interface Donkey extends org.bukkit.entity.ChestedHorse { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts index f03f3287..2c50cb8a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.DragonFireball.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class DragonFireball { + // @ts-ignore + interface DragonFireball extends org.bukkit.entity.Fireball { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts b/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts index 8b9bcf57..c748d4bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Drowned.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Drowned { + // @ts-ignore + interface Drowned extends org.bukkit.entity.Zombie { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts b/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts index c805d2e7..9e99c496 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Egg.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Egg { + // @ts-ignore + interface Egg extends org.bukkit.entity.Projectile { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts b/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts index b6726edc..b08c84ff 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ElderGuardian.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class ElderGuardian { + // @ts-ignore + interface ElderGuardian extends org.bukkit.entity.Guardian { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts index 46e1ce73..fa0f0adf 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderCrystal.ts @@ -1,26 +1,27 @@ declare namespace org { namespace bukkit { namespace entity { - class EnderCrystal { + // @ts-ignore + interface EnderCrystal extends org.bukkit.entity.Entity { /** * Return whether or not this end crystal is showing the * bedrock slate underneath it. */ - public isShowingBottom(): boolean; + isShowingBottom(): boolean; /** * Sets whether or not this end crystal is showing the * bedrock slate underneath it. */ - public setShowingBottom(showing: boolean): void; + setShowingBottom(showing: boolean): void; /** * Gets the location that this end crystal is pointing its beam to. */ - public getBeamTarget(): org.bukkit.Location; + getBeamTarget(): org.bukkit.Location; /** * Sets the location that this end crystal is pointing to. Passing a null * value will remove the current beam. */ - public setBeamTarget(location: org.bukkit.Location): void; + setBeamTarget(location: org.bukkit.Location): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts index b0748542..a7e63257 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.Phase.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace EnderDragon { - class Phase { + // @ts-ignore + class Phase { public static CIRCLING: org.bukkit.entity.EnderDragon.Phase; public static STRAFING: org.bukkit.entity.EnderDragon.Phase; public static FLY_TO_PORTAL: org.bukkit.entity.EnderDragon.Phase; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts index 804b5729..64f6c24d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragon.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class EnderDragon { + // @ts-ignore + interface EnderDragon extends org.bukkit.entity.ComplexLivingEntity, org.bukkit.entity.Boss { /** * Gets the current phase that the dragon is performing. */ - public getPhase(): org.bukkit.entity.EnderDragon.Phase; + getPhase(): org.bukkit.entity.EnderDragon.Phase; /** * Sets the next phase for the dragon to perform. */ - public setPhase(phase: org.bukkit.entity.EnderDragon.Phase): void; + setPhase(phase: org.bukkit.entity.EnderDragon.Phase): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts index 80fbc673..bcd34942 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderDragonPart.ts @@ -1,8 +1,9 @@ declare namespace org { namespace bukkit { namespace entity { - class EnderDragonPart { - public getParent(): org.bukkit.entity.EnderDragon; + // @ts-ignore + interface EnderDragonPart extends org.bukkit.entity.ComplexEntityPart, org.bukkit.entity.Damageable { + getParent(): org.bukkit.entity.EnderDragon; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts index 04318389..1dd613f4 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderPearl.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class EnderPearl { + // @ts-ignore + interface EnderPearl extends org.bukkit.entity.Projectile { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts b/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts index 92686e25..f3ad4157 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EnderSignal.ts @@ -1,40 +1,41 @@ declare namespace org { namespace bukkit { namespace entity { - class EnderSignal { + // @ts-ignore + interface EnderSignal extends org.bukkit.entity.Entity { /** * Get the location this EnderSignal is moving towards. */ - public getTargetLocation(): org.bukkit.Location; + getTargetLocation(): org.bukkit.Location; /** * Set the {@link Location} this EnderSignal is moving towards. *
* When setting a new target location, the {@link #getDropItem()} resets to * a random value and the despawn timer gets set back to 0. */ - public setTargetLocation(location: org.bukkit.Location): void; + setTargetLocation(location: org.bukkit.Location): void; /** * Gets if the EnderSignal should drop an item on death.
* If {@code true}, it will drop an item. If {@code false}, it will shatter. */ - public getDropItem(): boolean; + getDropItem(): boolean; /** * Sets if the EnderSignal should drop an item on death; or if it should * shatter. */ - public setDropItem(drop: boolean): void; + setDropItem(drop: boolean): void; /** * Gets the amount of time this entity has been alive (in ticks). *
* When this number is greater than 80, it will despawn on the next tick. */ - public getDespawnTimer(): number; + getDespawnTimer(): number; /** * Set how long this entity has been alive (in ticks). *
* When this number is greater than 80, it will despawn on the next tick. */ - public setDespawnTimer(timer: number): void; + setDespawnTimer(timer: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts b/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts index 1beba98f..3af544b1 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Enderman.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Enderman { + // @ts-ignore + interface Enderman extends org.bukkit.entity.Monster { /** * Gets the id and data of the block that the Enderman is carrying. */ - public getCarriedMaterial(): org.bukkit.material.MaterialData; + getCarriedMaterial(): org.bukkit.material.MaterialData; /** * Sets the id and data of the block that the Enderman is carrying. */ - public setCarriedMaterial(material: org.bukkit.material.MaterialData): void; + setCarriedMaterial(material: org.bukkit.material.MaterialData): void; /** * Gets the data of the block that the Enderman is carrying. */ - public getCarriedBlock(): org.bukkit.block.data.BlockData; + getCarriedBlock(): org.bukkit.block.data.BlockData; /** * Sets the data of the block that the Enderman is carrying. */ - public setCarriedBlock(blockData: org.bukkit.block.data.BlockData): void; + setCarriedBlock(blockData: org.bukkit.block.data.BlockData): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts b/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts index dc49a85f..fab483a4 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Endermite.ts @@ -1,17 +1,18 @@ declare namespace org { namespace bukkit { namespace entity { - class Endermite { + // @ts-ignore + interface Endermite extends org.bukkit.entity.Monster { /** * Gets whether this Endermite was spawned by a player. * An Endermite spawned by a player will be attacked by nearby Enderman. */ - public isPlayerSpawned(): boolean; + isPlayerSpawned(): boolean; /** * Sets whether this Endermite was spawned by a player. * An Endermite spawned by a player will be attacked by nearby Enderman. */ - public setPlayerSpawned(playerSpawned: boolean): void; + setPlayerSpawned(playerSpawned: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts b/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts index 6a308a9e..9f7673f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Entity.ts @@ -1,117 +1,118 @@ declare namespace org { namespace bukkit { namespace entity { - class Entity { + // @ts-ignore + interface Entity extends org.bukkit.metadata.Metadatable, org.bukkit.command.CommandSender, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder { /** * Gets the entity's current position */ - public getLocation(): org.bukkit.Location; + getLocation(): org.bukkit.Location; /** * Stores the entity's current position in the provided Location object. *

* If the provided Location is null this method does nothing and returns * null. */ - public getLocation(loc: org.bukkit.Location): org.bukkit.Location; + getLocation(loc: org.bukkit.Location): org.bukkit.Location; /** * Sets this entity's velocity */ - public setVelocity(velocity: org.bukkit.util.Vector): void; + setVelocity(velocity: org.bukkit.util.Vector): void; /** * Gets this entity's current velocity */ - public getVelocity(): org.bukkit.util.Vector; + getVelocity(): org.bukkit.util.Vector; /** * Gets the entity's height */ - public getHeight(): number; + getHeight(): number; /** * Gets the entity's width */ - public getWidth(): number; + getWidth(): number; /** * Gets the entity's current bounding box. *

* The returned bounding box reflects the entity's current location and * size. */ - public getBoundingBox(): org.bukkit.util.BoundingBox; + getBoundingBox(): org.bukkit.util.BoundingBox; /** * Returns true if the entity is supported by a block. This value is a * state updated by the server and is not recalculated unless the entity * moves. */ - public isOnGround(): boolean; + isOnGround(): boolean; /** * Gets the current world this entity resides in */ - public getWorld(): org.bukkit.World; + getWorld(): org.bukkit.World; /** * Sets the entity's rotation. *

* Note that if the entity is affected by AI, it may override this rotation. */ - public setRotation(yaw: number, pitch: number): void; + setRotation(yaw: number, pitch: number): void; /** * Teleports this entity to the given location. If this entity is riding a * vehicle, it will be dismounted prior to teleportation. */ - public teleport(location: org.bukkit.Location): boolean; + teleport(location: org.bukkit.Location): boolean; /** * Teleports this entity to the given location. If this entity is riding a * vehicle, it will be dismounted prior to teleportation. */ - public teleport(location: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + teleport(location: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; /** * Teleports this entity to the target Entity. If this entity is riding a * vehicle, it will be dismounted prior to teleportation. */ - public teleport(destination: org.bukkit.entity.Entity): boolean; + teleport(destination: org.bukkit.entity.Entity): boolean; /** * Teleports this entity to the target Entity. If this entity is riding a * vehicle, it will be dismounted prior to teleportation. */ - public teleport(destination: org.bukkit.entity.Entity, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; + teleport(destination: org.bukkit.entity.Entity, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause): boolean; /** * Returns a list of entities within a bounding box centered around this * entity */ - public getNearbyEntities(x: number, y: number, z: number): any[] /*java.util.List*/; + getNearbyEntities(x: number, y: number, z: number): any[] /*java.util.List*/; /** * Returns a unique id for this entity */ - public getEntityId(): number; + getEntityId(): number; /** * Returns the entity's current fire ticks (ticks before the entity stops * being on fire). */ - public getFireTicks(): number; + getFireTicks(): number; /** * Returns the entity's maximum fire ticks. */ - public getMaxFireTicks(): number; + getMaxFireTicks(): number; /** * Sets the entity's current fire ticks (ticks before the entity stops * being on fire). */ - public setFireTicks(ticks: number): void; + setFireTicks(ticks: number): void; /** * Mark the entity's removal. */ - public remove(): void; + remove(): void; /** * Returns true if this entity has been marked for removal. */ - public isDead(): boolean; + isDead(): boolean; /** * Returns false if the entity has died or been despawned for some other * reason. */ - public isValid(): boolean; + isValid(): boolean; /** * Gets the {@link Server} that contains this Entity */ - public getServer(): org.bukkit.Server; + getServer(): org.bukkit.Server; /** * Returns true if the entity gets persisted. *

@@ -127,77 +128,77 @@ declare namespace org { * {@link LivingEntity#setRemoveWhenFarAway(boolean)} which controls * despawning of living entities. */ - public isPersistent(): boolean; + isPersistent(): boolean; /** * Sets whether or not the entity gets persisted. */ - public setPersistent(persistent: boolean): void; + setPersistent(persistent: boolean): void; /** * Gets the primary passenger of a vehicle. For vehicles that could have * multiple passengers, this will only return the primary passenger. */ - public getPassenger(): org.bukkit.entity.Entity; + getPassenger(): org.bukkit.entity.Entity; /** * Set the passenger of a vehicle. */ - public setPassenger(passenger: org.bukkit.entity.Entity): boolean; + setPassenger(passenger: org.bukkit.entity.Entity): boolean; /** * Gets a list of passengers of this vehicle. *

* The returned list will not be directly linked to the entity's current * passengers, and no guarantees are made as to its mutability. */ - public getPassengers(): any[] /*java.util.List*/; + getPassengers(): any[] /*java.util.List*/; /** * Add a passenger to the vehicle. */ - public addPassenger(passenger: org.bukkit.entity.Entity): boolean; + addPassenger(passenger: org.bukkit.entity.Entity): boolean; /** * Remove a passenger from the vehicle. */ - public removePassenger(passenger: org.bukkit.entity.Entity): boolean; + removePassenger(passenger: org.bukkit.entity.Entity): boolean; /** * Check if a vehicle has passengers. */ - public isEmpty(): boolean; + isEmpty(): boolean; /** * Eject any passenger. */ - public eject(): boolean; + eject(): boolean; /** * Returns the distance this entity has fallen */ - public getFallDistance(): number; + getFallDistance(): number; /** * Sets the fall distance for this entity */ - public setFallDistance(distance: number): void; + setFallDistance(distance: number): void; /** * Record the last {@link EntityDamageEvent} inflicted on this entity */ - public setLastDamageCause(event: org.bukkit.event.entity.EntityDamageEvent): void; + setLastDamageCause(event: org.bukkit.event.entity.EntityDamageEvent): void; /** * Retrieve the last {@link EntityDamageEvent} inflicted on this entity. * This event may have been cancelled. */ - public getLastDamageCause(): org.bukkit.event.entity.EntityDamageEvent; + getLastDamageCause(): org.bukkit.event.entity.EntityDamageEvent; /** * Returns a unique and persistent id for this entity */ - public getUniqueId(): any; + getUniqueId(): any; /** * Gets the amount of ticks this entity has lived for. *

* This is the equivalent to "age" in entities. */ - public getTicksLived(): number; + getTicksLived(): number; /** * Sets the amount of ticks this entity has lived for. *

* This is the equivalent to "age" in entities. May not be less than one * tick. */ - public setTicksLived(value: number): void; + setTicksLived(value: number): void; /** * Performs the specified {@link EntityEffect} for this entity. *

@@ -205,26 +206,26 @@ declare namespace org { *

* If the effect is not applicable to this class of entity, it will not play. */ - public playEffect(type: org.bukkit.EntityEffect): void; + playEffect(type: org.bukkit.EntityEffect): void; /** * Get the type of the entity. */ - public getType(): org.bukkit.entity.EntityType; + getType(): org.bukkit.entity.EntityType; /** * Returns whether this entity is inside a vehicle. */ - public isInsideVehicle(): boolean; + isInsideVehicle(): boolean; /** * Leave the current vehicle. If the entity is currently in a vehicle (and * is removed from it), true will be returned, otherwise false will be * returned. */ - public leaveVehicle(): boolean; + leaveVehicle(): boolean; /** * Get the vehicle that this player is inside. If there is no vehicle, * null will be returned. */ - public getVehicle(): org.bukkit.entity.Entity; + getVehicle(): org.bukkit.entity.Entity; /** * Sets whether or not to display the mob's custom name client side. The * name will be displayed above the mob similarly to a player. @@ -232,79 +233,79 @@ declare namespace org { * This value has no effect on players, they will always display their * name. */ - public setCustomNameVisible(flag: boolean): void; + setCustomNameVisible(flag: boolean): void; /** * Gets whether or not the mob's custom name is displayed client side. *

* This value has no effect on players, they will always display their * name. */ - public isCustomNameVisible(): boolean; + isCustomNameVisible(): boolean; /** * Sets whether the entity has a team colored (default: white) glow. */ - public setGlowing(flag: boolean): void; + setGlowing(flag: boolean): void; /** * Gets whether the entity is glowing or not. */ - public isGlowing(): boolean; + isGlowing(): boolean; /** * Sets whether the entity is invulnerable or not. *

* When an entity is invulnerable it can only be damaged by players in * creative mode. */ - public setInvulnerable(flag: boolean): void; + setInvulnerable(flag: boolean): void; /** * Gets whether the entity is invulnerable or not. */ - public isInvulnerable(): boolean; + isInvulnerable(): boolean; /** * Gets whether the entity is silent or not. */ - public isSilent(): boolean; + isSilent(): boolean; /** * Sets whether the entity is silent or not. *

* When an entity is silent it will not produce any sound. */ - public setSilent(flag: boolean): void; + setSilent(flag: boolean): void; /** * Returns whether gravity applies to this entity. */ - public hasGravity(): boolean; + hasGravity(): boolean; /** * Sets whether gravity applies to this entity. */ - public setGravity(gravity: boolean): void; + setGravity(gravity: boolean): void; /** * Gets the period of time (in ticks) before this entity can use a portal. */ - public getPortalCooldown(): number; + getPortalCooldown(): number; /** * Sets the period of time (in ticks) before this entity can use a portal. */ - public setPortalCooldown(cooldown: number): void; + setPortalCooldown(cooldown: number): void; /** * Returns a set of tags for this entity. *
* Entities can have no more than 1024 tags. */ - public getScoreboardTags(): any[] /*java.util.Set*/; + getScoreboardTags(): any[] /*java.util.Set*/; /** * Add a tag to this entity. *
* Entities can have no more than 1024 tags. */ - public addScoreboardTag(tag: string): boolean; + addScoreboardTag(tag: string): boolean; /** * Removes a given tag from this entity. */ - public removeScoreboardTag(tag: string): boolean; + removeScoreboardTag(tag: string): boolean; /** * Returns the reaction of the entity when moved by a piston. */ - public getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction; + getPistonMoveReaction(): org.bukkit.block.PistonMoveReaction; /** * Get the closest cardinal {@link BlockFace} direction an entity is * currently facing. @@ -315,14 +316,14 @@ declare namespace org { * {@link Hanging} entities will override this call and thus their behavior * may be different. */ - public getFacing(): org.bukkit.block.BlockFace; + getFacing(): org.bukkit.block.BlockFace; /** * Gets the entity's current pose. * Note that the pose is only updated at the end of a tick, so may be * inconsistent with other methods. eg {@link Player#isSneaking()} being * true does not imply the current pose will be {@link Pose#SNEAKING} */ - public getPose(): org.bukkit.entity.Pose; + getPose(): org.bukkit.entity.Pose; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts b/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts index b4af98fb..2c9a5d65 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EntityType.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class EntityType { + // @ts-ignore + class EntityType implements org.bukkit.Keyed { public static DROPPED_ITEM: org.bukkit.entity.EntityType; public static EXPERIENCE_ORB: org.bukkit.entity.EntityType; public static AREA_EFFECT_CLOUD: org.bukkit.entity.EntityType; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts index 3b0e738a..a5de7f49 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.Spell.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Evoker { - class Spell { + // @ts-ignore + class Spell { public static NONE: org.bukkit.entity.Evoker.Spell; public static SUMMON: org.bukkit.entity.Evoker.Spell; public static FANGS: org.bukkit.entity.Evoker.Spell; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts index 8d9cfec8..bf7e1068 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Evoker.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Evoker { + // @ts-ignore + interface Evoker extends org.bukkit.entity.Spellcaster { /** * Gets the {@link Spell} the Evoker is currently using. */ - public getCurrentSpell(): org.bukkit.entity.Evoker.Spell; + getCurrentSpell(): org.bukkit.entity.Evoker.Spell; /** * Sets the {@link Spell} the Evoker is currently using. */ - public setCurrentSpell(spell: org.bukkit.entity.Evoker.Spell): void; + setCurrentSpell(spell: org.bukkit.entity.Evoker.Spell): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts b/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts index 160f5e48..e8be6a92 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.EvokerFangs.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class EvokerFangs { + // @ts-ignore + interface EvokerFangs extends org.bukkit.entity.Entity { /** * Gets the {@link LivingEntity} which summoned the fangs. */ - public getOwner(): org.bukkit.entity.LivingEntity; + getOwner(): org.bukkit.entity.LivingEntity; /** * Sets the {@link LivingEntity} which summoned the fangs. */ - public setOwner(owner: org.bukkit.entity.LivingEntity): void; + setOwner(owner: org.bukkit.entity.LivingEntity): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts b/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts index 90edb45b..6ed2be2e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ExperienceOrb.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class ExperienceOrb { + // @ts-ignore + interface ExperienceOrb extends org.bukkit.entity.Entity { /** * Gets how much experience is contained within this orb */ - public getExperience(): number; + getExperience(): number; /** * Sets how much experience is contained within this orb */ - public setExperience(value: number): void; + setExperience(value: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts b/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts index 000dab10..9e87f5e4 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Explosive.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Explosive { + // @ts-ignore + interface Explosive extends org.bukkit.entity.Entity { /** * Set the radius affected by this explosive's explosion */ - public setYield(yield: number): void; + setYield(yield: number): void; /** * Return the radius or yield of this explosive's explosion */ - public getYield(): number; + getYield(): number; /** * Set whether or not this explosive's explosion causes fire */ - public setIsIncendiary(isIncendiary: boolean): void; + setIsIncendiary(isIncendiary: boolean): void; /** * Return whether or not this explosive creates a fire when exploding */ - public isIncendiary(): boolean; + isIncendiary(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts b/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts index e13aff66..a8d1d91c 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.FallingBlock.ts @@ -1,31 +1,32 @@ declare namespace org { namespace bukkit { namespace entity { - class FallingBlock { + // @ts-ignore + interface FallingBlock extends org.bukkit.entity.Entity { /** * Get the Material of the falling block */ - public getMaterial(): org.bukkit.Material; + getMaterial(): org.bukkit.Material; /** * Get the data for the falling block */ - public getBlockData(): org.bukkit.block.data.BlockData; + getBlockData(): org.bukkit.block.data.BlockData; /** * Get if the falling block will break into an item if it cannot be placed */ - public getDropItem(): boolean; + getDropItem(): boolean; /** * Set if the falling block will break into an item if it cannot be placed */ - public setDropItem(drop: boolean): void; + setDropItem(drop: boolean): void; /** * Get the HurtEntities state of this block. */ - public canHurtEntities(): boolean; + canHurtEntities(): boolean; /** * Set the HurtEntities state of this block. */ - public setHurtEntities(hurtEntities: boolean): void; + setHurtEntities(hurtEntities: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts index 299a894f..403a72af 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Fireball.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Fireball { + // @ts-ignore + interface Fireball extends org.bukkit.entity.Projectile, org.bukkit.entity.Explosive { /** * Fireballs fly straight and do not take setVelocity(...) well. */ - public setDirection(direction: org.bukkit.util.Vector): void; + setDirection(direction: org.bukkit.util.Vector): void; /** * Retrieve the direction this fireball is heading toward */ - public getDirection(): org.bukkit.util.Vector; + getDirection(): org.bukkit.util.Vector; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts b/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts index 44d32ccf..271da48c 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Firework.ts @@ -1,30 +1,31 @@ declare namespace org { namespace bukkit { namespace entity { - class Firework { + // @ts-ignore + interface Firework extends org.bukkit.entity.Entity { /** * Get a copy of the fireworks meta */ - public getFireworkMeta(): org.bukkit.inventory.meta.FireworkMeta; + getFireworkMeta(): org.bukkit.inventory.meta.FireworkMeta; /** * Apply the provided meta to the fireworks */ - public setFireworkMeta(meta: org.bukkit.inventory.meta.FireworkMeta): void; + setFireworkMeta(meta: org.bukkit.inventory.meta.FireworkMeta): void; /** * Cause this firework to explode at earliest opportunity, as if it has no * remaining fuse. */ - public detonate(): void; + detonate(): void; /** * Gets if the firework was shot at an angle (i.e. from a crossbow). * A firework which was not shot at an angle will fly straight upwards. */ - public isShotAtAngle(): boolean; + isShotAtAngle(): boolean; /** * Sets if the firework was shot at an angle (i.e. from a crossbow). * A firework which was not shot at an angle will fly straight upwards. */ - public setShotAtAngle(shotAtAngle: boolean): void; + setShotAtAngle(shotAtAngle: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts index 195e4418..f4feb556 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Fish.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Fish { + // @ts-ignore + interface Fish extends org.bukkit.entity.WaterMob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts b/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts index 377c7579..195f60b0 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.FishHook.ts @@ -1,21 +1,22 @@ declare namespace org { namespace bukkit { namespace entity { - class FishHook { + // @ts-ignore + interface FishHook extends org.bukkit.entity.Projectile { /** * Gets the chance of a fish biting. *

* 0.0 = No Chance.
* 1.0 = Instant catch. */ - public getBiteChance(): number; + getBiteChance(): number; /** * Sets the chance of a fish biting. *

* 0.0 = No Chance.
* 1.0 = Instant catch. */ - public setBiteChance(chance: number): void; + setBiteChance(chance: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts b/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts index fcf02dd0..f0503044 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Flying.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Flying { + // @ts-ignore + interface Flying extends org.bukkit.entity.Mob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts index be283fed..5be1d58c 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Fox.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Fox { - class Type { + // @ts-ignore + class Type { public static RED: org.bukkit.entity.Fox.Type; public static SNOW: org.bukkit.entity.Fox.Type; public static values(): org.bukkit.entity.Fox.Type[]; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts b/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts index e7458c2d..827f9a9b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Fox.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace entity { - class Fox { + // @ts-ignore + interface Fox extends org.bukkit.entity.Animals, org.bukkit.entity.Sittable { /** * Gets the current type of this fox. */ - public getFoxType(): org.bukkit.entity.Fox.Type; + getFoxType(): org.bukkit.entity.Fox.Type; /** * Sets the current type of this fox. */ - public setFoxType(type: org.bukkit.entity.Fox.Type): void; + setFoxType(type: org.bukkit.entity.Fox.Type): void; /** * Checks if this animal is crouching */ - public isCrouching(): boolean; + isCrouching(): boolean; /** * Sets if this animal is crouching. */ - public setCrouching(crouching: boolean): void; + setCrouching(crouching: boolean): void; /** * Sets if this animal is sleeping. */ - public setSleeping(sleeping: boolean): void; + setSleeping(sleeping: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts index c43b32b6..8219923f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ghast.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Ghast { + // @ts-ignore + interface Ghast extends org.bukkit.entity.Flying { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts index feafa53f..903d707f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Giant.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Giant { + // @ts-ignore + interface Giant extends org.bukkit.entity.Monster { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts b/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts index df5a05f2..c4a171ce 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Golem.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Golem { + // @ts-ignore + interface Golem extends org.bukkit.entity.Creature { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts b/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts index 809d2715..f7a7bf06 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Guardian.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace entity { - class Guardian { + // @ts-ignore + interface Guardian extends org.bukkit.entity.Monster { /** * Check if the Guardian is an elder Guardian */ - public isElder(): boolean; - public setElder(shouldBeElder: boolean): void; + isElder(): boolean; + setElder(shouldBeElder: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts b/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts index 35eddb46..4e7bf3fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Hanging.ts @@ -1,13 +1,14 @@ declare namespace org { namespace bukkit { namespace entity { - class Hanging { + // @ts-ignore + interface Hanging extends org.bukkit.entity.Entity, org.bukkit.material.Attachable { /** * Sets the direction of the hanging entity, potentially overriding rules * of placement. Note that if the result is not valid the object would * normally drop as an item. */ - public setFacingDirection(face: org.bukkit.block.BlockFace, force: boolean): boolean; + setFacingDirection(face: org.bukkit.block.BlockFace, force: boolean): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts index d71e5983..bf40ac29 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Color.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Horse { - class Color { + // @ts-ignore + class Color { public static WHITE: org.bukkit.entity.Horse.Color; public static CREAMY: org.bukkit.entity.Horse.Color; public static CHESTNUT: org.bukkit.entity.Horse.Color; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts index 0c607cf3..2503e02b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Style.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Horse { - class Style { + // @ts-ignore + class Style { public static NONE: org.bukkit.entity.Horse.Style; public static WHITE: org.bukkit.entity.Horse.Style; public static WHITEFIELD: org.bukkit.entity.Horse.Style; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts index 60b3012d..fff89432 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.Variant.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Horse { - class Variant { + // @ts-ignore + class Variant { public static HORSE: org.bukkit.entity.Horse.Variant; public static DONKEY: org.bukkit.entity.Horse.Variant; public static MULE: org.bukkit.entity.Horse.Variant; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts b/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts index 4b6a9b06..5be39be5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Horse.ts @@ -1,21 +1,22 @@ declare namespace org { namespace bukkit { namespace entity { - class Horse { + // @ts-ignore + interface Horse extends org.bukkit.entity.AbstractHorse { /** * Gets the horse's color. *

* Colors only apply to horses, not to donkeys, mules, skeleton horses * or undead horses. */ - public getColor(): org.bukkit.entity.Horse.Color; + getColor(): org.bukkit.entity.Horse.Color; /** * Sets the horse's color. *

* Attempting to set a color for any donkey, mule, skeleton horse or * undead horse will not result in a change. */ - public setColor(color: org.bukkit.entity.Horse.Color): void; + setColor(color: org.bukkit.entity.Horse.Color): void; /** * Gets the horse's style. * Styles determine what kind of markings or patterns a horse has. @@ -23,7 +24,7 @@ declare namespace org { * Styles only apply to horses, not to donkeys, mules, skeleton horses * or undead horses. */ - public getStyle(): org.bukkit.entity.Horse.Style; + getStyle(): org.bukkit.entity.Horse.Style; /** * Sets the style of this horse. * Styles determine what kind of markings or patterns a horse has. @@ -31,10 +32,10 @@ declare namespace org { * Attempting to set a style for any donkey, mule, skeleton horse or * undead horse will not result in a change. */ - public setStyle(style: org.bukkit.entity.Horse.Style): void; - public isCarryingChest(): boolean; - public setCarryingChest(chest: boolean): void; - public getInventory(): org.bukkit.inventory.HorseInventory; + setStyle(style: org.bukkit.entity.Horse.Style): void; + isCarryingChest(): boolean; + setCarryingChest(chest: boolean): void; + getInventory(): org.bukkit.inventory.HorseInventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts index a51b734b..6e1bc648 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.HumanEntity.ts @@ -1,96 +1,97 @@ declare namespace org { namespace bukkit { namespace entity { - class HumanEntity { + // @ts-ignore + interface HumanEntity extends org.bukkit.entity.LivingEntity, org.bukkit.entity.AnimalTamer, org.bukkit.inventory.InventoryHolder { /** * Returns the name of this player */ - public getName(): string; + getName(): string; /** * Get the player's inventory. */ - public getInventory(): org.bukkit.inventory.PlayerInventory; + getInventory(): org.bukkit.inventory.PlayerInventory; /** * Get the player's EnderChest inventory */ - public getEnderChest(): org.bukkit.inventory.Inventory; + getEnderChest(): org.bukkit.inventory.Inventory; /** * Gets the player's selected main hand */ - public getMainHand(): org.bukkit.inventory.MainHand; + getMainHand(): org.bukkit.inventory.MainHand; /** * If the player currently has an inventory window open, this method will * set a property of that window, such as the state of a progress bar. */ - public setWindowProperty(prop: org.bukkit.inventory.InventoryView.Property, value: number): boolean; + setWindowProperty(prop: org.bukkit.inventory.InventoryView.Property, value: number): boolean; /** * Gets the inventory view the player is currently viewing. If they do not * have an inventory window open, it returns their internal crafting view. */ - public getOpenInventory(): org.bukkit.inventory.InventoryView; + getOpenInventory(): org.bukkit.inventory.InventoryView; /** * Opens an inventory window with the specified inventory on the top and * the player's inventory on the bottom. */ - public openInventory(inventory: org.bukkit.inventory.Inventory): org.bukkit.inventory.InventoryView; + openInventory(inventory: org.bukkit.inventory.Inventory): org.bukkit.inventory.InventoryView; /** * Opens an empty workbench inventory window with the player's inventory * on the bottom. */ - public openWorkbench(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView; + openWorkbench(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView; /** * Opens an empty enchanting inventory window with the player's inventory * on the bottom. */ - public openEnchanting(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView; + openEnchanting(location: org.bukkit.Location, force: boolean): org.bukkit.inventory.InventoryView; /** * Opens an inventory window to the specified inventory view. */ - public openInventory(inventory: org.bukkit.inventory.InventoryView): void; + openInventory(inventory: org.bukkit.inventory.InventoryView): void; /** * Starts a trade between the player and the villager. * Note that only one player may trade with a villager at once. You must use * the force parameter for this. */ - public openMerchant(trader: org.bukkit.entity.Villager, force: boolean): org.bukkit.inventory.InventoryView; + openMerchant(trader: org.bukkit.entity.Villager, force: boolean): org.bukkit.inventory.InventoryView; /** * Starts a trade between the player and the merchant. * Note that only one player may trade with a merchant at once. You must use * the force parameter for this. */ - public openMerchant(merchant: org.bukkit.inventory.Merchant, force: boolean): org.bukkit.inventory.InventoryView; + openMerchant(merchant: org.bukkit.inventory.Merchant, force: boolean): org.bukkit.inventory.InventoryView; /** * Force-closes the currently open inventory view for this player, if any. */ - public closeInventory(): void; + closeInventory(): void; /** * Returns the ItemStack currently in your hand, can be empty. */ - public getItemInHand(): org.bukkit.inventory.ItemStack; + getItemInHand(): org.bukkit.inventory.ItemStack; /** * Sets the item to the given ItemStack, this will replace whatever the * user was holding. */ - public setItemInHand(item: org.bukkit.inventory.ItemStack): void; + setItemInHand(item: org.bukkit.inventory.ItemStack): void; /** * Returns the ItemStack currently on your cursor, can be empty. Will * always be empty if the player currently has no open window. */ - public getItemOnCursor(): org.bukkit.inventory.ItemStack; + getItemOnCursor(): org.bukkit.inventory.ItemStack; /** * Sets the item to the given ItemStack, this will replace whatever the * user was moving. Will always be empty if the player currently has no * open window. */ - public setItemOnCursor(item: org.bukkit.inventory.ItemStack): void; + setItemOnCursor(item: org.bukkit.inventory.ItemStack): void; /** * Check whether a cooldown is active on the specified material. */ - public hasCooldown(material: org.bukkit.Material): boolean; + hasCooldown(material: org.bukkit.Material): boolean; /** * Get the cooldown time in ticks remaining for the specified material. */ - public getCooldown(material: org.bukkit.Material): number; + getCooldown(material: org.bukkit.Material): number; /** * Set a cooldown on the specified material for a certain amount of ticks. * ticks. 0 ticks will result in the removal of the cooldown. @@ -101,24 +102,24 @@ declare namespace org { * Note that cooldowns will not by themselves stop an item from being used * for attacking. */ - public setCooldown(material: org.bukkit.Material, ticks: number): void; + setCooldown(material: org.bukkit.Material, ticks: number): void; /** * Get the sleep ticks of the player. This value may be capped. */ - public getSleepTicks(): number; + getSleepTicks(): number; /** * Gets the Location where the player will spawn at their bed, null if * they have not slept in one or their current bed spawn is invalid. */ - public getBedSpawnLocation(): org.bukkit.Location; + getBedSpawnLocation(): org.bukkit.Location; /** * Sets the Location where the player will spawn at their bed. */ - public setBedSpawnLocation(location: org.bukkit.Location): void; + setBedSpawnLocation(location: org.bukkit.Location): void; /** * Sets the Location where the player will spawn at their bed. */ - public setBedSpawnLocation(location: org.bukkit.Location, force: boolean): void; + setBedSpawnLocation(location: org.bukkit.Location, force: boolean): void; /** * Attempts to make the entity sleep at the given location. *
@@ -126,62 +127,62 @@ declare namespace org { * location. The game may also enforce other requirements such as proximity * to bed, monsters, and dimension type if force is not set. */ - public sleep(location: org.bukkit.Location, force: boolean): boolean; + sleep(location: org.bukkit.Location, force: boolean): boolean; /** * Causes the player to wakeup if they are currently sleeping. */ - public wakeup(setSpawnLocation: boolean): void; + wakeup(setSpawnLocation: boolean): void; /** * Gets the location of the bed the player is currently sleeping in */ - public getBedLocation(): org.bukkit.Location; + getBedLocation(): org.bukkit.Location; /** * Gets this human's current {@link GameMode} */ - public getGameMode(): org.bukkit.GameMode; + getGameMode(): org.bukkit.GameMode; /** * Sets this human's current {@link GameMode} */ - public setGameMode(mode: org.bukkit.GameMode): void; + setGameMode(mode: org.bukkit.GameMode): void; /** * Check if the player is currently blocking (ie with a shield). */ - public isBlocking(): boolean; + isBlocking(): boolean; /** * Check if the player currently has their hand raised (ie about to begin * blocking). */ - public isHandRaised(): boolean; + isHandRaised(): boolean; /** * Get the total amount of experience required for the player to level */ - public getExpToLevel(): number; + getExpToLevel(): number; /** * Discover a recipe for this player such that it has not already been * discovered. This method will add the key's associated recipe to the * player's recipe book. */ - public discoverRecipe(recipe: org.bukkit.NamespacedKey): boolean; + discoverRecipe(recipe: org.bukkit.NamespacedKey): boolean; /** * Discover a collection of recipes for this player such that they have not * already been discovered. This method will add the keys' associated * recipes to the player's recipe book. If a recipe in the provided * collection has already been discovered, it will be silently ignored. */ - public discoverRecipes(recipes: any[] /*java.util.Collection*/): number; + discoverRecipes(recipes: any[] /*java.util.Collection*/): number; /** * Undiscover a recipe for this player such that it has already been * discovered. This method will remove the key's associated recipe from the * player's recipe book. */ - public undiscoverRecipe(recipe: org.bukkit.NamespacedKey): boolean; + undiscoverRecipe(recipe: org.bukkit.NamespacedKey): boolean; /** * Undiscover a collection of recipes for this player such that they have * already been discovered. This method will remove the keys' associated * recipes from the player's recipe book. If a recipe in the provided * collection has not yet been discovered, it will be silently ignored. */ - public undiscoverRecipes(recipes: any[] /*java.util.Collection*/): number; + undiscoverRecipes(recipes: any[] /*java.util.Collection*/): number; /** * Gets the entity currently perched on the left shoulder or null if no * entity. @@ -189,7 +190,7 @@ declare namespace org { * The returned entity will not be spawned within the world, so most * operations are invalid unless the entity is first spawned in. */ - public getShoulderEntityLeft(): org.bukkit.entity.Entity; + getShoulderEntityLeft(): org.bukkit.entity.Entity; /** * Sets the entity currently perched on the left shoulder, or null to * remove. This method will remove the entity from the world. @@ -200,7 +201,7 @@ declare namespace org { * Also note that the client will currently only render {@link Parrot} * entities. */ - public setShoulderEntityLeft(entity: org.bukkit.entity.Entity): void; + setShoulderEntityLeft(entity: org.bukkit.entity.Entity): void; /** * Gets the entity currently perched on the right shoulder or null if no * entity. @@ -208,7 +209,7 @@ declare namespace org { * The returned entity will not be spawned within the world, so most * operations are invalid unless the entity is first spawned in. */ - public getShoulderEntityRight(): org.bukkit.entity.Entity; + getShoulderEntityRight(): org.bukkit.entity.Entity; /** * Sets the entity currently perched on the right shoulder, or null to * remove. This method will remove the entity from the world. @@ -219,7 +220,7 @@ declare namespace org { * Also note that the client will currently only render {@link Parrot} * entities. */ - public setShoulderEntityRight(entity: org.bukkit.entity.Entity): void; + setShoulderEntityRight(entity: org.bukkit.entity.Entity): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts b/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts index a98150f1..f1cf1de8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Husk.ts @@ -1,18 +1,19 @@ declare namespace org { namespace bukkit { namespace entity { - class Husk { + // @ts-ignore + interface Husk extends org.bukkit.entity.Zombie { /** * Get if this entity is in the process of converting to a Zombie as a * result of being underwater. */ - public isConverting(): boolean; + isConverting(): boolean; /** * Gets the amount of ticks until this entity will be converted to a Zombie * as a result of being underwater. * When this reaches 0, the entity will be converted. */ - public getConversionTime(): number; + getConversionTime(): number; /** * Sets the amount of ticks until this entity will be converted to a Zombie * as a result of being underwater. @@ -20,7 +21,7 @@ declare namespace org { * will stop the current conversion process without converting the current * entity. */ - public setConversionTime(time: number): void; + setConversionTime(time: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts index 2994a159..9a30e8e8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Illager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Illager { + // @ts-ignore + interface Illager extends org.bukkit.entity.Raider { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts b/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts index 02cd2282..6ed3e41f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Illusioner.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Illusioner { + // @ts-ignore + interface Illusioner extends org.bukkit.entity.Spellcaster { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts b/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts index 91c5abf1..c87bb04e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.IronGolem.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class IronGolem { + // @ts-ignore + interface IronGolem extends org.bukkit.entity.Golem { /** * Gets whether this iron golem was built by a player. */ - public isPlayerCreated(): boolean; + isPlayerCreated(): boolean; /** * Sets whether this iron golem was built by a player or not. */ - public setPlayerCreated(playerCreated: boolean): void; + setPlayerCreated(playerCreated: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Item.ts b/packages/bukkit/src/typings/org.bukkit.entity.Item.ts index 2f22b715..2a2daae5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Item.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Item.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Item { + // @ts-ignore + interface Item extends org.bukkit.entity.Entity { /** * Gets the item stack associated with this item drop. */ - public getItemStack(): org.bukkit.inventory.ItemStack; + getItemStack(): org.bukkit.inventory.ItemStack; /** * Sets the item stack associated with this item drop. */ - public setItemStack(stack: org.bukkit.inventory.ItemStack): void; + setItemStack(stack: org.bukkit.inventory.ItemStack): void; /** * Gets the delay before this Item is available to be picked up by players */ - public getPickupDelay(): number; + getPickupDelay(): number; /** * Sets the delay before this Item is available to be picked up by players */ - public setPickupDelay(delay: number): void; + setPickupDelay(delay: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts b/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts index da6e73a7..7d5547a7 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ItemFrame.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace entity { - class ItemFrame { + // @ts-ignore + interface ItemFrame extends org.bukkit.entity.Hanging { /** * Get the item in this frame */ - public getItem(): org.bukkit.inventory.ItemStack; + getItem(): org.bukkit.inventory.ItemStack; /** * Set the item in this frame */ - public setItem(item: org.bukkit.inventory.ItemStack): void; + setItem(item: org.bukkit.inventory.ItemStack): void; /** * Set the item in this frame */ - public setItem(item: org.bukkit.inventory.ItemStack, playSound: boolean): void; + setItem(item: org.bukkit.inventory.ItemStack, playSound: boolean): void; /** * Get the rotation of the frame's item */ - public getRotation(): org.bukkit.Rotation; + getRotation(): org.bukkit.Rotation; /** * Set the rotation of the frame's item */ - public setRotation(rotation: org.bukkit.Rotation): void; + setRotation(rotation: org.bukkit.Rotation): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts index efb24d02..20488717 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LargeFireball.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class LargeFireball { + // @ts-ignore + interface LargeFireball extends org.bukkit.entity.Fireball { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts b/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts index bb14026f..3e8e0288 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LeashHitch.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class LeashHitch { + // @ts-ignore + interface LeashHitch extends org.bukkit.entity.Hanging { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts b/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts index 20d91d6e..03f70acd 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LightningStrike.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace entity { - class LightningStrike { + // @ts-ignore + interface LightningStrike extends org.bukkit.entity.Entity { /** * Returns whether the strike is an effect that does no damage. */ - public isEffect(): boolean; + isEffect(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts index ce0fdafb..cf978ed8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LingeringPotion.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class LingeringPotion { + // @ts-ignore + interface LingeringPotion extends org.bukkit.entity.ThrownPotion { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts b/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts index 514fe577..5397a2de 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LivingEntity.ts @@ -1,26 +1,27 @@ declare namespace org { namespace bukkit { namespace entity { - class LivingEntity { + // @ts-ignore + interface LivingEntity extends org.bukkit.attribute.Attributable, org.bukkit.entity.Damageable, org.bukkit.projectiles.ProjectileSource { /** * Gets the height of the living entity's eyes above its Location. */ - public getEyeHeight(): number; + getEyeHeight(): number; /** * Gets the height of the living entity's eyes above its Location. */ - public getEyeHeight(ignorePose: boolean): number; + getEyeHeight(ignorePose: boolean): number; /** * Get a Location detailing the current eye position of the living entity. */ - public getEyeLocation(): org.bukkit.Location; + getEyeLocation(): org.bukkit.Location; /** * Gets all blocks along the living entity's line of sight. *

* This list contains all blocks from the living entity's eye position to * target inclusive. This method considers all blocks as 1x1x1 in size. */ - public getLineOfSight(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/; + getLineOfSight(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/; /** * Gets the block that the living entity has targeted. *

@@ -28,14 +29,14 @@ declare namespace org { * collision shapes into account, see {@link #getTargetBlockExact(int, * FluidCollisionMode)}. */ - public getTargetBlock(transparent: any[] /*java.util.Set*/, maxDistance: number): org.bukkit.block.Block; + getTargetBlock(transparent: any[] /*java.util.Set*/, maxDistance: number): org.bukkit.block.Block; /** * Gets the last two blocks along the living entity's line of sight. *

* The target block will be the last block in the list. This method * considers all blocks as 1x1x1 in size. */ - public getLastTwoTargetBlocks(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/; + getLastTwoTargetBlocks(transparent: any[] /*java.util.Set*/, maxDistance: number): any[] /*java.util.List*/; /** * Gets the block that the living entity has targeted. *

@@ -45,7 +46,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public getTargetBlockExact(maxDistance: number): org.bukkit.block.Block; + getTargetBlockExact(maxDistance: number): org.bukkit.block.Block; /** * Gets the block that the living entity has targeted. *

@@ -54,7 +55,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public getTargetBlockExact(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.block.Block; + getTargetBlockExact(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.block.Block; /** * Performs a ray trace that provides information on the targeted block. *

@@ -64,7 +65,7 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTraceBlocks(maxDistance: number): org.bukkit.util.RayTraceResult; + rayTraceBlocks(maxDistance: number): org.bukkit.util.RayTraceResult; /** * Performs a ray trace that provides information on the targeted block. *

@@ -73,35 +74,35 @@ declare namespace org { * This may cause loading of chunks! Some implementations may impose * artificial restrictions on the maximum distance. */ - public rayTraceBlocks(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; + rayTraceBlocks(maxDistance: number, fluidCollisionMode: org.bukkit.FluidCollisionMode): org.bukkit.util.RayTraceResult; /** * Returns the amount of air that the living entity has remaining, in * ticks. */ - public getRemainingAir(): number; + getRemainingAir(): number; /** * Sets the amount of air that the living entity has remaining, in ticks. */ - public setRemainingAir(ticks: number): void; + setRemainingAir(ticks: number): void; /** * Returns the maximum amount of air the living entity can have, in ticks. */ - public getMaximumAir(): number; + getMaximumAir(): number; /** * Sets the maximum amount of air the living entity can have, in ticks. */ - public setMaximumAir(ticks: number): void; + setMaximumAir(ticks: number): void; /** * Returns the living entity's current maximum no damage ticks. *

* This is the maximum duration in which the living entity will not take * damage. */ - public getMaximumNoDamageTicks(): number; + getMaximumNoDamageTicks(): number; /** * Sets the living entity's current maximum no damage ticks. */ - public setMaximumNoDamageTicks(ticks: number): void; + setMaximumNoDamageTicks(ticks: number): void; /** * Returns the living entity's last damage taken in the current no damage * ticks time. @@ -109,102 +110,102 @@ declare namespace org { * Only damage higher than this amount will further damage the living * entity. */ - public getLastDamage(): number; + getLastDamage(): number; /** * Sets the damage dealt within the current no damage ticks time period. */ - public setLastDamage(damage: number): void; + setLastDamage(damage: number): void; /** * Returns the living entity's current no damage ticks. */ - public getNoDamageTicks(): number; + getNoDamageTicks(): number; /** * Sets the living entity's current no damage ticks. */ - public setNoDamageTicks(ticks: number): void; + setNoDamageTicks(ticks: number): void; /** * Gets the player identified as the killer of the living entity. *

* May be null. */ - public getKiller(): org.bukkit.entity.Player; + getKiller(): org.bukkit.entity.Player; /** * Adds the given {@link PotionEffect} to the living entity. *

* Only one potion effect can be present for a given {@link * PotionEffectType}. */ - public addPotionEffect(effect: org.bukkit.potion.PotionEffect): boolean; + addPotionEffect(effect: org.bukkit.potion.PotionEffect): boolean; /** * Adds the given {@link PotionEffect} to the living entity. *

* Only one potion effect can be present for a given {@link * PotionEffectType}. */ - public addPotionEffect(effect: org.bukkit.potion.PotionEffect, force: boolean): boolean; + addPotionEffect(effect: org.bukkit.potion.PotionEffect, force: boolean): boolean; /** * Attempts to add all of the given {@link PotionEffect} to the living * entity. */ - public addPotionEffects(effects: any[] /*java.util.Collection*/): boolean; + addPotionEffects(effects: any[] /*java.util.Collection*/): boolean; /** * Returns whether the living entity already has an existing effect of * the given {@link PotionEffectType} applied to it. */ - public hasPotionEffect(type: org.bukkit.potion.PotionEffectType): boolean; + hasPotionEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Returns the active {@link PotionEffect} of the specified type. *

* If the effect is not present on the entity then null will be returned. */ - public getPotionEffect(type: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionEffect; + getPotionEffect(type: org.bukkit.potion.PotionEffectType): org.bukkit.potion.PotionEffect; /** * Removes any effects present of the given {@link PotionEffectType}. */ - public removePotionEffect(type: org.bukkit.potion.PotionEffectType): void; + removePotionEffect(type: org.bukkit.potion.PotionEffectType): void; /** * Returns all currently active {@link PotionEffect}s on the living * entity. */ - public getActivePotionEffects(): any[] /*java.util.Collection*/; + getActivePotionEffects(): any[] /*java.util.Collection*/; /** * Checks whether the living entity has block line of sight to another. *

* This uses the same algorithm that hostile mobs use to find the closest * player. */ - public hasLineOfSight(other: org.bukkit.entity.Entity): boolean; + hasLineOfSight(other: org.bukkit.entity.Entity): boolean; /** * Returns if the living entity despawns when away from players or not. *

* By default, animals are not removed while other mobs are. */ - public getRemoveWhenFarAway(): boolean; + getRemoveWhenFarAway(): boolean; /** * Sets whether or not the living entity despawns when away from players * or not. */ - public setRemoveWhenFarAway(remove: boolean): void; + setRemoveWhenFarAway(remove: boolean): void; /** * Gets the inventory with the equipment worn by the living entity. */ - public getEquipment(): org.bukkit.inventory.EntityEquipment; + getEquipment(): org.bukkit.inventory.EntityEquipment; /** * Sets whether or not the living entity can pick up items. */ - public setCanPickupItems(pickup: boolean): void; + setCanPickupItems(pickup: boolean): void; /** * Gets if the living entity can pick up items. */ - public getCanPickupItems(): boolean; + getCanPickupItems(): boolean; /** * Returns whether the entity is currently leashed. */ - public isLeashed(): boolean; + isLeashed(): boolean; /** * Gets the entity that is currently leading this entity. */ - public getLeashHolder(): org.bukkit.entity.Entity; + getLeashHolder(): org.bukkit.entity.Entity; /** * Sets the leash on this entity to be held by the supplied entity. *

@@ -212,42 +213,42 @@ declare namespace org { * Non-living entities excluding leashes will not persist as leash * holders. */ - public setLeashHolder(holder: org.bukkit.entity.Entity): boolean; + setLeashHolder(holder: org.bukkit.entity.Entity): boolean; /** * Checks to see if an entity is gliding, such as using an Elytra. */ - public isGliding(): boolean; + isGliding(): boolean; /** * Makes entity start or stop gliding. This will work even if an Elytra * is not equipped, but will be reverted by the server immediately after * unless an event-cancelling mechanism is put in place. */ - public setGliding(gliding: boolean): void; + setGliding(gliding: boolean): void; /** * Checks to see if an entity is swimming. */ - public isSwimming(): boolean; + isSwimming(): boolean; /** * Makes entity start or stop swimming. * This may have unexpected results if the entity is not in water. */ - public setSwimming(swimming: boolean): void; + setSwimming(swimming: boolean): void; /** * Checks to see if an entity is currently using the Riptide enchantment. */ - public isRiptiding(): boolean; + isRiptiding(): boolean; /** * Returns whether this entity is slumbering. */ - public isSleeping(): boolean; + isSleeping(): boolean; /** * Sets whether an entity will have AI. */ - public setAI(ai: boolean): void; + setAI(ai: boolean): void; /** * Checks whether an entity has AI. */ - public hasAI(): boolean; + hasAI(): boolean; /** * Set if this entity will be subject to collisions other entities. *

@@ -255,7 +256,7 @@ declare namespace org { * set to false on both the collidee and the collidant to ensure no * collisions take place. */ - public setCollidable(collidable: boolean): void; + setCollidable(collidable: boolean): void; /** * Gets if this entity is subject to collisions with other entities. *

@@ -263,21 +264,21 @@ declare namespace org { * not whether the entity is non-collidable for other reasons such as being * dead. */ - public isCollidable(): boolean; + isCollidable(): boolean; /** * Returns the value of the memory specified. *

* Note that the value is null when the specific entity does not have that * value by default. */ - public getMemory(memoryKey: org.bukkit.entity.memory.MemoryKey): any; + getMemory(memoryKey: org.bukkit.entity.memory.MemoryKey): any; /** * Sets the value of the memory specified. *

* Note that the value will not be persisted when the specific entity does * not have that value by default. */ - public setMemory(memoryKey: org.bukkit.entity.memory.MemoryKey, memoryValue: any): void; + setMemory(memoryKey: org.bukkit.entity.memory.MemoryKey, memoryValue: any): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts b/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts index 45f497c8..e2140cca 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Llama.Color.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Llama { - class Color { + // @ts-ignore + class Color { public static CREAMY: org.bukkit.entity.Llama.Color; public static WHITE: org.bukkit.entity.Llama.Color; public static BROWN: org.bukkit.entity.Llama.Color; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts b/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts index b460fb3f..14b27dcb 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Llama.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace entity { - class Llama { + // @ts-ignore + interface Llama extends org.bukkit.entity.ChestedHorse { /** * Gets the llama's color. */ - public getColor(): org.bukkit.entity.Llama.Color; + getColor(): org.bukkit.entity.Llama.Color; /** * Sets the llama's color. */ - public setColor(color: org.bukkit.entity.Llama.Color): void; + setColor(color: org.bukkit.entity.Llama.Color): void; /** * Gets the llama's strength. A higher strength llama will have more * inventory slots and be more threatening to entities. */ - public getStrength(): number; + getStrength(): number; /** * Sets the llama's strength. A higher strength llama will have more * inventory slots and be more threatening to entities. Inventory slots are * equal to strength * 3. */ - public setStrength(strength: number): void; - public getInventory(): org.bukkit.inventory.LlamaInventory; + setStrength(strength: number): void; + getInventory(): org.bukkit.inventory.LlamaInventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts b/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts index 84780afd..dc429021 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.LlamaSpit.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class LlamaSpit { + // @ts-ignore + interface LlamaSpit extends org.bukkit.entity.Projectile { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts b/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts index 47c25bd3..846dc4a4 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.MagmaCube.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class MagmaCube { + // @ts-ignore + interface MagmaCube extends org.bukkit.entity.Slime { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts index de56744e..302a92f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Minecart.ts @@ -1,88 +1,89 @@ declare namespace org { namespace bukkit { namespace entity { - class Minecart { + // @ts-ignore + interface Minecart extends org.bukkit.entity.Vehicle { /** * Sets a minecart's damage. */ - public setDamage(damage: number): void; + setDamage(damage: number): void; /** * Gets a minecart's damage. */ - public getDamage(): number; + getDamage(): number; /** * Gets the maximum speed of a minecart. The speed is unrelated to the * velocity. */ - public getMaxSpeed(): number; + getMaxSpeed(): number; /** * Sets the maximum speed of a minecart. Must be nonnegative. Default is * 0.4D. */ - public setMaxSpeed(speed: number): void; + setMaxSpeed(speed: number): void; /** * Returns whether this minecart will slow down faster without a passenger * occupying it */ - public isSlowWhenEmpty(): boolean; + isSlowWhenEmpty(): boolean; /** * Sets whether this minecart will slow down faster without a passenger * occupying it */ - public setSlowWhenEmpty(slow: boolean): void; + setSlowWhenEmpty(slow: boolean): void; /** * Gets the flying velocity modifier. Used for minecarts that are in * mid-air. A flying minecart's velocity is multiplied by this factor each * tick. */ - public getFlyingVelocityMod(): org.bukkit.util.Vector; + getFlyingVelocityMod(): org.bukkit.util.Vector; /** * Sets the flying velocity modifier. Used for minecarts that are in * mid-air. A flying minecart's velocity is multiplied by this factor each * tick. */ - public setFlyingVelocityMod(flying: org.bukkit.util.Vector): void; + setFlyingVelocityMod(flying: org.bukkit.util.Vector): void; /** * Gets the derailed velocity modifier. Used for minecarts that are on the * ground, but not on rails. *

* A derailed minecart's velocity is multiplied by this factor each tick. */ - public getDerailedVelocityMod(): org.bukkit.util.Vector; + getDerailedVelocityMod(): org.bukkit.util.Vector; /** * Sets the derailed velocity modifier. Used for minecarts that are on the * ground, but not on rails. A derailed minecart's velocity is multiplied * by this factor each tick. */ - public setDerailedVelocityMod(derailed: org.bukkit.util.Vector): void; + setDerailedVelocityMod(derailed: org.bukkit.util.Vector): void; /** * Sets the display block for this minecart. * Passing a null value will set the minecart to have no display block. */ - public setDisplayBlock(material: org.bukkit.material.MaterialData): void; + setDisplayBlock(material: org.bukkit.material.MaterialData): void; /** * Gets the display block for this minecart. * This function will return the type AIR if none is set. */ - public getDisplayBlock(): org.bukkit.material.MaterialData; + getDisplayBlock(): org.bukkit.material.MaterialData; /** * Sets the display block for this minecart. * Passing a null value will set the minecart to have no display block. */ - public setDisplayBlockData(blockData: org.bukkit.block.data.BlockData): void; + setDisplayBlockData(blockData: org.bukkit.block.data.BlockData): void; /** * Gets the display block for this minecart. * This function will return the type AIR if none is set. */ - public getDisplayBlockData(): org.bukkit.block.data.BlockData; + getDisplayBlockData(): org.bukkit.block.data.BlockData; /** * Sets the offset of the display block. */ - public setDisplayBlockOffset(offset: number): void; + setDisplayBlockOffset(offset: number): void; /** * Gets the offset of the display block. */ - public getDisplayBlockOffset(): number; + getDisplayBlockOffset(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts b/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts index 7a099d4c..e73a90e9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Mob.ts @@ -1,18 +1,19 @@ declare namespace org { namespace bukkit { namespace entity { - class Mob { + // @ts-ignore + interface Mob extends org.bukkit.entity.LivingEntity, org.bukkit.loot.Lootable { /** * Instructs this Mob to set the specified LivingEntity as its target. *

* Hostile creatures may attack their target, and friendly creatures may * follow their target. */ - public setTarget(target: org.bukkit.entity.LivingEntity): void; + setTarget(target: org.bukkit.entity.LivingEntity): void; /** * Gets the current target of this Mob */ - public getTarget(): org.bukkit.entity.LivingEntity; + getTarget(): org.bukkit.entity.LivingEntity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts b/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts index 77f2b050..229930f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Monster.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Monster { + // @ts-ignore + interface Monster extends org.bukkit.entity.Creature { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts b/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts index e15a89c2..5aa2d77e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Mule.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Mule { + // @ts-ignore + interface Mule extends org.bukkit.entity.ChestedHorse { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts index f52a14ab..90f1a11e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.Variant.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace MushroomCow { - class Variant { + // @ts-ignore + class Variant { public static RED: org.bukkit.entity.MushroomCow.Variant; public static BROWN: org.bukkit.entity.MushroomCow.Variant; public static values(): org.bukkit.entity.MushroomCow.Variant[]; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts index 6b252f03..58ab05b0 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.MushroomCow.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class MushroomCow { + // @ts-ignore + interface MushroomCow extends org.bukkit.entity.Cow { /** * Get the variant of this cow. */ - public getVariant(): org.bukkit.entity.MushroomCow.Variant; + getVariant(): org.bukkit.entity.MushroomCow.Variant; /** * Set the variant of this cow. */ - public setVariant(variant: org.bukkit.entity.MushroomCow.Variant): void; + setVariant(variant: org.bukkit.entity.MushroomCow.Variant): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts b/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts index 4b50714f..9ca7e1f7 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.NPC.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class NPC { + // @ts-ignore + interface NPC extends org.bukkit.entity.Creature { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts index 5a403ee2..c0ccc5bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Ocelot { - class Type { + // @ts-ignore + class Type { public static WILD_OCELOT: org.bukkit.entity.Ocelot.Type; public static BLACK_CAT: org.bukkit.entity.Ocelot.Type; public static RED_CAT: org.bukkit.entity.Ocelot.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts index 3ee4a2e4..dd509f2a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ocelot.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Ocelot { + // @ts-ignore + interface Ocelot extends org.bukkit.entity.Animals { /** * Gets the current type of this cat. */ - public getCatType(): org.bukkit.entity.Ocelot.Type; + getCatType(): org.bukkit.entity.Ocelot.Type; /** * Sets the current type of this cat. */ - public setCatType(type: org.bukkit.entity.Ocelot.Type): void; + setCatType(type: org.bukkit.entity.Ocelot.Type): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts b/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts index 6a3edaab..2a214b23 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Painting.ts @@ -1,19 +1,20 @@ declare namespace org { namespace bukkit { namespace entity { - class Painting { + // @ts-ignore + interface Painting extends org.bukkit.entity.Hanging { /** * Get the art on this painting */ - public getArt(): org.bukkit.Art; + getArt(): org.bukkit.Art; /** * Set the art on this painting */ - public setArt(art: org.bukkit.Art): boolean; + setArt(art: org.bukkit.Art): boolean; /** * Set the art on this painting */ - public setArt(art: org.bukkit.Art, force: boolean): boolean; + setArt(art: org.bukkit.Art, force: boolean): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts b/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts index d6ce59e8..ce398706 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Panda.Gene.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Panda { - class Gene { + // @ts-ignore + class Gene { public static NORMAL: org.bukkit.entity.Panda.Gene; public static LAZY: org.bukkit.entity.Panda.Gene; public static WORRIED: org.bukkit.entity.Panda.Gene; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts b/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts index 2f3aeb55..083a0de6 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Panda.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Panda { + // @ts-ignore + interface Panda extends org.bukkit.entity.Animals { /** * Gets this Panda's main gene. */ - public getMainGene(): org.bukkit.entity.Panda.Gene; + getMainGene(): org.bukkit.entity.Panda.Gene; /** * Sets this Panda's main gene. */ - public setMainGene(gene: org.bukkit.entity.Panda.Gene): void; + setMainGene(gene: org.bukkit.entity.Panda.Gene): void; /** * Gets this Panda's hidden gene. */ - public getHiddenGene(): org.bukkit.entity.Panda.Gene; + getHiddenGene(): org.bukkit.entity.Panda.Gene; /** * Sets this Panda's hidden gene. */ - public setHiddenGene(gene: org.bukkit.entity.Panda.Gene): void; + setHiddenGene(gene: org.bukkit.entity.Panda.Gene): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts index b87a5011..ec131303 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.Variant.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Parrot { - class Variant { + // @ts-ignore + class Variant { public static RED: org.bukkit.entity.Parrot.Variant; public static BLUE: org.bukkit.entity.Parrot.Variant; public static GREEN: org.bukkit.entity.Parrot.Variant; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts index e16d5493..4f80277b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Parrot.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Parrot { + // @ts-ignore + interface Parrot extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { /** * Get the variant of this parrot. */ - public getVariant(): org.bukkit.entity.Parrot.Variant; + getVariant(): org.bukkit.entity.Parrot.Variant; /** * Set the variant of this parrot. */ - public setVariant(variant: org.bukkit.entity.Parrot.Variant): void; + setVariant(variant: org.bukkit.entity.Parrot.Variant): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts b/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts index 9dd56e89..b10d7554 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Phantom.ts @@ -1,9 +1,10 @@ declare namespace org { namespace bukkit { namespace entity { - class Phantom { - public getSize(): number; - public setSize(sz: number): void; + // @ts-ignore + interface Phantom extends org.bukkit.entity.Flying { + getSize(): number; + setSize(sz: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts index b6a576f2..6e71f742 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Pig.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Pig { + // @ts-ignore + interface Pig extends org.bukkit.entity.Animals, org.bukkit.entity.Vehicle { /** * Check if the pig has a saddle. */ - public hasSaddle(): boolean; + hasSaddle(): boolean; /** * Sets if the pig has a saddle or not */ - public setSaddle(saddled: boolean): void; + setSaddle(saddled: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts b/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts index 1ccf3a90..4111f841 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.PigZombie.ts @@ -1,35 +1,36 @@ declare namespace org { namespace bukkit { namespace entity { - class PigZombie { + // @ts-ignore + interface PigZombie extends org.bukkit.entity.Zombie { /** * Get the pig zombie's current anger level. */ - public getAnger(): number; + getAnger(): number; /** * Set the pig zombie's current anger level. */ - public setAnger(level: number): void; + setAnger(level: number): void; /** * Shorthand; sets to either 0 or the default level. */ - public setAngry(angry: boolean): void; + setAngry(angry: boolean): void; /** * Shorthand; gets whether the zombie is angry. */ - public isAngry(): boolean; + isAngry(): boolean; /** * Not applicable to this entity */ - public isConverting(): boolean; + isConverting(): boolean; /** * Not applicable to this entity */ - public getConversionTime(): number; + getConversionTime(): number; /** * Not applicable to this entity */ - public setConversionTime(time: number): void; + setConversionTime(time: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts index e35e0be8..72b7f545 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Pillager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Pillager { + // @ts-ignore + interface Pillager extends org.bukkit.entity.Illager, org.bukkit.inventory.InventoryHolder { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Player.ts b/packages/bukkit/src/typings/org.bukkit.entity.Player.ts index ba6fc911..a194465c 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Player.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Player.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Player { + // @ts-ignore + interface Player extends org.bukkit.entity.HumanEntity, org.bukkit.conversations.Conversable, org.bukkit.OfflinePlayer, org.bukkit.plugin.messaging.PluginMessageRecipient { /** * Gets the "friendly" name to display of this player. This may include * color. @@ -9,7 +10,7 @@ declare namespace org { * Note that this name will not be displayed in game, only in chat and * places defined by plugins. */ - public getDisplayName(): string; + getDisplayName(): string; /** * Sets the "friendly" name to display of this player. This may include * color. @@ -17,88 +18,88 @@ declare namespace org { * Note that this name will not be displayed in game, only in chat and * places defined by plugins. */ - public setDisplayName(name: string): void; + setDisplayName(name: string): void; /** * Gets the name that is shown on the player list. */ - public getPlayerListName(): string; + getPlayerListName(): string; /** * Sets the name that is shown on the in-game player list. *

* If the value is null, the name will be identical to {@link #getName()}. */ - public setPlayerListName(name: string): void; + setPlayerListName(name: string): void; /** * Gets the currently displayed player list header for this player. */ - public getPlayerListHeader(): string; + getPlayerListHeader(): string; /** * Gets the currently displayed player list footer for this player. */ - public getPlayerListFooter(): string; + getPlayerListFooter(): string; /** * Sets the currently displayed player list header for this player. */ - public setPlayerListHeader(header: string): void; + setPlayerListHeader(header: string): void; /** * Sets the currently displayed player list footer for this player. */ - public setPlayerListFooter(footer: string): void; + setPlayerListFooter(footer: string): void; /** * Sets the currently displayed player list header and footer for this * player. */ - public setPlayerListHeaderFooter(header: string, footer: string): void; + setPlayerListHeaderFooter(header: string, footer: string): void; /** * Set the target of the player's compass. */ - public setCompassTarget(loc: org.bukkit.Location): void; + setCompassTarget(loc: org.bukkit.Location): void; /** * Get the previously set compass target. */ - public getCompassTarget(): org.bukkit.Location; + getCompassTarget(): org.bukkit.Location; /** * Gets the socket address of this player */ - public getAddress(): any; + getAddress(): any; /** * Sends this sender a message raw */ - public sendRawMessage(message: string): void; + sendRawMessage(message: string): void; /** * Kicks player with custom kick message. */ - public kickPlayer(message: string): void; + kickPlayer(message: string): void; /** * Says a message (or runs a command). */ - public chat(msg: string): void; + chat(msg: string): void; /** * Makes the player perform the given command */ - public performCommand(command: string): boolean; + performCommand(command: string): boolean; /** * Returns if the player is in sneak mode */ - public isSneaking(): boolean; + isSneaking(): boolean; /** * Sets the sneak mode the player */ - public setSneaking(sneak: boolean): void; + setSneaking(sneak: boolean): void; /** * Gets whether the player is sprinting or not. */ - public isSprinting(): boolean; + isSprinting(): boolean; /** * Sets whether the player is sprinting or not. */ - public setSprinting(sprinting: boolean): void; + setSprinting(sprinting: boolean): void; /** * Saves the players current location, health, inventory, motion, and * other information into the username.dat file, in the world/player * folder */ - public saveData(): void; + saveData(): void; /** * Loads the players current location, health, inventory, motion, and * other information from the username.dat file, in the world/player @@ -107,36 +108,36 @@ declare namespace org { * Note: This will overwrite the players current inventory, health, * motion, etc, with the state from the saved dat file. */ - public loadData(): void; + loadData(): void; /** * Sets whether the player is ignored as not sleeping. If everyone is * either sleeping or has this flag set, then time will advance to the * next day. If everyone has this flag set but no one is actually in bed, * then nothing will happen. */ - public setSleepingIgnored(isSleeping: boolean): void; + setSleepingIgnored(isSleeping: boolean): void; /** * Returns whether the player is sleeping ignored. */ - public isSleepingIgnored(): boolean; + isSleepingIgnored(): boolean; /** * Play a note for a player at a location. This requires a note block * at the particular location (as far as the client is concerned). This * will not work without a note block. This will not work with cake. */ - public playNote(loc: org.bukkit.Location, instrument: number, note: number): void; + playNote(loc: org.bukkit.Location, instrument: number, note: number): void; /** * Play a note for a player at a location. This requires a note block * at the particular location (as far as the client is concerned). This * will not work without a note block. This will not work with cake. */ - public playNote(loc: org.bukkit.Location, instrument: org.bukkit.Instrument, note: org.bukkit.Note): void; + playNote(loc: org.bukkit.Location, instrument: org.bukkit.Instrument, note: org.bukkit.Note): void; /** * Play a sound for a player at the location. *

* This function will fail silently if Location or Sound are null. */ - public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, volume: number, pitch: number): void; /** * Play a sound for a player at the location. *

@@ -144,13 +145,13 @@ declare namespace org { * sound will be heard by the player if their client does not have the * respective sound for the value passed. */ - public playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: string, volume: number, pitch: number): void; /** * Play a sound for a player at the location. *

* This function will fail silently if Location or Sound are null. */ - public playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: org.bukkit.Sound, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; /** * Play a sound for a player at the location. *

@@ -158,41 +159,41 @@ declare namespace org { * will be heard by the player if their client does not have the respective * sound for the value passed. */ - public playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; + playSound(location: org.bukkit.Location, sound: string, category: org.bukkit.SoundCategory, volume: number, pitch: number): void; /** * Stop the specified sound from playing. */ - public stopSound(sound: org.bukkit.Sound): void; + stopSound(sound: org.bukkit.Sound): void; /** * Stop the specified sound from playing. */ - public stopSound(sound: string): void; + stopSound(sound: string): void; /** * Stop the specified sound from playing. */ - public stopSound(sound: org.bukkit.Sound, category: org.bukkit.SoundCategory): void; + stopSound(sound: org.bukkit.Sound, category: org.bukkit.SoundCategory): void; /** * Stop the specified sound from playing. */ - public stopSound(sound: string, category: org.bukkit.SoundCategory): void; + stopSound(sound: string, category: org.bukkit.SoundCategory): void; /** * Plays an effect to just this player. */ - public playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void; + playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: number): void; /** * Plays an effect to just this player. */ - public playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void; + playEffect(loc: org.bukkit.Location, effect: org.bukkit.Effect, data: any): void; /** * Send a block change. This fakes a block change packet for a user at a * certain location. This will not actually change the world in any way. */ - public sendBlockChange(loc: org.bukkit.Location, material: org.bukkit.Material, data: number): void; + sendBlockChange(loc: org.bukkit.Location, material: org.bukkit.Material, data: number): void; /** * Send a block change. This fakes a block change packet for a user at a * certain location. This will not actually change the world in any way. */ - public sendBlockChange(loc: org.bukkit.Location, block: org.bukkit.block.data.BlockData): void; + sendBlockChange(loc: org.bukkit.Location, block: org.bukkit.block.data.BlockData): void; /** * Send a chunk change. This fakes a chunk change packet for a user at a * certain location. The updated cuboid must be entirely within a single @@ -202,7 +203,7 @@ declare namespace org { * the data buffer must be 2.5*sx*sy*sz and formatted in accordance with * the Packet51 format. */ - public sendChunkChange(loc: org.bukkit.Location, sx: number, sy: number, sz: number, data: number): boolean; + sendChunkChange(loc: org.bukkit.Location, sx: number, sy: number, sz: number, data: number): boolean; /** * Send a sign change. This fakes a sign change packet for a user at * a certain location. This will not actually change the world in any way. @@ -213,7 +214,7 @@ declare namespace org { * If the client does not have a sign at the given location it will * display an error message to the user. */ - public sendSignChange(loc: org.bukkit.Location, lines: string): void; + sendSignChange(loc: org.bukkit.Location, lines: string): void; /** * Send a sign change. This fakes a sign change packet for a user at * a certain location. This will not actually change the world in any way. @@ -224,120 +225,120 @@ declare namespace org { * If the client does not have a sign at the given location it will * display an error message to the user. */ - public sendSignChange(loc: org.bukkit.Location, lines: string, dyeColor: org.bukkit.DyeColor): void; + sendSignChange(loc: org.bukkit.Location, lines: string, dyeColor: org.bukkit.DyeColor): void; /** * Render a map and send it to the player in its entirety. This may be * used when streaming the map in the normal manner is not desirable. */ - public sendMap(map: org.bukkit.map.MapView): void; + sendMap(map: org.bukkit.map.MapView): void; /** * Forces an update of the player's entire inventory. */ - public updateInventory(): void; + updateInventory(): void; /** * Awards the given achievement and any parent achievements that the * player does not have. */ - public awardAchievement(achievement: org.bukkit.Achievement): void; + awardAchievement(achievement: org.bukkit.Achievement): void; /** * Removes the given achievement and any children achievements that the * player has. */ - public removeAchievement(achievement: org.bukkit.Achievement): void; + removeAchievement(achievement: org.bukkit.Achievement): void; /** * Gets whether this player has the given achievement. */ - public hasAchievement(achievement: org.bukkit.Achievement): boolean; + hasAchievement(achievement: org.bukkit.Achievement): boolean; /** * Increments the given statistic for this player. *

* This is equivalent to the following code: * incrementStatistic(Statistic, 1) */ - public incrementStatistic(statistic: org.bukkit.Statistic): void; + incrementStatistic(statistic: org.bukkit.Statistic): void; /** * Decrements the given statistic for this player. *

* This is equivalent to the following code: * decrementStatistic(Statistic, 1) */ - public decrementStatistic(statistic: org.bukkit.Statistic): void; + decrementStatistic(statistic: org.bukkit.Statistic): void; /** * Increments the given statistic for this player. */ - public incrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; + incrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; /** * Decrements the given statistic for this player. */ - public decrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; + decrementStatistic(statistic: org.bukkit.Statistic, amount: number): void; /** * Sets the given statistic for this player. */ - public setStatistic(statistic: org.bukkit.Statistic, newValue: number): void; + setStatistic(statistic: org.bukkit.Statistic, newValue: number): void; /** * Gets the value of the given statistic for this player. */ - public getStatistic(statistic: org.bukkit.Statistic): number; + getStatistic(statistic: org.bukkit.Statistic): number; /** * Increments the given statistic for this player for the given material. *

* This is equivalent to the following code: * incrementStatistic(Statistic, Material, 1) */ - public incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void; + incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void; /** * Decrements the given statistic for this player for the given material. *

* This is equivalent to the following code: * decrementStatistic(Statistic, Material, 1) */ - public decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void; + decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): void; /** * Gets the value of the given statistic for this player. */ - public getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): number; + getStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material): number; /** * Increments the given statistic for this player for the given material. */ - public incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; + incrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; /** * Decrements the given statistic for this player for the given material. */ - public decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; + decrementStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, amount: number): void; /** * Sets the given statistic for this player for the given material. */ - public setStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, newValue: number): void; + setStatistic(statistic: org.bukkit.Statistic, material: org.bukkit.Material, newValue: number): void; /** * Increments the given statistic for this player for the given entity. *

* This is equivalent to the following code: * incrementStatistic(Statistic, EntityType, 1) */ - public incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void; + incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void; /** * Decrements the given statistic for this player for the given entity. *

* This is equivalent to the following code: * decrementStatistic(Statistic, EntityType, 1) */ - public decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void; + decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): void; /** * Gets the value of the given statistic for this player. */ - public getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): number; + getStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType): number; /** * Increments the given statistic for this player for the given entity. */ - public incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; + incrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; /** * Decrements the given statistic for this player for the given entity. */ - public decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; + decrementStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, amount: number): void; /** * Sets the given statistic for this player for the given entity. */ - public setStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, newValue: number): void; + setStatistic(statistic: org.bukkit.Statistic, entityType: org.bukkit.entity.EntityType, newValue: number): void; /** * Sets the current time on the player's client. When relative is true the * player's time will be kept synchronized to its world time with the @@ -348,87 +349,87 @@ declare namespace org { * the player's time. To restore player time to normal use * resetPlayerTime(). */ - public setPlayerTime(time: number, relative: boolean): void; + setPlayerTime(time: number, relative: boolean): void; /** * Returns the player's current timestamp. */ - public getPlayerTime(): number; + getPlayerTime(): number; /** * Returns the player's current time offset relative to server time, or * the current player's fixed time if the player's time is absolute. */ - public getPlayerTimeOffset(): number; + getPlayerTimeOffset(): number; /** * Returns true if the player's time is relative to the server time, * otherwise the player's time is absolute and will not change its current * time unless done so with setPlayerTime(). */ - public isPlayerTimeRelative(): boolean; + isPlayerTimeRelative(): boolean; /** * Restores the normal condition where the player's time is synchronized * with the server time. *

* Equivalent to calling setPlayerTime(0, true). */ - public resetPlayerTime(): void; + resetPlayerTime(): void; /** * Sets the type of weather the player will see. When used, the weather * status of the player is locked until {@link #resetPlayerWeather()} is * used. */ - public setPlayerWeather(type: org.bukkit.WeatherType): void; + setPlayerWeather(type: org.bukkit.WeatherType): void; /** * Returns the type of weather the player is currently experiencing. */ - public getPlayerWeather(): org.bukkit.WeatherType; + getPlayerWeather(): org.bukkit.WeatherType; /** * Restores the normal condition where the player's weather is controlled * by server conditions. */ - public resetPlayerWeather(): void; + resetPlayerWeather(): void; /** * Gives the player the amount of experience specified. */ - public giveExp(amount: number): void; + giveExp(amount: number): void; /** * Gives the player the amount of experience levels specified. Levels can * be taken by specifying a negative amount. */ - public giveExpLevels(amount: number): void; + giveExpLevels(amount: number): void; /** * Gets the players current experience points towards the next level. *

* This is a percentage value. 0 is "no progress" and 1 is "next level". */ - public getExp(): number; + getExp(): number; /** * Sets the players current experience points towards the next level *

* This is a percentage value. 0 is "no progress" and 1 is "next level". */ - public setExp(exp: number): void; + setExp(exp: number): void; /** * Gets the players current experience level */ - public getLevel(): number; + getLevel(): number; /** * Sets the players current experience level */ - public setLevel(level: number): void; + setLevel(level: number): void; /** * Gets the players total experience points. *
* This refers to the total amount of experience the player has collected * over time and is only displayed as the player's "score" upon dying. */ - public getTotalExperience(): number; + getTotalExperience(): number; /** * Sets the players current experience points. *
* This refers to the total amount of experience the player has collected * over time and is only displayed as the player's "score" upon dying. */ - public setTotalExperience(exp: number): void; + setTotalExperience(exp: number): void; /** * Gets the players current exhaustion level. *

@@ -436,88 +437,88 @@ declare namespace org { * certain amount of exhaustion, your saturation will drop to zero, and * then your food will drop to zero. */ - public getExhaustion(): number; + getExhaustion(): number; /** * Sets the players current exhaustion level */ - public setExhaustion(value: number): void; + setExhaustion(value: number): void; /** * Gets the players current saturation level. *

* Saturation is a buffer for food level. Your food level will not drop if * you are saturated {@literal >} 0. */ - public getSaturation(): number; + getSaturation(): number; /** * Sets the players current saturation level */ - public setSaturation(value: number): void; + setSaturation(value: number): void; /** * Gets the players current food level */ - public getFoodLevel(): number; + getFoodLevel(): number; /** * Sets the players current food level */ - public setFoodLevel(value: number): void; + setFoodLevel(value: number): void; /** * Determines if the Player is allowed to fly via jump key double-tap like * in creative mode. */ - public getAllowFlight(): boolean; + getAllowFlight(): boolean; /** * Sets if the Player is allowed to fly via jump key double-tap like in * creative mode. */ - public setAllowFlight(flight: boolean): void; + setAllowFlight(flight: boolean): void; /** * Hides a player from this player */ - public hidePlayer(player: org.bukkit.entity.Player): void; + hidePlayer(player: org.bukkit.entity.Player): void; /** * Hides a player from this player */ - public hidePlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; + hidePlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; /** * Allows this player to see a player that was previously hidden */ - public showPlayer(player: org.bukkit.entity.Player): void; + showPlayer(player: org.bukkit.entity.Player): void; /** * Allows this player to see a player that was previously hidden. If * another another plugin had hidden the player too, then the player will * remain hidden until the other plugin calls this method too. */ - public showPlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; + showPlayer(plugin: org.bukkit.plugin.Plugin, player: org.bukkit.entity.Player): void; /** * Checks to see if a player has been hidden from this player */ - public canSee(player: org.bukkit.entity.Player): boolean; + canSee(player: org.bukkit.entity.Player): boolean; /** * Checks to see if this player is currently flying or not. */ - public isFlying(): boolean; + isFlying(): boolean; /** * Makes this player start or stop flying. */ - public setFlying(value: boolean): void; + setFlying(value: boolean): void; /** * Sets the speed at which a client will fly. Negative values indicate * reverse directions. */ - public setFlySpeed(value: number): void; + setFlySpeed(value: number): void; /** * Sets the speed at which a client will walk. Negative values indicate * reverse directions. */ - public setWalkSpeed(value: number): void; + setWalkSpeed(value: number): void; /** * Gets the current allowed speed that a client can fly. */ - public getFlySpeed(): number; + getFlySpeed(): number; /** * Gets the current allowed speed that a client can walk. */ - public getWalkSpeed(): number; + getWalkSpeed(): number; /** * Request that the player's client download and switch texture packs. *

@@ -543,7 +544,7 @@ declare namespace org { * in newer versions not loading the pack correctly. * */ - public setTexturePack(url: string): void; + setTexturePack(url: string): void; /** * Request that the player's client download and switch resource packs. *

@@ -569,7 +570,7 @@ declare namespace org { * in newer versions not loading the pack correctly. * */ - public setResourcePack(url: string): void; + setResourcePack(url: string): void; /** * Request that the player's client download and switch resource packs. *

@@ -592,20 +593,20 @@ declare namespace org { * have to send an empty pack. * */ - public setResourcePack(url: string, hash: number): void; + setResourcePack(url: string, hash: number): void; /** * Gets the Scoreboard displayed to this player */ - public getScoreboard(): org.bukkit.scoreboard.Scoreboard; + getScoreboard(): org.bukkit.scoreboard.Scoreboard; /** * Sets the player's visible Scoreboard. */ - public setScoreboard(scoreboard: org.bukkit.scoreboard.Scoreboard): void; + setScoreboard(scoreboard: org.bukkit.scoreboard.Scoreboard): void; /** * Gets if the client is displayed a 'scaled' health, that is, health on a * scale from 0-{@link #getHealthScale()}. */ - public isHealthScaled(): boolean; + isHealthScaled(): boolean; /** * Sets if the client is displayed a 'scaled' health, that is, health on a * scale from 0-{@link #getHealthScale()}. @@ -613,7 +614,7 @@ declare namespace org { * Displayed health follows a simple formula displayedHealth = * getHealth() / getMaxHealth() * getHealthScale(). */ - public setHealthScaled(scale: boolean): void; + setHealthScaled(scale: boolean): void; /** * Sets the number to scale health to for the client; this will also * {@link #setHealthScaled(boolean) setHealthScaled(true)}. @@ -621,21 +622,21 @@ declare namespace org { * Displayed health follows a simple formula displayedHealth = * getHealth() / getMaxHealth() * getHealthScale(). */ - public setHealthScale(scale: number): void; + setHealthScale(scale: number): void; /** * Gets the number that health is scaled to for the client. */ - public getHealthScale(): number; + getHealthScale(): number; /** * Gets the entity which is followed by the camera when in * {@link GameMode#SPECTATOR}. */ - public getSpectatorTarget(): org.bukkit.entity.Entity; + getSpectatorTarget(): org.bukkit.entity.Entity; /** * Sets the entity which is followed by the camera when in * {@link GameMode#SPECTATOR}. */ - public setSpectatorTarget(entity: org.bukkit.entity.Entity): void; + setSpectatorTarget(entity: org.bukkit.entity.Entity): void; /** * Sends a title and a subtitle message to the player. If either of these * values are null, they will not be sent and the display will remain @@ -643,7 +644,7 @@ declare namespace org { * such. If the strings contain a new line, only the first line will be * sent. The titles will be displayed with the client's default timings. */ - public sendTitle(title: string, subtitle: string): void; + sendTitle(title: string, subtitle: string): void; /** * Sends a title and a subtitle message to the player. If either of these * values are null, they will not be sent and the display will remain @@ -653,99 +654,99 @@ declare namespace org { * will use the last value sent (or the defaults if no title has been * displayed). */ - public sendTitle(title: string, subtitle: string, fadeIn: number, stay: number, fadeOut: number): void; + sendTitle(title: string, subtitle: string, fadeIn: number, stay: number, fadeOut: number): void; /** * Resets the title displayed to the player. This will clear the displayed * title / subtitle and reset timings to their default values. */ - public resetTitle(): void; + resetTitle(): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, location: org.bukkit.Location, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; /** * Spawns the particle (the number of times specified by count) * at the target location. The position of each particle will be * randomized positively and negatively by the offset parameters * on each axis. */ - public spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; + spawnParticle(particle: org.bukkit.Particle, x: number, y: number, z: number, count: number, offsetX: number, offsetY: number, offsetZ: number, extra: number, data: any): void; /** * Return the player's progression on the specified advancement. */ - public getAdvancementProgress(advancement: org.bukkit.advancement.Advancement): org.bukkit.advancement.AdvancementProgress; + getAdvancementProgress(advancement: org.bukkit.advancement.Advancement): org.bukkit.advancement.AdvancementProgress; /** * Get the player's current client side view distance. *
* Will default to the server view distance if the client has not yet * communicated this information, */ - public getClientViewDistance(): number; + getClientViewDistance(): number; /** * Gets the player's current locale. * The value of the locale String is not defined properly. @@ -754,18 +755,18 @@ declare namespace org { * separated by an underscore, but custom resource packs may use any format * they wish. */ - public getLocale(): string; + getLocale(): string; /** * Update the list of commands sent to the client. *
* Generally useful to ensure the client has a complete list of commands * after permission changes are done. */ - public updateCommands(): void; + updateCommands(): void; /** * Open a {@link Material#WRITTEN_BOOK} for a Player */ - public openBook(book: org.bukkit.inventory.ItemStack): void; + openBook(book: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts b/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts index 3679cb84..5b7948a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.PolarBear.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class PolarBear { + // @ts-ignore + interface PolarBear extends org.bukkit.entity.Animals { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts b/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts index 91842584..5bd1883e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Pose.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Pose { + // @ts-ignore + class Pose { public static STANDING: org.bukkit.entity.Pose; public static FALL_FLYING: org.bukkit.entity.Pose; public static SLEEPING: org.bukkit.entity.Pose; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts b/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts index c9463b52..f57b1599 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Projectile.ts @@ -1,26 +1,27 @@ declare namespace org { namespace bukkit { namespace entity { - class Projectile { + // @ts-ignore + interface Projectile extends org.bukkit.entity.Entity { /** * Retrieve the shooter of this projectile. */ - public getShooter(): org.bukkit.projectiles.ProjectileSource; + getShooter(): org.bukkit.projectiles.ProjectileSource; /** * Set the shooter of this projectile. */ - public setShooter(source: org.bukkit.projectiles.ProjectileSource): void; + setShooter(source: org.bukkit.projectiles.ProjectileSource): void; /** * Determine if this projectile should bounce or not when it hits. *

* If a small fireball does not bounce it will set the target on fire. */ - public doesBounce(): boolean; + doesBounce(): boolean; /** * Set whether or not this projectile should bounce or not when it hits * something. */ - public setBounce(doesBounce: boolean): void; + setBounce(doesBounce: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts b/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts index 2daf140a..6140b074 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.PufferFish.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class PufferFish { + // @ts-ignore + interface PufferFish extends org.bukkit.entity.Fish { /** * Returns the current puff state of this fish (i.e. how inflated it is). */ - public getPuffState(): number; + getPuffState(): number; /** * Sets the current puff state of this fish (i.e. how inflated it is). */ - public setPuffState(state: number): void; + setPuffState(state: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts index f5c35b71..023dd103 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Rabbit { - class Type { + // @ts-ignore + class Type { public static BROWN: org.bukkit.entity.Rabbit.Type; public static WHITE: org.bukkit.entity.Rabbit.Type; public static BLACK: org.bukkit.entity.Rabbit.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts index 4bd46cb4..01cd2f60 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Rabbit.ts @@ -1,9 +1,10 @@ declare namespace org { namespace bukkit { namespace entity { - class Rabbit { - public getRabbitType(): org.bukkit.entity.Rabbit.Type; - public setRabbitType(type: org.bukkit.entity.Rabbit.Type): void; + // @ts-ignore + interface Rabbit extends org.bukkit.entity.Animals { + getRabbitType(): org.bukkit.entity.Rabbit.Type; + setRabbitType(type: org.bukkit.entity.Rabbit.Type): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts b/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts index 067b89e0..b404dcd8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Raider.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace entity { - class Raider { + // @ts-ignore + interface Raider extends org.bukkit.entity.Monster { /** * Gets the block the raider is targeting to patrol. */ - public getPatrolTarget(): org.bukkit.block.Block; + getPatrolTarget(): org.bukkit.block.Block; /** * Sets the block the raider is targeting to patrol. */ - public setPatrolTarget(block: org.bukkit.block.Block): void; + setPatrolTarget(block: org.bukkit.block.Block): void; /** * Gets whether this entity is a patrol leader. */ - public isPatrolLeader(): boolean; + isPatrolLeader(): boolean; /** * Sets whether this entity is a patrol leader. */ - public setPatrolLeader(leader: boolean): void; + setPatrolLeader(leader: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts index 4f3417ef..3e34459d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Ravager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Ravager { + // @ts-ignore + interface Ravager extends org.bukkit.entity.Raider { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts b/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts index 54ea06f9..4764d772 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Salmon.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Salmon { + // @ts-ignore + interface Salmon extends org.bukkit.entity.Fish { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts b/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts index 34a0b0ea..d547f02f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Sheep.ts @@ -1,9 +1,10 @@ declare namespace org { namespace bukkit { namespace entity { - class Sheep { - public isSheared(): boolean; - public setSheared(flag: boolean): void; + // @ts-ignore + interface Sheep extends org.bukkit.entity.Animals, org.bukkit.material.Colorable { + isSheared(): boolean; + setSheared(flag: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts b/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts index 81784a46..68753ee9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Shulker.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Shulker { + // @ts-ignore + interface Shulker extends org.bukkit.entity.Golem, org.bukkit.material.Colorable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts b/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts index b730cb76..a01c75f8 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ShulkerBullet.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class ShulkerBullet { + // @ts-ignore + interface ShulkerBullet extends org.bukkit.entity.Projectile { /** * Retrieve the target of this bullet. */ - public getTarget(): org.bukkit.entity.Entity; + getTarget(): org.bukkit.entity.Entity; /** * Sets the target of this bullet */ - public setTarget(target: org.bukkit.entity.Entity): void; + setTarget(target: org.bukkit.entity.Entity): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts b/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts index 85459375..8c8e5c8b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Silverfish.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Silverfish { + // @ts-ignore + interface Silverfish extends org.bukkit.entity.Monster { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts index 4035e2d3..7802b59a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Sittable.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace entity { - class Sittable { + // @ts-ignore + interface Sittable { /** * Checks if this animal is sitting */ - public isSitting(): boolean; + isSitting(): boolean; /** * Sets if this animal is sitting. Will remove any path that the animal * was following beforehand. */ - public setSitting(sitting: boolean): void; + setSitting(sitting: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts index d699f680..8b9050e5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.SkeletonType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Skeleton { - class SkeletonType { + // @ts-ignore + class SkeletonType { public static NORMAL: org.bukkit.entity.Skeleton.SkeletonType; public static WITHER: org.bukkit.entity.Skeleton.SkeletonType; public static STRAY: org.bukkit.entity.Skeleton.SkeletonType; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts index 443f9927..35a3b33d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Skeleton.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace entity { - class Skeleton { + // @ts-ignore + interface Skeleton extends org.bukkit.entity.Monster { /** * Gets the current type of this skeleton. */ - public getSkeletonType(): org.bukkit.entity.Skeleton.SkeletonType; - public setSkeletonType(type: org.bukkit.entity.Skeleton.SkeletonType): void; + getSkeletonType(): org.bukkit.entity.Skeleton.SkeletonType; + setSkeletonType(type: org.bukkit.entity.Skeleton.SkeletonType): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts index 1d52c2d7..36fbad42 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.SkeletonHorse.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class SkeletonHorse { + // @ts-ignore + interface SkeletonHorse extends org.bukkit.entity.AbstractHorse { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts b/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts index a62947cb..521d9e90 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Slime.ts @@ -1,9 +1,10 @@ declare namespace org { namespace bukkit { namespace entity { - class Slime { - public getSize(): number; - public setSize(sz: number): void; + // @ts-ignore + interface Slime extends org.bukkit.entity.Mob { + getSize(): number; + setSize(sz: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts b/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts index b5a11d90..7ddcd074 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.SmallFireball.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class SmallFireball { + // @ts-ignore + interface SmallFireball extends org.bukkit.entity.Fireball { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts b/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts index fe31b927..860c984e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Snowball.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Snowball { + // @ts-ignore + interface Snowball extends org.bukkit.entity.Projectile { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts b/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts index d30b438b..bfbcc68c 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Snowman.ts @@ -1,18 +1,19 @@ declare namespace org { namespace bukkit { namespace entity { - class Snowman { + // @ts-ignore + interface Snowman extends org.bukkit.entity.Golem { /** * Gets whether this snowman is in "derp mode", meaning it is not wearing a * pumpkin. */ - public isDerp(): boolean; + isDerp(): boolean; /** * Sets whether this snowman is in "derp mode", meaning it is not wearing a * pumpkin. NOTE: This value is not persisted to disk and will therefore * reset when the chunk is reloaded. */ - public setDerp(derpMode: boolean): void; + setDerp(derpMode: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts index bd898ccf..2b0a8c76 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.SpectralArrow.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace entity { - class SpectralArrow { + // @ts-ignore + interface SpectralArrow extends org.bukkit.entity.AbstractArrow { /** * Returns the amount of time that this arrow will apply * the glowing effect for. */ - public getGlowingTicks(): number; + getGlowingTicks(): number; /** * Sets the amount of time to apply the glowing effect for. */ - public setGlowingTicks(duration: number): void; + setGlowingTicks(duration: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts index c267ab2b..a3025de9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.Spell.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Spellcaster { - class Spell { + // @ts-ignore + class Spell { public static NONE: org.bukkit.entity.Spellcaster.Spell; public static SUMMON_VEX: org.bukkit.entity.Spellcaster.Spell; public static FANGS: org.bukkit.entity.Spellcaster.Spell; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts index 1470f836..cf495ff0 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Spellcaster.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Spellcaster { + // @ts-ignore + interface Spellcaster extends org.bukkit.entity.Illager { /** * Gets the {@link Spell} the entity is currently using. */ - public getSpell(): org.bukkit.entity.Spellcaster.Spell; + getSpell(): org.bukkit.entity.Spellcaster.Spell; /** * Sets the {@link Spell} the entity is currently using. */ - public setSpell(spell: org.bukkit.entity.Spellcaster.Spell): void; + setSpell(spell: org.bukkit.entity.Spellcaster.Spell): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts b/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts index a38b1670..0b65d7bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Spider.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Spider { + // @ts-ignore + interface Spider extends org.bukkit.entity.Monster { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts index 053bf707..400589ad 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.SplashPotion.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class SplashPotion { + // @ts-ignore + interface SplashPotion extends org.bukkit.entity.ThrownPotion { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts b/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts index a6225e82..339e256a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Squid.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Squid { + // @ts-ignore + interface Squid extends org.bukkit.entity.WaterMob { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts b/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts index 2f674095..98618ee5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Stray.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Stray { + // @ts-ignore + interface Stray extends org.bukkit.entity.Skeleton { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts b/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts index 2945ce30..91eeb3e5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.TNTPrimed.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace entity { - class TNTPrimed { + // @ts-ignore + interface TNTPrimed extends org.bukkit.entity.Explosive { /** * Set the number of ticks until the TNT blows up after being primed. */ - public setFuseTicks(fuseTicks: number): void; + setFuseTicks(fuseTicks: number): void; /** * Retrieve the number of ticks until the explosion of this TNTPrimed * entity */ - public getFuseTicks(): number; + getFuseTicks(): number; /** * Gets the source of this primed TNT. The source is the entity * responsible for the creation of this primed TNT. (I.E. player ignites @@ -23,7 +24,7 @@ declare namespace org { * it has since died or been unloaded. Callers should check * {@link Entity#isValid()}. */ - public getSource(): org.bukkit.entity.Entity; + getSource(): org.bukkit.entity.Entity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts b/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts index 40c55e67..cf131b49 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Tameable.ts @@ -1,14 +1,15 @@ declare namespace org { namespace bukkit { namespace entity { - class Tameable { + // @ts-ignore + interface Tameable extends org.bukkit.entity.Entity { /** * Check if this is tamed *

* If something is tamed then a player can not tame it through normal * methods, even if it does not belong to anyone in particular. */ - public isTamed(): boolean; + isTamed(): boolean; /** * Sets if this has been tamed. Not necessary if the method setOwner has * been used, as it tames automatically. @@ -16,11 +17,11 @@ declare namespace org { * If something is tamed then a player can not tame it through normal * methods, even if it does not belong to anyone in particular. */ - public setTamed(tame: boolean): void; + setTamed(tame: boolean): void; /** * Gets the current owning AnimalTamer */ - public getOwner(): org.bukkit.entity.AnimalTamer; + getOwner(): org.bukkit.entity.AnimalTamer; /** * Set this to be owned by given AnimalTamer. *

@@ -28,7 +29,7 @@ declare namespace org { * path it is following removed. If the owner is set to null, this will be * untamed, and the current owner removed. */ - public setOwner(tamer: org.bukkit.entity.AnimalTamer): void; + setOwner(tamer: org.bukkit.entity.AnimalTamer): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts b/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts index a23940f2..d9edd5e3 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ThrownExpBottle.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class ThrownExpBottle { + // @ts-ignore + interface ThrownExpBottle extends org.bukkit.entity.Projectile { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts b/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts index 78917190..92dea80e 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ThrownPotion.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace entity { - class ThrownPotion { + // @ts-ignore + interface ThrownPotion extends org.bukkit.entity.Projectile { /** * Returns the effects that are applied by this potion. */ - public getEffects(): any[] /*java.util.Collection*/; + getEffects(): any[] /*java.util.Collection*/; /** * Returns a copy of the ItemStack for this thrown potion. *

@@ -13,7 +14,7 @@ declare namespace org { * to alter the thrown potion, you must use the {@link * #setItem(ItemStack) setItemStack} method. */ - public getItem(): org.bukkit.inventory.ItemStack; + getItem(): org.bukkit.inventory.ItemStack; /** * Set the ItemStack for this thrown potion. *

@@ -21,7 +22,7 @@ declare namespace org { * or {@link org.bukkit.Material#LINGERING_POTION}, otherwise an exception * is thrown. */ - public setItem(item: org.bukkit.inventory.ItemStack): void; + setItem(item: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts b/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts index 739574b0..11502dc5 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.TippedArrow.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class TippedArrow { + // @ts-ignore + interface TippedArrow extends org.bukkit.entity.Arrow { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts b/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts index ca79b6e2..d60f14dd 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.TraderLlama.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class TraderLlama { + // @ts-ignore + interface TraderLlama extends org.bukkit.entity.Llama { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts b/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts index 1daf1ec3..4f4c9a4b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Trident.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Trident { + // @ts-ignore + interface Trident extends org.bukkit.entity.AbstractArrow { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts index 34f1017c..1cc55154 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.Pattern.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace TropicalFish { - class Pattern { + // @ts-ignore + class Pattern { public static KOB: org.bukkit.entity.TropicalFish.Pattern; public static SUNSTREAK: org.bukkit.entity.TropicalFish.Pattern; public static SNOOPER: org.bukkit.entity.TropicalFish.Pattern; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts index 936c78c2..4112e5ce 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.TropicalFish.ts @@ -1,31 +1,32 @@ declare namespace org { namespace bukkit { namespace entity { - class TropicalFish { + // @ts-ignore + interface TropicalFish extends org.bukkit.entity.Fish { /** * Gets the color of the fish's pattern. */ - public getPatternColor(): org.bukkit.DyeColor; + getPatternColor(): org.bukkit.DyeColor; /** * Sets the color of the fish's pattern */ - public setPatternColor(color: org.bukkit.DyeColor): void; + setPatternColor(color: org.bukkit.DyeColor): void; /** * Gets the color of the fish's body. */ - public getBodyColor(): org.bukkit.DyeColor; + getBodyColor(): org.bukkit.DyeColor; /** * Sets the color of the fish's body */ - public setBodyColor(color: org.bukkit.DyeColor): void; + setBodyColor(color: org.bukkit.DyeColor): void; /** * Gets the fish's pattern. */ - public getPattern(): org.bukkit.entity.TropicalFish.Pattern; + getPattern(): org.bukkit.entity.TropicalFish.Pattern; /** * Sets the fish's pattern */ - public setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; + setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts b/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts index ba4fc851..3245ced3 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Turtle.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Turtle { + // @ts-ignore + interface Turtle extends org.bukkit.entity.Animals { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts index 7b29f314..48e0c825 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Vehicle.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class Vehicle { + // @ts-ignore + interface Vehicle extends org.bukkit.entity.Entity { /** * Gets the vehicle's velocity. */ - public getVelocity(): org.bukkit.util.Vector; + getVelocity(): org.bukkit.util.Vector; /** * Sets the vehicle's velocity. */ - public setVelocity(vel: org.bukkit.util.Vector): void; + setVelocity(vel: org.bukkit.util.Vector): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts index 7ce5d878..0ff377ea 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Vex.ts @@ -1,17 +1,18 @@ declare namespace org { namespace bukkit { namespace entity { - class Vex { + // @ts-ignore + interface Vex extends org.bukkit.entity.Monster { /** * Gets the charging state of this entity. * When this entity is charging it will having a glowing red texture. */ - public isCharging(): boolean; + isCharging(): boolean; /** * Sets the charging state of this entity. * When this entity is charging it will having a glowing red texture. */ - public setCharging(charging: boolean): void; + setCharging(charging: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts index 973cea86..5941e129 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Profession.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Villager { - class Profession { + // @ts-ignore + class Profession implements org.bukkit.Keyed { public static NONE: org.bukkit.entity.Villager.Profession; public static ARMORER: org.bukkit.entity.Villager.Profession; public static BUTCHER: org.bukkit.entity.Villager.Profession; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts index 661e9e68..3b988690 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace Villager { - class Type { + // @ts-ignore + class Type implements org.bukkit.Keyed { public static DESERT: org.bukkit.entity.Villager.Type; public static JUNGLE: org.bukkit.entity.Villager.Type; public static PLAINS: org.bukkit.entity.Villager.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts b/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts index 74725cc5..c69d8c24 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Villager.ts @@ -1,43 +1,44 @@ declare namespace org { namespace bukkit { namespace entity { - class Villager { + // @ts-ignore + interface Villager extends org.bukkit.entity.AbstractVillager { /** * Gets the current profession of this villager. */ - public getProfession(): org.bukkit.entity.Villager.Profession; + getProfession(): org.bukkit.entity.Villager.Profession; /** * Sets the new profession of this villager. */ - public setProfession(profession: org.bukkit.entity.Villager.Profession): void; + setProfession(profession: org.bukkit.entity.Villager.Profession): void; /** * Gets the current type of this villager. */ - public getVillagerType(): org.bukkit.entity.Villager.Type; + getVillagerType(): org.bukkit.entity.Villager.Type; /** * Sets the new type of this villager. */ - public setVillagerType(type: org.bukkit.entity.Villager.Type): void; + setVillagerType(type: org.bukkit.entity.Villager.Type): void; /** * Gets the level of this villager. * A villager with a level of 1 and no experience is liable to lose its * profession. */ - public getVillagerLevel(): number; + getVillagerLevel(): number; /** * Sets the level of this villager. * A villager with a level of 1 and no experience is liable to lose its * profession. */ - public setVillagerLevel(level: number): void; + setVillagerLevel(level: number): void; /** * Gets the trading experience of this villager. */ - public getVillagerExperience(): number; + getVillagerExperience(): number; /** * Sets the trading experience of this villager. */ - public setVillagerExperience(experience: number): void; + setVillagerExperience(experience: number): void; /** * Attempts to make this villager sleep at the given location. *
@@ -45,11 +46,11 @@ declare namespace org { * location. The villager will put its head on the specified block while * sleeping. */ - public sleep(location: org.bukkit.Location): boolean; + sleep(location: org.bukkit.Location): boolean; /** * Causes this villager to wake up if he's currently sleeping. */ - public wakeup(): void; + wakeup(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts b/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts index 67b24dd8..a31e5518 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Vindicator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Vindicator { + // @ts-ignore + interface Vindicator extends org.bukkit.entity.Illager { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts b/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts index 4f22b3be..c0105088 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.WanderingTrader.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class WanderingTrader { + // @ts-ignore + interface WanderingTrader extends org.bukkit.entity.AbstractVillager { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts b/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts index f776cb2f..07ee96e9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.WaterMob.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class WaterMob { + // @ts-ignore + interface WaterMob extends org.bukkit.entity.Creature { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts b/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts index 8bb65136..8b15cea2 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Witch.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Witch { + // @ts-ignore + interface Witch extends org.bukkit.entity.Raider { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts b/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts index ccd80764..c4aa35be 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Wither.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class Wither { + // @ts-ignore + interface Wither extends org.bukkit.entity.Monster, org.bukkit.entity.Boss { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts index ab5b8416..06ed608f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkeleton.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class WitherSkeleton { + // @ts-ignore + interface WitherSkeleton extends org.bukkit.entity.Skeleton { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts index f19bad36..95720682 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.WitherSkull.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace entity { - class WitherSkull { + // @ts-ignore + interface WitherSkull extends org.bukkit.entity.Fireball { /** * Sets the charged status of the wither skull. */ - public setCharged(charged: boolean): void; + setCharged(charged: boolean): void; /** * Gets whether or not the wither skull is charged. */ - public isCharged(): boolean; + isCharged(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts b/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts index f781be39..ac94c2a9 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Wolf.ts @@ -1,25 +1,26 @@ declare namespace org { namespace bukkit { namespace entity { - class Wolf { + // @ts-ignore + interface Wolf extends org.bukkit.entity.Animals, org.bukkit.entity.Tameable, org.bukkit.entity.Sittable { /** * Checks if this wolf is angry */ - public isAngry(): boolean; + isAngry(): boolean; /** * Sets the anger of this wolf. *

* An angry wolf can not be fed or tamed. */ - public setAngry(angry: boolean): void; + setAngry(angry: boolean): void; /** * Get the collar color of this wolf */ - public getCollarColor(): org.bukkit.DyeColor; + getCollarColor(): org.bukkit.DyeColor; /** * Set the collar color of this wolf */ - public setCollarColor(color: org.bukkit.DyeColor): void; + setCollarColor(color: org.bukkit.DyeColor): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts b/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts index 5d0af9c4..17bff16b 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.Zombie.ts @@ -1,33 +1,34 @@ declare namespace org { namespace bukkit { namespace entity { - class Zombie { + // @ts-ignore + interface Zombie extends org.bukkit.entity.Monster { /** * Gets whether the zombie is a baby */ - public isBaby(): boolean; + isBaby(): boolean; /** * Sets whether the zombie is a baby */ - public setBaby(flag: boolean): void; + setBaby(flag: boolean): void; /** * Gets whether the zombie is a villager */ - public isVillager(): boolean; - public setVillager(flag: boolean): void; - public setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; - public getVillagerProfession(): org.bukkit.entity.Villager.Profession; + isVillager(): boolean; + setVillager(flag: boolean): void; + setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; + getVillagerProfession(): org.bukkit.entity.Villager.Profession; /** * Get if this entity is in the process of converting to a Drowned as a * result of being underwater. */ - public isConverting(): boolean; + isConverting(): boolean; /** * Gets the amount of ticks until this entity will be converted to a Drowned * as a result of being underwater. * When this reaches 0, the entity will be converted. */ - public getConversionTime(): number; + getConversionTime(): number; /** * Sets the amount of ticks until this entity will be converted to a Drowned * as a result of being underwater. @@ -35,7 +36,7 @@ declare namespace org { * will stop the current conversion process without converting the current * entity. */ - public setConversionTime(time: number): void; + setConversionTime(time: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts b/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts index 63045af5..e6b2bc2a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ZombieHorse.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace entity { - class ZombieHorse { + // @ts-ignore + interface ZombieHorse extends org.bukkit.entity.AbstractHorse { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts b/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts index 48ea6560..aa4b202d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.ZombieVillager.ts @@ -1,26 +1,27 @@ declare namespace org { namespace bukkit { namespace entity { - class ZombieVillager { + // @ts-ignore + interface ZombieVillager extends org.bukkit.entity.Zombie { /** * Sets the villager profession of this zombie. */ - public setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; + setVillagerProfession(profession: org.bukkit.entity.Villager.Profession): void; /** * Returns the villager profession of this zombie. */ - public getVillagerProfession(): org.bukkit.entity.Villager.Profession; + getVillagerProfession(): org.bukkit.entity.Villager.Profession; /** * Get if this entity is in the process of converting to a Villager as a * result of being cured. */ - public isConverting(): boolean; + isConverting(): boolean; /** * Gets the amount of ticks until this entity will be converted to a * Villager as a result of being cured. * When this reaches 0, the entity will be converted. */ - public getConversionTime(): number; + getConversionTime(): number; /** * Sets the amount of ticks until this entity will be converted to a * Villager as a result of being cured. @@ -28,17 +29,17 @@ declare namespace org { * will stop the current conversion process without converting the current * entity. */ - public setConversionTime(time: number): void; + setConversionTime(time: number): void; /** * Gets the player who initiated the conversion. */ - public getConversionPlayer(): org.bukkit.OfflinePlayer; + getConversionPlayer(): org.bukkit.OfflinePlayer; /** * Sets the player who initiated the conversion. *

* This has no effect if this entity isn't converting currently. */ - public setConversionPlayer(conversionPlayer: org.bukkit.OfflinePlayer): void; + setConversionPlayer(conversionPlayer: org.bukkit.OfflinePlayer): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts b/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts index 91d5f577..7aeda343 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.memory.MemoryKey.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace memory { - class MemoryKey { + // @ts-ignore + class MemoryKey implements org.bukkit.Keyed { public static HOME: org.bukkit.entity.memory.MemoryKey; public static MEETING_POINT: org.bukkit.entity.memory.MemoryKey; public static JOB_SITE: org.bukkit.entity.memory.MemoryKey; diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts index 36fe5698..692f578a 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.CommandMinecart.ts @@ -2,25 +2,26 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class CommandMinecart { + // @ts-ignore + interface CommandMinecart extends org.bukkit.entity.Minecart { /** * Gets the command that this CommandMinecart will run when activated. * This will never return null. If the CommandMinecart does not have a * command, an empty String will be returned instead. */ - public getCommand(): string; + getCommand(): string; /** * Sets the command that this CommandMinecart will run when activated. * Setting the command to null is the same as setting it to an empty * String. */ - public setCommand(command: string): void; + setCommand(command: string): void; /** * Sets the name of this CommandMinecart. The name is used with commands * that this CommandMinecart executes. Setting the name to null is the * same as setting it to "@". */ - public setName(name: string): void; + setName(name: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts index 8a9b0ba1..06a0e84f 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.ExplosiveMinecart.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class ExplosiveMinecart { + // @ts-ignore + interface ExplosiveMinecart extends org.bukkit.entity.Minecart { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts index 698cd14b..46f779a3 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.HopperMinecart.ts @@ -2,16 +2,17 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class HopperMinecart { + // @ts-ignore + interface HopperMinecart extends org.bukkit.entity.Minecart, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable { /** * Checks whether or not this Minecart will pick up * items into its inventory. */ - public isEnabled(): boolean; + isEnabled(): boolean; /** * Sets whether this Minecart will pick up items. */ - public setEnabled(enabled: boolean): void; + setEnabled(enabled: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts index 56344e5b..9e434e88 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.PoweredMinecart.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class PoweredMinecart { + // @ts-ignore + interface PoweredMinecart extends org.bukkit.entity.Minecart { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts index cda9f049..a21b3767 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.RideableMinecart.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class RideableMinecart { + // @ts-ignore + interface RideableMinecart extends org.bukkit.entity.Minecart { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts index 1e10542e..3eb0fc57 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.SpawnerMinecart.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class SpawnerMinecart { + // @ts-ignore + interface SpawnerMinecart extends org.bukkit.entity.Minecart { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts b/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts index 719286c9..20651c1d 100644 --- a/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts +++ b/packages/bukkit/src/typings/org.bukkit.entity.minecart.StorageMinecart.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace entity { namespace minecart { - class StorageMinecart { + // @ts-ignore + interface StorageMinecart extends org.bukkit.entity.Minecart, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts b/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts index cc66e8da..208a001c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.Cancellable.ts @@ -1,17 +1,18 @@ declare namespace org { namespace bukkit { namespace event { - class Cancellable { + // @ts-ignore + interface Cancellable { /** * Gets the cancellation state of this event. A cancelled event will not * be executed in the server, but will still pass to other plugins */ - public isCancelled(): boolean; + isCancelled(): boolean; /** * Sets the cancellation state of this event. A cancelled event will not * be executed in the server, but will still pass to other plugins. */ - public setCancelled(cancel: boolean): void; + setCancelled(cancel: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts b/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts index 605f5442..c4eb24e9 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.Event.Result.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace Event { - class Result { + // @ts-ignore + class Result { public static DENY: org.bukkit.event.Event.Result; public static DEFAULT: org.bukkit.event.Event.Result; public static ALLOW: org.bukkit.event.Event.Result; diff --git a/packages/bukkit/src/typings/org.bukkit.event.Event.ts b/packages/bukkit/src/typings/org.bukkit.event.Event.ts index f0009e91..da8c1c66 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.Event.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.Event.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace event { + // @ts-ignore abstract class Event { /** * The default constructor is defined for cleaner code. This constructor diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventException.ts b/packages/bukkit/src/typings/org.bukkit.event.EventException.ts index 00fcc218..4ddf1c7b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.EventException.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.EventException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace event { - class EventException { + // @ts-ignore + class EventException { /** * Constructs a new EventException based on the given Exception */ diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts b/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts index c5080379..d8730148 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.EventHandler.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace event { - class EventHandler { + // @ts-ignore + interface EventHandler { /** * Define the priority of the event. *

@@ -15,14 +16,14 @@ declare namespace org { *

  • MONITOR * */ - public priority(): org.bukkit.event.EventPriority; + priority(): org.bukkit.event.EventPriority; /** * Define if the handler ignores a cancelled event. *

    * If ignoreCancelled is true and the event is cancelled, the method is * not called. Otherwise, the method is always called. */ - public ignoreCancelled(): boolean; + ignoreCancelled(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts b/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts index 65ec81ff..90c55107 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.EventPriority.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace event { - class EventPriority { + // @ts-ignore + class EventPriority { public static LOWEST: org.bukkit.event.EventPriority; public static LOW: org.bukkit.event.EventPriority; public static NORMAL: org.bukkit.event.EventPriority; diff --git a/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts b/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts index 51045e98..b0a29139 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.HandlerList.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace event { - class HandlerList { + // @ts-ignore + class HandlerList { /** * Create a new handler list and initialize using EventPriority. *

    diff --git a/packages/bukkit/src/typings/org.bukkit.event.Listener.ts b/packages/bukkit/src/typings/org.bukkit.event.Listener.ts index 939ef13d..7cc72e0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.Listener.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.Listener.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace event { - class Listener { + // @ts-ignore + interface Listener { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts b/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts index f0bdb44b..cb373521 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.Action.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class Action { + // @ts-ignore + class Action { public static LEFT_CLICK_BLOCK: org.bukkit.event.block.Action; public static RIGHT_CLICK_BLOCK: org.bukkit.event.block.Action; public static LEFT_CLICK_AIR: org.bukkit.event.block.Action; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts index c405b45f..43f6d941 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBreakEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockBreakEvent { + // @ts-ignore + class BlockBreakEvent implements org.bukkit.event.Cancellable { constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player) /** * Gets the Player that is breaking the block involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts index 7f4f88f5..c5ee05e2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockBurnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockBurnEvent { + // @ts-ignore + class BlockBurnEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block) constructor(block: org.bukkit.block.Block, ignitingBlock: org.bukkit.block.Block) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts index 7172cf23..5abf6758 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCanBuildEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockCanBuildEvent { + // @ts-ignore + class BlockCanBuildEvent { constructor(block: org.bukkit.block.Block, type: org.bukkit.block.data.BlockData, canBuild: boolean) constructor(block: org.bukkit.block.Block, player: org.bukkit.entity.Player, type: org.bukkit.block.data.BlockData, canBuild: boolean) protected buildable: boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts index 60c8e2ca..8b63f375 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockCookEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockCookEvent { + // @ts-ignore + class BlockCookEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, source: org.bukkit.inventory.ItemStack, result: org.bukkit.inventory.ItemStack) /** * Gets the smelted ItemStack for this event diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts index 9bf9e69f..1a3f9bb2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDamageEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockDamageEvent { + // @ts-ignore + class BlockDamageEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, block: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, instaBreak: boolean) /** * Gets the player damaging the block involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts index b621e55d..8c4a3815 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseArmorEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockDispenseArmorEvent { + // @ts-ignore + class BlockDispenseArmorEvent { constructor(block: org.bukkit.block.Block, dispensed: org.bukkit.inventory.ItemStack, target: org.bukkit.entity.LivingEntity) /** * Get the living entity on which the armor was dispensed. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts index d488ba8c..27f0938b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDispenseEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockDispenseEvent { + // @ts-ignore + class BlockDispenseEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, dispensed: org.bukkit.inventory.ItemStack, velocity: org.bukkit.util.Vector) /** * Gets the item that is being dispensed. Modifying the returned item will diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts index 56c8181e..f6a91f6e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockDropItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockDropItemEvent { + // @ts-ignore + class BlockDropItemEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, blockState: org.bukkit.block.BlockState, player: org.bukkit.entity.Player, items: any[] /*java.util.List*/) /** * Gets the Player that is breaking the block involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts index e3739445..660ca2f1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace block { + // @ts-ignore abstract class BlockEvent { constructor(theBlock: org.bukkit.block.Block) protected block: org.bukkit.block.Block; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts index d9a15f3c..daf58d98 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExpEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockExpEvent { + // @ts-ignore + class BlockExpEvent { constructor(block: org.bukkit.block.Block, exp: number) /** * Get the experience dropped by the block after the event has processed diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts index aefddccb..b3f01cf6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockExplodeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockExplodeEvent { + // @ts-ignore + class BlockExplodeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, yield: number) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts index 520a00f3..0738cc21 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFadeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockFadeEvent { + // @ts-ignore + class BlockFadeEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) /** * Gets the state of the block that will be fading, melting or diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts index 082e36c7..ae32a6a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFertilizeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockFertilizeEvent { + // @ts-ignore + class BlockFertilizeEvent implements org.bukkit.event.Cancellable { constructor(theBlock: org.bukkit.block.Block, player: org.bukkit.entity.Player, blocks: any[] /*java.util.List*/) /** * Gets the player that triggered the fertilization. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts index 434db8ef..f472643a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFormEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockFormEvent { + // @ts-ignore + class BlockFormEvent { constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts index a880155f..a6f47946 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockFromToEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockFromToEvent { + // @ts-ignore + class BlockFromToEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, face: org.bukkit.block.BlockFace) constructor(block: org.bukkit.block.Block, toBlock: org.bukkit.block.Block) protected to: org.bukkit.block.Block; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts index 58ef2783..7b201bb3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockGrowEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockGrowEvent { + // @ts-ignore + class BlockGrowEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) /** * Gets the state of the block where it will form or spread to. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts index 69f9c4d4..717a8005 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.IgniteCause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace block { namespace BlockIgniteEvent { - class IgniteCause { + // @ts-ignore + class IgniteCause { public static LAVA: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; public static FLINT_AND_STEEL: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; public static SPREAD: org.bukkit.event.block.BlockIgniteEvent.IgniteCause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts index 40e254c4..cd5d305c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockIgniteEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockIgniteEvent { + // @ts-ignore + class BlockIgniteEvent implements org.bukkit.event.Cancellable { constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity) constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingBlock: org.bukkit.block.Block) constructor(theBlock: org.bukkit.block.Block, cause: org.bukkit.event.block.BlockIgniteEvent.IgniteCause, ignitingEntity: org.bukkit.entity.Entity, ignitingBlock: org.bukkit.block.Block) diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts index 0fe3e49e..ad23a854 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockMultiPlaceEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockMultiPlaceEvent { + // @ts-ignore + class BlockMultiPlaceEvent { constructor(states: any[] /*java.util.List*/, clicked: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean) /** * Gets a list of blockstates for all blocks which were replaced by the diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts index 4b9bdc1e..e9aff591 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPhysicsEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockPhysicsEvent { + // @ts-ignore + class BlockPhysicsEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData) constructor(block: org.bukkit.block.Block, changed: org.bukkit.block.data.BlockData, sourceBlock: org.bukkit.block.Block) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts index 9946334b..bfc91305 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - abstract class BlockPistonEvent { + // @ts-ignore + abstract class BlockPistonEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, direction: org.bukkit.block.BlockFace) public isCancelled(): boolean; public setCancelled(cancelled: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts index 8ebbc5b0..2f6c507d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonExtendEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockPistonExtendEvent { + // @ts-ignore + class BlockPistonExtendEvent { constructor(block: org.bukkit.block.Block, length: number, direction: org.bukkit.block.BlockFace) constructor(block: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, direction: org.bukkit.block.BlockFace) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts index 89642ca4..c91438b7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPistonRetractEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockPistonRetractEvent { + // @ts-ignore + class BlockPistonRetractEvent { constructor(block: org.bukkit.block.Block, blocks: any[] /*java.util.List*/, direction: org.bukkit.block.BlockFace) /** * Gets the location where the possible moving block might be if the diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts index ffa351bb..97689d31 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockPlaceEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockPlaceEvent { + // @ts-ignore + class BlockPlaceEvent implements org.bukkit.event.Cancellable { constructor(placedBlock: org.bukkit.block.Block, replacedBlockState: org.bukkit.block.BlockState, placedAgainst: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean) constructor(placedBlock: org.bukkit.block.Block, replacedBlockState: org.bukkit.block.BlockState, placedAgainst: org.bukkit.block.Block, itemInHand: org.bukkit.inventory.ItemStack, thePlayer: org.bukkit.entity.Player, canBuild: boolean, hand: org.bukkit.inventory.EquipmentSlot) protected cancel: boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts index 46b8ab64..114f2d90 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockRedstoneEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockRedstoneEvent { + // @ts-ignore + class BlockRedstoneEvent { constructor(block: org.bukkit.block.Block, oldCurrent: number, newCurrent: number) /** * Gets the old current of this block diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts index 29fb4d17..37f5ca52 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockShearEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockShearEntityEvent { + // @ts-ignore + class BlockShearEntityEvent implements org.bukkit.event.Cancellable { constructor(dispenser: org.bukkit.block.Block, sheared: org.bukkit.entity.Entity, tool: org.bukkit.inventory.ItemStack) /** * Gets the entity that was sheared. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts index afd6866f..3fb1f2f1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.BlockSpreadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class BlockSpreadEvent { + // @ts-ignore + class BlockSpreadEvent { constructor(block: org.bukkit.block.Block, source: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) /** * Gets the source block involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts index a2df3820..cf358a82 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace block { namespace CauldronLevelChangeEvent { - class ChangeReason { + // @ts-ignore + class ChangeReason { public static BUCKET_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; public static BUCKET_EMPTY: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; public static BOTTLE_FILL: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts index 6dd391dd..26641fe8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.CauldronLevelChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class CauldronLevelChangeEvent { + // @ts-ignore + class CauldronLevelChangeEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, entity: org.bukkit.entity.Entity, reason: org.bukkit.event.block.CauldronLevelChangeEvent.ChangeReason, oldLevel: number, newLevel: number) /** * Get entity which did this. May be null. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts index 97a453a1..e8dc00c1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.EntityBlockFormEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class EntityBlockFormEvent { + // @ts-ignore + class EntityBlockFormEvent { constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block, blockstate: org.bukkit.block.BlockState) /** * Get the entity that formed the block. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts index 751a0265..82a853c2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.FluidLevelChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class FluidLevelChangeEvent { + // @ts-ignore + class FluidLevelChangeEvent implements org.bukkit.event.Cancellable { constructor(theBlock: org.bukkit.block.Block, newData: org.bukkit.block.data.BlockData) /** * Gets the new data of the changed block. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts index 61b10dd9..2584f90e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.LeavesDecayEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class LeavesDecayEvent { + // @ts-ignore + class LeavesDecayEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts index 373bcfc0..22e80983 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.MoistureChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class MoistureChangeEvent { + // @ts-ignore + class MoistureChangeEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, newState: org.bukkit.block.BlockState) /** * Gets the new state of the affected block. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts index bce6c241..22a375dc 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.NotePlayEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class NotePlayEvent { + // @ts-ignore + class NotePlayEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, instrument: org.bukkit.Instrument, note: org.bukkit.Note) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts index fd318334..c317feb7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.SignChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class SignChangeEvent { + // @ts-ignore + class SignChangeEvent implements org.bukkit.event.Cancellable { constructor(theBlock: org.bukkit.block.Block, thePlayer: org.bukkit.entity.Player, theLines: string) /** * Gets the player changing the sign involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts index 150a4ea2..62d4b589 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.block.SpongeAbsorbEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace block { - class SpongeAbsorbEvent { + // @ts-ignore + class SpongeAbsorbEvent implements org.bukkit.event.Cancellable { constructor(block: org.bukkit.block.Block, waterblocks: any[] /*java.util.List*/) /** * Get a list of all blocks to be removed by the sponge. diff --git a/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts index f6cf6796..fbb04f23 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.enchantment.EnchantItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace enchantment { - class EnchantItemEvent { + // @ts-ignore + class EnchantItemEvent implements org.bukkit.event.Cancellable { constructor(enchanter: org.bukkit.entity.Player, view: org.bukkit.inventory.InventoryView, table: org.bukkit.block.Block, item: org.bukkit.inventory.ItemStack, level: number, enchants: Map /*java.util.Map*/, i: number) /** * Gets the player enchanting the item diff --git a/packages/bukkit/src/typings/org.bukkit.event.enchantment.PrepareItemEnchantEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.enchantment.PrepareItemEnchantEvent.ts index dcd55269..025b9013 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.enchantment.PrepareItemEnchantEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.enchantment.PrepareItemEnchantEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace enchantment { - class PrepareItemEnchantEvent { + // @ts-ignore + class PrepareItemEnchantEvent implements org.bukkit.event.Cancellable { constructor(enchanter: org.bukkit.entity.Player, view: org.bukkit.inventory.InventoryView, table: org.bukkit.block.Block, item: org.bukkit.inventory.ItemStack, offers: org.bukkit.enchantments.EnchantmentOffer, bonus: number) /** * Gets the player enchanting the item diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.AreaEffectCloudApplyEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.AreaEffectCloudApplyEvent.ts index 1841f263..4f4c2336 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.AreaEffectCloudApplyEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.AreaEffectCloudApplyEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class AreaEffectCloudApplyEvent { + // @ts-ignore + class AreaEffectCloudApplyEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.AreaEffectCloud, affectedEntities: any[] /*java.util.List*/) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.BatToggleSleepEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.BatToggleSleepEvent.ts index 89e7d120..17a6dfbd 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.BatToggleSleepEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.BatToggleSleepEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class BatToggleSleepEvent { + // @ts-ignore + class BatToggleSleepEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Bat, awake: boolean) /** * Get whether or not the bat is attempting to awaken. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.ts index e8274c99..f09b8652 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace CreatureSpawnEvent { - class SpawnReason { + // @ts-ignore + class SpawnReason { public static NATURAL: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; public static JOCKEY: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; public static CHUNK_GEN: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.ts index df0dbfcb..a02701f4 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.CreatureSpawnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class CreatureSpawnEvent { + // @ts-ignore + class CreatureSpawnEvent { constructor(spawnee: org.bukkit.entity.LivingEntity, spawnReason: org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason) public getEntity(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.ts index c6213d7f..02e45eb7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.PowerCause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace CreeperPowerEvent { - class PowerCause { + // @ts-ignore + class PowerCause { public static LIGHTNING: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; public static SET_ON: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; public static SET_OFF: org.bukkit.event.entity.CreeperPowerEvent.PowerCause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.ts index faf59433..fa421425 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.CreeperPowerEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class CreeperPowerEvent { + // @ts-ignore + class CreeperPowerEvent implements org.bukkit.event.Cancellable { constructor(creeper: org.bukkit.entity.Creeper, bolt: org.bukkit.entity.LightningStrike, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause) constructor(creeper: org.bukkit.entity.Creeper, cause: org.bukkit.event.entity.CreeperPowerEvent.PowerCause) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EnderDragonChangePhaseEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EnderDragonChangePhaseEvent.ts index 06dcd7f9..12a1bc9f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EnderDragonChangePhaseEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EnderDragonChangePhaseEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EnderDragonChangePhaseEvent { + // @ts-ignore + class EnderDragonChangePhaseEvent implements org.bukkit.event.Cancellable { constructor(enderDragon: org.bukkit.entity.EnderDragon, currentPhase: org.bukkit.entity.EnderDragon.Phase, newPhase: org.bukkit.entity.EnderDragon.Phase) public getEntity(): org.bukkit.entity.EnderDragon; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityAirChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityAirChangeEvent.ts index 737c2a52..a77fa826 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityAirChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityAirChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityAirChangeEvent { + // @ts-ignore + class EntityAirChangeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, amount: number) /** * Gets the amount of air the entity has left (measured in ticks). diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreakDoorEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreakDoorEvent.ts index 565eb4f3..56723b57 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreakDoorEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreakDoorEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityBreakDoorEvent { + // @ts-ignore + class EntityBreakDoorEvent { constructor(entity: org.bukkit.entity.LivingEntity, targetBlock: org.bukkit.block.Block) public getEntity(): org.bukkit.entity.LivingEntity; } diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreedEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreedEvent.ts index d6c2dfa4..bc54433e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreedEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityBreedEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityBreedEvent { + // @ts-ignore + class EntityBreedEvent implements org.bukkit.event.Cancellable { constructor(child: org.bukkit.entity.LivingEntity, mother: org.bukkit.entity.LivingEntity, father: org.bukkit.entity.LivingEntity, breeder: org.bukkit.entity.LivingEntity, bredWith: org.bukkit.inventory.ItemStack, experience: number) public getEntity(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityChangeBlockEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityChangeBlockEvent.ts index 1ec321b8..880afde3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityChangeBlockEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityChangeBlockEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityChangeBlockEvent { + // @ts-ignore + class EntityChangeBlockEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, block: org.bukkit.block.Block, to: org.bukkit.block.data.BlockData) /** * Gets the block the entity is changing diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByBlockEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByBlockEvent.ts index 5db89180..cc392d18 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByBlockEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByBlockEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityCombustByBlockEvent { + // @ts-ignore + class EntityCombustByBlockEvent { constructor(combuster: org.bukkit.block.Block, combustee: org.bukkit.entity.Entity, duration: number) /** * The combuster can be lava or a block that is on fire. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByEntityEvent.ts index 017ed8ec..36ca0643 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustByEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityCombustByEntityEvent { + // @ts-ignore + class EntityCombustByEntityEvent { constructor(combuster: org.bukkit.entity.Entity, combustee: org.bukkit.entity.Entity, duration: number) /** * Get the entity that caused the combustion event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustEvent.ts index b9d05a48..4fbf7ef4 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCombustEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityCombustEvent { + // @ts-ignore + class EntityCombustEvent implements org.bukkit.event.Cancellable { constructor(combustee: org.bukkit.entity.Entity, duration: number) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCreatePortalEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCreatePortalEvent.ts index 577939f9..e30cd3b7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCreatePortalEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityCreatePortalEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityCreatePortalEvent { + // @ts-ignore + class EntityCreatePortalEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.LivingEntity, blocks: any[] /*java.util.List*/, type: org.bukkit.PortalType) public getEntity(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByBlockEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByBlockEvent.ts index 7f8cc610..c8258392 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByBlockEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByBlockEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityDamageByBlockEvent { + // @ts-ignore + class EntityDamageByBlockEvent { constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) constructor(damager: org.bukkit.block.Block, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map /*java.util.Map*/, modifierFunctions: Map /*java.util.Map*/) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByEntityEvent.ts index 81002444..4a05933c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageByEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityDamageByEntityEvent { + // @ts-ignore + class EntityDamageByEntityEvent { constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) constructor(damager: org.bukkit.entity.Entity, damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map /*java.util.Map*/, modifierFunctions: Map /*java.util.Map*/) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageCause.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageCause.ts index c54e3fd8..a4b01e37 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageCause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageCause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityDamageEvent { - class DamageCause { + // @ts-ignore + class DamageCause { public static CONTACT: org.bukkit.event.entity.EntityDamageEvent.DamageCause; public static ENTITY_ATTACK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; public static ENTITY_SWEEP_ATTACK: org.bukkit.event.entity.EntityDamageEvent.DamageCause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.ts index 348cf54c..5ffe07c3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.DamageModifier.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityDamageEvent { - class DamageModifier { + // @ts-ignore + class DamageModifier { public static BASE: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; public static HARD_HAT: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; public static BLOCKING: org.bukkit.event.entity.EntityDamageEvent.DamageModifier; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.ts index 85497a09..c1885515 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDamageEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityDamageEvent { + // @ts-ignore + class EntityDamageEvent implements org.bukkit.event.Cancellable { constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, damage: number) constructor(damagee: org.bukkit.entity.Entity, cause: org.bukkit.event.entity.EntityDamageEvent.DamageCause, modifiers: Map /*java.util.Map*/, modifierFunctions: Map /*java.util.Map*/) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDeathEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDeathEvent.ts index d8cf1ee9..afea2588 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDeathEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDeathEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityDeathEvent { + // @ts-ignore + class EntityDeathEvent { constructor(entity: org.bukkit.entity.LivingEntity, drops: any[] /*java.util.List*/) constructor(what: org.bukkit.entity.LivingEntity, drops: any[] /*java.util.List*/, droppedExp: number) public getEntity(): org.bukkit.entity.LivingEntity; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDropItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDropItemEvent.ts index 67477513..3f95c72f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDropItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityDropItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityDropItemEvent { + // @ts-ignore + class EntityDropItemEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, drop: org.bukkit.entity.Item) /** * Gets the Item created by the entity diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityEvent.ts index 16bc9eb4..4302c367 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { + // @ts-ignore abstract class EntityEvent { constructor(what: org.bukkit.entity.Entity) protected entity: org.bukkit.entity.Entity; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityExplodeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityExplodeEvent.ts index fc9d4612..a5015439 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityExplodeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityExplodeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityExplodeEvent { + // @ts-ignore + class EntityExplodeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, location: org.bukkit.Location, blocks: any[] /*java.util.List*/, yield: number) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityInteractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityInteractEvent.ts index 44adc086..6c37ec8c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityInteractEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityInteractEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityInteractEvent { + // @ts-ignore + class EntityInteractEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, block: org.bukkit.block.Block) protected block: org.bukkit.block.Block; public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPickupItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPickupItemEvent.ts index ee5c4f38..548be001 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPickupItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPickupItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPickupItemEvent { + // @ts-ignore + class EntityPickupItemEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.LivingEntity, item: org.bukkit.entity.Item, remaining: number) public getEntity(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPlaceEvent.ts index 50772533..e30191dc 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPlaceEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPlaceEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPlaceEvent { + // @ts-ignore + class EntityPlaceEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, player: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace) /** * Returns the player placing the entity diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEnterEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEnterEvent.ts index b6363008..bf2f897c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEnterEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEnterEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPortalEnterEvent { + // @ts-ignore + class EntityPortalEnterEvent { constructor(entity: org.bukkit.entity.Entity, location: org.bukkit.Location) /** * Gets the portal block the entity is touching diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEvent.ts index 4aabcc0b..81e1161f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPortalEvent { + // @ts-ignore + class EntityPortalEvent { constructor(entity: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalExitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalExitEvent.ts index 3710e52d..8ca6f794 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalExitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPortalExitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPortalExitEvent { + // @ts-ignore + class EntityPortalExitEvent { constructor(entity: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location, before: org.bukkit.util.Vector, after: org.bukkit.util.Vector) /** * Gets a copy of the velocity that the entity has before entering the diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPoseChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPoseChangeEvent.ts index cd5b517a..2fa0f0fe 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPoseChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPoseChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPoseChangeEvent { + // @ts-ignore + class EntityPoseChangeEvent { constructor(who: org.bukkit.entity.Entity, pose: org.bukkit.entity.Pose) /** * Gets the entity's new pose. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Action.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Action.ts index d8c749d0..b8896db6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Action.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Action.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityPotionEffectEvent { - class Action { + // @ts-ignore + class Action { public static ADDED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; public static CHANGED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; public static CLEARED: org.bukkit.event.entity.EntityPotionEffectEvent.Action; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ts index 37082b0d..511fdc16 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.Cause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityPotionEffectEvent { - class Cause { + // @ts-ignore + class Cause { public static AREA_EFFECT_CLOUD: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; public static ARROW: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; public static ATTACK: org.bukkit.event.entity.EntityPotionEffectEvent.Cause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.ts index 242b47d7..04cb154f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityPotionEffectEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityPotionEffectEvent { + // @ts-ignore + class EntityPotionEffectEvent implements org.bukkit.event.Cancellable { constructor(livingEntity: org.bukkit.entity.LivingEntity, oldEffect: org.bukkit.potion.PotionEffect, newEffect: org.bukkit.potion.PotionEffect, cause: org.bukkit.event.entity.EntityPotionEffectEvent.Cause, action: org.bukkit.event.entity.EntityPotionEffectEvent.Action, override: boolean) /** * Gets the old potion effect of the changed type, which will be removed. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.ts index f68f0062..8993bb40 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityRegainHealthEvent { - class RegainReason { + // @ts-ignore + class RegainReason { public static REGEN: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; public static SATIATED: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; public static EATING: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.ts index 1fb37689..32c293d8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityRegainHealthEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityRegainHealthEvent { + // @ts-ignore + class EntityRegainHealthEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, amount: number, regainReason: org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason) /** * Gets the amount of regained health diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityResurrectEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityResurrectEvent.ts index da85f125..c1604cc6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityResurrectEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityResurrectEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityResurrectEvent { + // @ts-ignore + class EntityResurrectEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.LivingEntity) public getEntity(): org.bukkit.entity.LivingEntity; public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityShootBowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityShootBowEvent.ts index 9ee3a741..5d4b5b55 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityShootBowEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityShootBowEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityShootBowEvent { + // @ts-ignore + class EntityShootBowEvent implements org.bukkit.event.Cancellable { constructor(shooter: org.bukkit.entity.LivingEntity, bow: org.bukkit.inventory.ItemStack, projectile: org.bukkit.entity.Entity, force: number) public getEntity(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntitySpawnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntitySpawnEvent.ts index 548a4bbc..6d0841c8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntitySpawnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntitySpawnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntitySpawnEvent { + // @ts-ignore + class EntitySpawnEvent implements org.bukkit.event.Cancellable { constructor(spawnee: org.bukkit.entity.Entity) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTameEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTameEvent.ts index 6b6ba66f..1de6496f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTameEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTameEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityTameEvent { + // @ts-ignore + class EntityTameEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.LivingEntity, owner: org.bukkit.entity.AnimalTamer) public getEntity(): org.bukkit.entity.LivingEntity; public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.TargetReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.TargetReason.ts index e13add5a..446a29a6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.TargetReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.TargetReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityTargetEvent { - class TargetReason { + // @ts-ignore + class TargetReason { public static TARGET_DIED: org.bukkit.event.entity.EntityTargetEvent.TargetReason; public static CLOSEST_PLAYER: org.bukkit.event.entity.EntityTargetEvent.TargetReason; public static TARGET_ATTACKED_ENTITY: org.bukkit.event.entity.EntityTargetEvent.TargetReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.ts index 8bc0e2b5..7c16bec4 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityTargetEvent { + // @ts-ignore + class EntityTargetEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetLivingEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetLivingEntityEvent.ts index aead163c..1c861284 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetLivingEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTargetLivingEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityTargetLivingEntityEvent { + // @ts-ignore + class EntityTargetLivingEntityEvent { constructor(entity: org.bukkit.entity.Entity, target: org.bukkit.entity.LivingEntity, reason: org.bukkit.event.entity.EntityTargetEvent.TargetReason) public getTarget(): org.bukkit.entity.LivingEntity; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTeleportEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTeleportEvent.ts index 7d6f4497..d067569a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTeleportEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTeleportEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityTeleportEvent { + // @ts-ignore + class EntityTeleportEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, from: org.bukkit.Location, to: org.bukkit.Location) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleGlideEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleGlideEvent.ts index e31a7741..70263b38 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleGlideEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleGlideEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityToggleGlideEvent { + // @ts-ignore + class EntityToggleGlideEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.LivingEntity, isGliding: boolean) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleSwimEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleSwimEvent.ts index 63d93abf..624cc3d7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleSwimEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityToggleSwimEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityToggleSwimEvent { + // @ts-ignore + class EntityToggleSwimEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.LivingEntity, isSwimming: boolean) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.TransformReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.TransformReason.ts index 12f176d5..1f9945a7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.TransformReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.TransformReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityTransformEvent { - class TransformReason { + // @ts-ignore + class TransformReason { public static CURED: org.bukkit.event.entity.EntityTransformEvent.TransformReason; public static INFECTION: org.bukkit.event.entity.EntityTransformEvent.TransformReason; public static DROWNED: org.bukkit.event.entity.EntityTransformEvent.TransformReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.ts index f7b25413..411c94dd 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityTransformEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityTransformEvent { + // @ts-ignore + class EntityTransformEvent implements org.bukkit.event.Cancellable { constructor(original: org.bukkit.entity.Entity, convertedList: any[] /*java.util.List*/, transformReason: org.bukkit.event.entity.EntityTransformEvent.TransformReason) /** * Gets the entity that the original entity was transformed to. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.ts index d61d1568..a8c245b2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.UnleashReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace EntityUnleashEvent { - class UnleashReason { + // @ts-ignore + class UnleashReason { public static HOLDER_GONE: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; public static PLAYER_UNLEASH: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; public static DISTANCE: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.ts index f65b3883..7d412c38 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.EntityUnleashEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class EntityUnleashEvent { + // @ts-ignore + class EntityUnleashEvent { constructor(entity: org.bukkit.entity.Entity, reason: org.bukkit.event.entity.EntityUnleashEvent.UnleashReason) /** * Returns the reason for the unleashing. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ExpBottleEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ExpBottleEvent.ts index 7d61b384..608b5258 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ExpBottleEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ExpBottleEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ExpBottleEvent { + // @ts-ignore + class ExpBottleEvent { constructor(bottle: org.bukkit.entity.ThrownExpBottle, exp: number) public getEntity(): org.bukkit.entity.ThrownExpBottle; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ExplosionPrimeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ExplosionPrimeEvent.ts index 01125ace..caa6a6d9 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ExplosionPrimeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ExplosionPrimeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ExplosionPrimeEvent { + // @ts-ignore + class ExplosionPrimeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, radius: number, fire: boolean) constructor(explosive: org.bukkit.entity.Explosive) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.FireworkExplodeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.FireworkExplodeEvent.ts index 47d12e49..21ae78d3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.FireworkExplodeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.FireworkExplodeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class FireworkExplodeEvent { + // @ts-ignore + class FireworkExplodeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Firework) public isCancelled(): boolean; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.FoodLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.FoodLevelChangeEvent.ts index 3a21c0d8..fbdf8677 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.FoodLevelChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.FoodLevelChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class FoodLevelChangeEvent { + // @ts-ignore + class FoodLevelChangeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.HumanEntity, level: number) constructor(what: org.bukkit.entity.HumanEntity, level: number, item: org.bukkit.inventory.ItemStack) public getEntity(): org.bukkit.entity.HumanEntity; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.HorseJumpEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.HorseJumpEvent.ts index 5be7adf4..5f0ca24b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.HorseJumpEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.HorseJumpEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class HorseJumpEvent { + // @ts-ignore + class HorseJumpEvent implements org.bukkit.event.Cancellable { constructor(horse: org.bukkit.entity.AbstractHorse, power: number) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemDespawnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemDespawnEvent.ts index 9925cad8..d5936410 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemDespawnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemDespawnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ItemDespawnEvent { + // @ts-ignore + class ItemDespawnEvent implements org.bukkit.event.Cancellable { constructor(despawnee: org.bukkit.entity.Item, loc: org.bukkit.Location) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemMergeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemMergeEvent.ts index eaaa6ba8..6068f09d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemMergeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemMergeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ItemMergeEvent { + // @ts-ignore + class ItemMergeEvent implements org.bukkit.event.Cancellable { constructor(item: org.bukkit.entity.Item, target: org.bukkit.entity.Item) public isCancelled(): boolean; public setCancelled(cancelled: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemSpawnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemSpawnEvent.ts index 1486449d..8efab2da 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ItemSpawnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ItemSpawnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ItemSpawnEvent { + // @ts-ignore + class ItemSpawnEvent { constructor(spawnee: org.bukkit.entity.Item, loc: org.bukkit.Location) constructor(spawnee: org.bukkit.entity.Item) public getEntity(): org.bukkit.entity.Item; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.LingeringPotionSplashEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.LingeringPotionSplashEvent.ts index 651c97a9..d3c23462 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.LingeringPotionSplashEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.LingeringPotionSplashEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class LingeringPotionSplashEvent { + // @ts-ignore + class LingeringPotionSplashEvent implements org.bukkit.event.Cancellable { constructor(potion: org.bukkit.entity.ThrownPotion, entity: org.bukkit.entity.AreaEffectCloud) public getEntity(): org.bukkit.entity.ThrownPotion; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.PigZapEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.PigZapEvent.ts index c2836b9a..906f1d89 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.PigZapEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.PigZapEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class PigZapEvent { + // @ts-ignore + class PigZapEvent implements org.bukkit.event.Cancellable { constructor(pig: org.bukkit.entity.Pig, bolt: org.bukkit.entity.LightningStrike, pigzombie: org.bukkit.entity.PigZombie) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.PigZombieAngerEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.PigZombieAngerEvent.ts index 633cf608..eb87ecc2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.PigZombieAngerEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.PigZombieAngerEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class PigZombieAngerEvent { + // @ts-ignore + class PigZombieAngerEvent implements org.bukkit.event.Cancellable { constructor(pigZombie: org.bukkit.entity.PigZombie, target: org.bukkit.entity.Entity, newAnger: number) /** * Gets the entity (if any) which triggered this anger update. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerDeathEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerDeathEvent.ts index 5c5f6301..8c0284c2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerDeathEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerDeathEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class PlayerDeathEvent { + // @ts-ignore + class PlayerDeathEvent { constructor(player: org.bukkit.entity.Player, drops: any[] /*java.util.List*/, droppedExp: number, deathMessage: string) constructor(player: org.bukkit.entity.Player, drops: any[] /*java.util.List*/, droppedExp: number, newExp: number, deathMessage: string) constructor(player: org.bukkit.entity.Player, drops: any[] /*java.util.List*/, droppedExp: number, newExp: number, newTotalExp: number, newLevel: number, deathMessage: string) diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerLeashEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerLeashEntityEvent.ts index 9ab17c06..2ab65355 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerLeashEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.PlayerLeashEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class PlayerLeashEntityEvent { + // @ts-ignore + class PlayerLeashEntityEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity, leashHolder: org.bukkit.entity.Entity, leasher: org.bukkit.entity.Player) /** * Returns the entity that is holding the leash. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.PotionSplashEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.PotionSplashEvent.ts index c5ead0ea..88161dff 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.PotionSplashEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.PotionSplashEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class PotionSplashEvent { + // @ts-ignore + class PotionSplashEvent implements org.bukkit.event.Cancellable { constructor(potion: org.bukkit.entity.ThrownPotion, affectedEntities: Map /*java.util.Map*/) public getEntity(): org.bukkit.entity.ThrownPotion; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileHitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileHitEvent.ts index 192c2ecc..a2a2e68c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileHitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileHitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ProjectileHitEvent { + // @ts-ignore + class ProjectileHitEvent { constructor(projectile: org.bukkit.entity.Projectile) constructor(projectile: org.bukkit.entity.Projectile, hitEntity: org.bukkit.entity.Entity) constructor(projectile: org.bukkit.entity.Projectile, hitBlock: org.bukkit.block.Block) diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileLaunchEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileLaunchEvent.ts index c5643763..b98d5420 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileLaunchEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.ProjectileLaunchEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class ProjectileLaunchEvent { + // @ts-ignore + class ProjectileLaunchEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Entity) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.SheepDyeWoolEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.SheepDyeWoolEvent.ts index 5773981b..17daf161 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.SheepDyeWoolEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.SheepDyeWoolEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class SheepDyeWoolEvent { + // @ts-ignore + class SheepDyeWoolEvent implements org.bukkit.event.Cancellable { constructor(sheep: org.bukkit.entity.Sheep, color: org.bukkit.DyeColor) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.SheepRegrowWoolEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.SheepRegrowWoolEvent.ts index d0b28c46..3cb53875 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.SheepRegrowWoolEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.SheepRegrowWoolEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class SheepRegrowWoolEvent { + // @ts-ignore + class SheepRegrowWoolEvent implements org.bukkit.event.Cancellable { constructor(sheep: org.bukkit.entity.Sheep) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.SlimeSplitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.SlimeSplitEvent.ts index 6467aef9..4264f68d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.SlimeSplitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.SlimeSplitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class SlimeSplitEvent { + // @ts-ignore + class SlimeSplitEvent implements org.bukkit.event.Cancellable { constructor(slime: org.bukkit.entity.Slime, count: number) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerAcquireTradeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerAcquireTradeEvent.ts index da66c17d..a225e6b3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerAcquireTradeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerAcquireTradeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class VillagerAcquireTradeEvent { + // @ts-ignore + class VillagerAcquireTradeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.AbstractVillager, recipe: org.bukkit.inventory.MerchantRecipe) /** * Get the recipe to be acquired. diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.ts index 646055a2..f2eb1a4c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace entity { namespace VillagerCareerChangeEvent { - class ChangeReason { + // @ts-ignore + class ChangeReason { public static LOSING_JOB: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; public static EMPLOYED: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason; public static values(): org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason[]; diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ts index 07c88b4e..c7139414 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerCareerChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class VillagerCareerChangeEvent { + // @ts-ignore + class VillagerCareerChangeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.Villager, profession: org.bukkit.entity.Villager.Profession, reason: org.bukkit.event.entity.VillagerCareerChangeEvent.ChangeReason) public getEntity(): org.bukkit.entity.Villager; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerReplenishTradeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerReplenishTradeEvent.ts index fbce5977..86e8fa53 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerReplenishTradeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.entity.VillagerReplenishTradeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace entity { - class VillagerReplenishTradeEvent { + // @ts-ignore + class VillagerReplenishTradeEvent implements org.bukkit.event.Cancellable { constructor(what: org.bukkit.entity.AbstractVillager, recipe: org.bukkit.inventory.MerchantRecipe, bonus: number) /** * Get the recipe to replenish. diff --git a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakByEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakByEntityEvent.ts index 02f4c36d..bf7b6f60 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakByEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakByEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace hanging { - class HangingBreakByEntityEvent { + // @ts-ignore + class HangingBreakByEntityEvent { constructor(hanging: org.bukkit.entity.Hanging, remover: org.bukkit.entity.Entity) constructor(hanging: org.bukkit.entity.Hanging, remover: org.bukkit.entity.Entity, cause: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.ts b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.ts index 7132efd9..40fd55ee 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.RemoveCause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace hanging { namespace HangingBreakEvent { - class RemoveCause { + // @ts-ignore + class RemoveCause { public static ENTITY: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; public static EXPLOSION: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; public static OBSTRUCTION: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.ts index a4bc8d31..5fe87f63 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingBreakEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace hanging { - class HangingBreakEvent { + // @ts-ignore + class HangingBreakEvent implements org.bukkit.event.Cancellable { constructor(hanging: org.bukkit.entity.Hanging, cause: org.bukkit.event.hanging.HangingBreakEvent.RemoveCause) /** * Gets the cause for the hanging entity's removal diff --git a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingEvent.ts index 6af273e3..7a013355 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace hanging { + // @ts-ignore abstract class HangingEvent { constructor(painting: org.bukkit.entity.Hanging) protected hanging: org.bukkit.entity.Hanging; diff --git a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingPlaceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingPlaceEvent.ts index eee94ef0..9269bee8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingPlaceEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.hanging.HangingPlaceEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace hanging { - class HangingPlaceEvent { + // @ts-ignore + class HangingPlaceEvent implements org.bukkit.event.Cancellable { constructor(hanging: org.bukkit.entity.Hanging, player: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace) /** * Returns the player placing the hanging entity diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewEvent.ts index a67b97cb..7f60d218 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class BrewEvent { + // @ts-ignore + class BrewEvent implements org.bukkit.event.Cancellable { constructor(brewer: org.bukkit.block.Block, contents: org.bukkit.inventory.BrewerInventory, fuelLevel: number) /** * Gets the contents of the Brewing Stand. diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewingStandFuelEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewingStandFuelEvent.ts index bd5ad2b5..c2b8dbcc 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewingStandFuelEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.BrewingStandFuelEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class BrewingStandFuelEvent { + // @ts-ignore + class BrewingStandFuelEvent implements org.bukkit.event.Cancellable { constructor(brewingStand: org.bukkit.block.Block, fuel: org.bukkit.inventory.ItemStack, fuelPower: number) /** * Gets the ItemStack of the fuel before the amount was subtracted. diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.ClickType.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.ClickType.ts index 1882dddd..0205d069 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.ClickType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.ClickType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class ClickType { + // @ts-ignore + class ClickType { public static LEFT: org.bukkit.event.inventory.ClickType; public static SHIFT_LEFT: org.bukkit.event.inventory.ClickType; public static RIGHT: org.bukkit.event.inventory.ClickType; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.CraftItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.CraftItemEvent.ts index 4e3c2375..2050401f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.CraftItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.CraftItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class CraftItemEvent { + // @ts-ignore + class CraftItemEvent { constructor(recipe: org.bukkit.inventory.Recipe, what: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, click: org.bukkit.event.inventory.ClickType, action: org.bukkit.event.inventory.InventoryAction) constructor(recipe: org.bukkit.inventory.Recipe, what: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, click: org.bukkit.event.inventory.ClickType, action: org.bukkit.event.inventory.InventoryAction, key: number) public getRecipe(): org.bukkit.inventory.Recipe; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.DragType.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.DragType.ts index 15b13422..915181fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.DragType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.DragType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class DragType { + // @ts-ignore + class DragType { public static SINGLE: org.bukkit.event.inventory.DragType; public static EVEN: org.bukkit.event.inventory.DragType; public static values(): org.bukkit.event.inventory.DragType[]; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceBurnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceBurnEvent.ts index 7542bcef..3974adfb 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceBurnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceBurnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class FurnaceBurnEvent { + // @ts-ignore + class FurnaceBurnEvent implements org.bukkit.event.Cancellable { constructor(furnace: org.bukkit.block.Block, fuel: org.bukkit.inventory.ItemStack, burnTime: number) /** * Gets the fuel ItemStack for this event diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceExtractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceExtractEvent.ts index 29f76f6a..ac65296c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceExtractEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceExtractEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class FurnaceExtractEvent { + // @ts-ignore + class FurnaceExtractEvent { constructor(player: org.bukkit.entity.Player, block: org.bukkit.block.Block, itemType: org.bukkit.Material, itemAmount: number, exp: number) /** * Get the player that triggered the event diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceSmeltEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceSmeltEvent.ts index 567519a7..e1d9433d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceSmeltEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.FurnaceSmeltEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class FurnaceSmeltEvent { + // @ts-ignore + class FurnaceSmeltEvent { constructor(furnace: org.bukkit.block.Block, source: org.bukkit.inventory.ItemStack, result: org.bukkit.inventory.ItemStack) } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryAction.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryAction.ts index b0894783..74cd5ca4 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryAction.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryAction.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryAction { + // @ts-ignore + class InventoryAction { public static NOTHING: org.bukkit.event.inventory.InventoryAction; public static PICKUP_ALL: org.bukkit.event.inventory.InventoryAction; public static PICKUP_SOME: org.bukkit.event.inventory.InventoryAction; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryClickEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryClickEvent.ts index 5412fa10..517c7838 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryClickEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryClickEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryClickEvent { + // @ts-ignore + class InventoryClickEvent { constructor(view: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, click: org.bukkit.event.inventory.ClickType, action: org.bukkit.event.inventory.InventoryAction) constructor(view: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, click: org.bukkit.event.inventory.ClickType, action: org.bukkit.event.inventory.InventoryAction, key: number) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCloseEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCloseEvent.ts index 587c5109..c444648f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCloseEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCloseEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryCloseEvent { + // @ts-ignore + class InventoryCloseEvent { constructor(transaction: org.bukkit.inventory.InventoryView) /** * Returns the player involved in this event diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCreativeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCreativeEvent.ts index 68e9749f..21fb1cbe 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCreativeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryCreativeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryCreativeEvent { + // @ts-ignore + class InventoryCreativeEvent { constructor(what: org.bukkit.inventory.InventoryView, type: org.bukkit.event.inventory.InventoryType.SlotType, slot: number, newItem: org.bukkit.inventory.ItemStack) public getCursor(): org.bukkit.inventory.ItemStack; public setCursor(item: org.bukkit.inventory.ItemStack): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryDragEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryDragEvent.ts index 0f48d3e0..b25432a7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryDragEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryDragEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryDragEvent { + // @ts-ignore + class InventoryDragEvent { constructor(what: org.bukkit.inventory.InventoryView, newCursor: org.bukkit.inventory.ItemStack, oldCursor: org.bukkit.inventory.ItemStack, right: boolean, slots: Map /*java.util.Map*/) /** * Gets all items to be added to the inventory in this drag. diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryEvent.ts index 82a7eec8..c7c10d3a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryEvent { + // @ts-ignore + class InventoryEvent { constructor(transaction: org.bukkit.inventory.InventoryView) protected transaction: org.bukkit.inventory.InventoryView; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryInteractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryInteractEvent.ts index b541ed26..3bbed7a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryInteractEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryInteractEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - abstract class InventoryInteractEvent { + // @ts-ignore + abstract class InventoryInteractEvent implements org.bukkit.event.Cancellable { constructor(transaction: org.bukkit.inventory.InventoryView) /** * Gets the player who performed the click. diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryMoveItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryMoveItemEvent.ts index 0cdb3823..b9ff2b60 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryMoveItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryMoveItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryMoveItemEvent { + // @ts-ignore + class InventoryMoveItemEvent implements org.bukkit.event.Cancellable { constructor(sourceInventory: org.bukkit.inventory.Inventory, itemStack: org.bukkit.inventory.ItemStack, destinationInventory: org.bukkit.inventory.Inventory, didSourceInitiate: boolean) /** * Gets the Inventory that the ItemStack is being taken from diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryOpenEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryOpenEvent.ts index 30c7afb1..bf8a7451 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryOpenEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryOpenEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryOpenEvent { + // @ts-ignore + class InventoryOpenEvent implements org.bukkit.event.Cancellable { constructor(transaction: org.bukkit.inventory.InventoryView) /** * Returns the player involved in this event diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryPickupItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryPickupItemEvent.ts index 96e2c92f..1769b905 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryPickupItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryPickupItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryPickupItemEvent { + // @ts-ignore + class InventoryPickupItemEvent implements org.bukkit.event.Cancellable { constructor(inventory: org.bukkit.inventory.Inventory, item: org.bukkit.entity.Item) /** * Gets the Inventory that picked up the item diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.SlotType.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.SlotType.ts index dda6b42c..84d1f2cf 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.SlotType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.SlotType.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace inventory { namespace InventoryType { - class SlotType { + // @ts-ignore + class SlotType { public static RESULT: org.bukkit.event.inventory.InventoryType.SlotType; public static CRAFTING: org.bukkit.event.inventory.InventoryType.SlotType; public static ARMOR: org.bukkit.event.inventory.InventoryType.SlotType; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.ts index 68aa03d5..6eb53802 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.InventoryType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class InventoryType { + // @ts-ignore + class InventoryType { public static CHEST: org.bukkit.event.inventory.InventoryType; public static DISPENSER: org.bukkit.event.inventory.InventoryType; public static DROPPER: org.bukkit.event.inventory.InventoryType; diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareAnvilEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareAnvilEvent.ts index 44d55c8e..efda1718 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareAnvilEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareAnvilEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class PrepareAnvilEvent { + // @ts-ignore + class PrepareAnvilEvent { constructor(inventory: org.bukkit.inventory.InventoryView, result: org.bukkit.inventory.ItemStack) public getInventory(): org.bukkit.inventory.AnvilInventory; /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareItemCraftEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareItemCraftEvent.ts index 6ee41dec..d3b85eb8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareItemCraftEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.PrepareItemCraftEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class PrepareItemCraftEvent { + // @ts-ignore + class PrepareItemCraftEvent { constructor(what: org.bukkit.inventory.CraftingInventory, view: org.bukkit.inventory.InventoryView, isRepair: boolean) /** * Get the recipe that has been formed. If this event was triggered by a diff --git a/packages/bukkit/src/typings/org.bukkit.event.inventory.TradeSelectEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.inventory.TradeSelectEvent.ts index 87015172..bc75b3f2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.inventory.TradeSelectEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.inventory.TradeSelectEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace inventory { - class TradeSelectEvent { + // @ts-ignore + class TradeSelectEvent { constructor(transaction: org.bukkit.inventory.InventoryView, newIndex: number) /** * Used to get the index of the trade the player clicked on. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerChatEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerChatEvent.ts index 6d8bf9a3..6f893a66 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerChatEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerChatEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class AsyncPlayerChatEvent { + // @ts-ignore + class AsyncPlayerChatEvent implements org.bukkit.event.Cancellable { constructor(async: boolean, who: org.bukkit.entity.Player, message: string, players: any[] /*java.util.Set*/) /** * Gets the message that the player is attempting to send. This message diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.ts b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.ts index 31765386..b916a717 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace AsyncPlayerPreLoginEvent { - class Result { + // @ts-ignore + class Result { public static ALLOWED: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; public static KICK_FULL: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; public static KICK_BANNED: org.bukkit.event.player.AsyncPlayerPreLoginEvent.Result; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.ts index c2d1d369..71031855 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.AsyncPlayerPreLoginEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class AsyncPlayerPreLoginEvent { + // @ts-ignore + class AsyncPlayerPreLoginEvent { constructor(name: string, ipAddress: any) constructor(name: string, ipAddress: any, uniqueId: any) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAchievementAwardedEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAchievementAwardedEvent.ts index 003dfd9a..f1e10ace 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAchievementAwardedEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAchievementAwardedEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerAchievementAwardedEvent { + // @ts-ignore + class PlayerAchievementAwardedEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, achievement: org.bukkit.Achievement) /** * Gets the Achievement being awarded. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAdvancementDoneEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAdvancementDoneEvent.ts index b4e3424e..20c53948 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAdvancementDoneEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAdvancementDoneEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerAdvancementDoneEvent { + // @ts-ignore + class PlayerAdvancementDoneEvent { constructor(who: org.bukkit.entity.Player, advancement: org.bukkit.advancement.Advancement) /** * Get the advancement which has been completed. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationEvent.ts index 383f6c78..ced63548 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerAnimationEvent { + // @ts-ignore + class PlayerAnimationEvent implements org.bukkit.event.Cancellable { /** * Construct a new PlayerAnimation event */ diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationType.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationType.ts index 79fe79ea..2540eb4c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerAnimationType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerAnimationType { + // @ts-ignore + class PlayerAnimationType { public static ARM_SWING: org.bukkit.event.player.PlayerAnimationType; public static values(): org.bukkit.event.player.PlayerAnimationType[]; public static valueOf(name: string): org.bukkit.event.player.PlayerAnimationType; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerArmorStandManipulateEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerArmorStandManipulateEvent.ts index b36dda5b..cde0322f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerArmorStandManipulateEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerArmorStandManipulateEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerArmorStandManipulateEvent { + // @ts-ignore + class PlayerArmorStandManipulateEvent { constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.ArmorStand, playerItem: org.bukkit.inventory.ItemStack, armorStandItem: org.bukkit.inventory.ItemStack, slot: org.bukkit.inventory.EquipmentSlot) /** * Returns the item held by the player. If this Item is null and the armor stand Item is also null, diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.ts index 26ef1094..046af612 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerBedEnterEvent { - class BedEnterResult { + // @ts-ignore + class BedEnterResult { public static OK: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; public static NOT_POSSIBLE_HERE: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; public static NOT_POSSIBLE_NOW: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.ts index d20196ea..c5972943 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedEnterEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerBedEnterEvent { + // @ts-ignore + class PlayerBedEnterEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block, bedEnterResult: org.bukkit.event.player.PlayerBedEnterEvent.BedEnterResult) constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedLeaveEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedLeaveEvent.ts index a5213ec6..a98ace80 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedLeaveEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBedLeaveEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerBedLeaveEvent { + // @ts-ignore + class PlayerBedLeaveEvent { constructor(who: org.bukkit.entity.Player, bed: org.bukkit.block.Block, setBedSpawn: boolean) /** * Returns the bed block involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEmptyEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEmptyEvent.ts index fb13176a..1cce9cc1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEmptyEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEmptyEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerBucketEmptyEvent { + // @ts-ignore + class PlayerBucketEmptyEvent { constructor(who: org.bukkit.entity.Player, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) constructor(who: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) public getHandlers(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEvent.ts index d3598a30..7245d969 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - abstract class PlayerBucketEvent { + // @ts-ignore + abstract class PlayerBucketEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) constructor(who: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketFillEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketFillEvent.ts index f7ab3aac..b8896d8e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketFillEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerBucketFillEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerBucketFillEvent { + // @ts-ignore + class PlayerBucketFillEvent { constructor(who: org.bukkit.entity.Player, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) constructor(who: org.bukkit.entity.Player, block: org.bukkit.block.Block, blockClicked: org.bukkit.block.Block, blockFace: org.bukkit.block.BlockFace, bucket: org.bukkit.Material, itemInHand: org.bukkit.inventory.ItemStack) public getHandlers(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedMainHandEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedMainHandEvent.ts index 9d15c4da..3599d303 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedMainHandEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedMainHandEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerChangedMainHandEvent { + // @ts-ignore + class PlayerChangedMainHandEvent { constructor(who: org.bukkit.entity.Player, mainHand: org.bukkit.inventory.MainHand) /** * Gets the new main hand of the player. The old hand is still momentarily diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedWorldEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedWorldEvent.ts index cf9c0458..f547850a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedWorldEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChangedWorldEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerChangedWorldEvent { + // @ts-ignore + class PlayerChangedWorldEvent { constructor(player: org.bukkit.entity.Player, from: org.bukkit.World) /** * Gets the world the player is switching from. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChannelEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChannelEvent.ts index 46551b83..d6ef3a11 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChannelEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChannelEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace player { + // @ts-ignore abstract class PlayerChannelEvent { constructor(player: org.bukkit.entity.Player, channel: string) public getChannel(): string; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatEvent.ts index 76bdc62f..d9da31a8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerChatEvent { + // @ts-ignore + class PlayerChatEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, message: string) constructor(player: org.bukkit.entity.Player, message: string, format: string, recipients: any[] /*java.util.Set*/) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatTabCompleteEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatTabCompleteEvent.ts index 4aaeb398..45640710 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatTabCompleteEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerChatTabCompleteEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerChatTabCompleteEvent { + // @ts-ignore + class PlayerChatTabCompleteEvent { constructor(who: org.bukkit.entity.Player, message: string, completions: any[] /*java.util.Collection*/) /** * Gets the chat message being tab-completed. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandPreprocessEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandPreprocessEvent.ts index 51b8cda1..b23b15f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandPreprocessEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandPreprocessEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerCommandPreprocessEvent { + // @ts-ignore + class PlayerCommandPreprocessEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, message: string) constructor(player: org.bukkit.entity.Player, message: string, recipients: any[] /*java.util.Set*/) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandSendEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandSendEvent.ts index b1653387..a95f6171 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandSendEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerCommandSendEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerCommandSendEvent { + // @ts-ignore + class PlayerCommandSendEvent { constructor(player: org.bukkit.entity.Player, commands: any[] /*java.util.Collection*/) /** * Returns a mutable collection of all top level commands to be sent. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerDropItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerDropItemEvent.ts index 55b346c0..49491433 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerDropItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerDropItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerDropItemEvent { + // @ts-ignore + class PlayerDropItemEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, drop: org.bukkit.entity.Item) /** * Gets the ItemDrop created by the player diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEditBookEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEditBookEvent.ts index 15af2659..08510a35 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEditBookEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEditBookEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerEditBookEvent { + // @ts-ignore + class PlayerEditBookEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, slot: number, previousBookMeta: org.bukkit.inventory.meta.BookMeta, newBookMeta: org.bukkit.inventory.meta.BookMeta, isSigning: boolean) /** * Gets the book meta currently on the book. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEggThrowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEggThrowEvent.ts index 67e2197c..50c71c6a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEggThrowEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEggThrowEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerEggThrowEvent { + // @ts-ignore + class PlayerEggThrowEvent { constructor(player: org.bukkit.entity.Player, egg: org.bukkit.entity.Egg, hatching: boolean, numHatches: number, hatchingType: org.bukkit.entity.EntityType) /** * Gets the egg involved in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEvent.ts index 69b19f45..202f3730 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace player { + // @ts-ignore abstract class PlayerEvent { constructor(who: org.bukkit.entity.Player) protected player: org.bukkit.entity.Player; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerExpChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerExpChangeEvent.ts index 1c1a0d22..7defc380 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerExpChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerExpChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerExpChangeEvent { + // @ts-ignore + class PlayerExpChangeEvent { constructor(player: org.bukkit.entity.Player, expAmount: number) /** * Get the amount of experience the player will receive diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.State.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.State.ts index 7ee635c7..8a9befd8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.State.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.State.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerFishEvent { - class State { + // @ts-ignore + class State { public static FISHING: org.bukkit.event.player.PlayerFishEvent.State; public static CAUGHT_FISH: org.bukkit.event.player.PlayerFishEvent.State; public static CAUGHT_ENTITY: org.bukkit.event.player.PlayerFishEvent.State; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.ts index 15bf00ef..987aef68 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerFishEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerFishEvent { + // @ts-ignore + class PlayerFishEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, entity: org.bukkit.entity.Entity, hookEntity: org.bukkit.entity.FishHook, state: org.bukkit.event.player.PlayerFishEvent.State) /** * Gets the entity caught by the player. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerGameModeChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerGameModeChangeEvent.ts index 388e4d2d..ceb350c2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerGameModeChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerGameModeChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerGameModeChangeEvent { + // @ts-ignore + class PlayerGameModeChangeEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, newGameMode: org.bukkit.GameMode) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractAtEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractAtEntityEvent.ts index 1ae3b14b..fd94affe 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractAtEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractAtEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerInteractAtEntityEvent { + // @ts-ignore + class PlayerInteractAtEntityEvent { constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, position: org.bukkit.util.Vector) constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, position: org.bukkit.util.Vector, hand: org.bukkit.inventory.EquipmentSlot) public getClickedPosition(): org.bukkit.util.Vector; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEntityEvent.ts index 3a5d658d..3ad18fc3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerInteractEntityEvent { + // @ts-ignore + class PlayerInteractEntityEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity) constructor(who: org.bukkit.entity.Player, clickedEntity: org.bukkit.entity.Entity, hand: org.bukkit.inventory.EquipmentSlot) protected clickedEntity: org.bukkit.entity.Entity; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEvent.ts index 2afc85e0..571ce407 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerInteractEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerInteractEvent { + // @ts-ignore + class PlayerInteractEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, action: org.bukkit.event.block.Action, item: org.bukkit.inventory.ItemStack, clickedBlock: org.bukkit.block.Block, clickedFace: org.bukkit.block.BlockFace) constructor(who: org.bukkit.entity.Player, action: org.bukkit.event.block.Action, item: org.bukkit.inventory.ItemStack, clickedBlock: org.bukkit.block.Block, clickedFace: org.bukkit.block.BlockFace, hand: org.bukkit.inventory.EquipmentSlot) protected item: org.bukkit.inventory.ItemStack; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemBreakEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemBreakEvent.ts index faf4afaf..b303438b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemBreakEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemBreakEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerItemBreakEvent { + // @ts-ignore + class PlayerItemBreakEvent { constructor(player: org.bukkit.entity.Player, brokenItem: org.bukkit.inventory.ItemStack) /** * Gets the item that broke diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemConsumeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemConsumeEvent.ts index c9b8fda6..a56e0725 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemConsumeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemConsumeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerItemConsumeEvent { + // @ts-ignore + class PlayerItemConsumeEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, item: org.bukkit.inventory.ItemStack) /** * Gets the item that is being consumed. Modifying the returned item will diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemDamageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemDamageEvent.ts index e57e9f83..084602c1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemDamageEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemDamageEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerItemDamageEvent { + // @ts-ignore + class PlayerItemDamageEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, what: org.bukkit.inventory.ItemStack, damage: number) /** * Gets the item being damaged. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemHeldEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemHeldEvent.ts index 3dfc1b06..dd8186c3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemHeldEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemHeldEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerItemHeldEvent { + // @ts-ignore + class PlayerItemHeldEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, previous: number, current: number) /** * Gets the previous held slot index diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemMendEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemMendEvent.ts index 63476a9c..3fdf0aaa 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemMendEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerItemMendEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerItemMendEvent { + // @ts-ignore + class PlayerItemMendEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, item: org.bukkit.inventory.ItemStack, experienceOrb: org.bukkit.entity.ExperienceOrb, repairAmount: number) /** * Get the {@link ItemStack} to be repaired. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerJoinEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerJoinEvent.ts index 82b0908a..230f2c53 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerJoinEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerJoinEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerJoinEvent { + // @ts-ignore + class PlayerJoinEvent { constructor(playerJoined: org.bukkit.entity.Player, joinMessage: string) /** * Gets the join message to send to all online players diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerKickEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerKickEvent.ts index e1279657..ad58cbe3 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerKickEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerKickEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerKickEvent { + // @ts-ignore + class PlayerKickEvent implements org.bukkit.event.Cancellable { constructor(playerKicked: org.bukkit.entity.Player, kickReason: string, leaveMessage: string) /** * Gets the reason why the player is getting kicked diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLevelChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLevelChangeEvent.ts index 30a5b827..d29c1bb5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLevelChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLevelChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerLevelChangeEvent { + // @ts-ignore + class PlayerLevelChangeEvent { constructor(player: org.bukkit.entity.Player, oldLevel: number, newLevel: number) /** * Gets the old level of the player diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLocaleChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLocaleChangeEvent.ts index 5fb271ab..9e03de90 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLocaleChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLocaleChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerLocaleChangeEvent { + // @ts-ignore + class PlayerLocaleChangeEvent { constructor(who: org.bukkit.entity.Player, locale: string) public getLocale(): string; public getHandlers(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.Result.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.Result.ts index 55ae52b2..ceda32fc 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.Result.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.Result.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerLoginEvent { - class Result { + // @ts-ignore + class Result { public static ALLOWED: org.bukkit.event.player.PlayerLoginEvent.Result; public static KICK_FULL: org.bukkit.event.player.PlayerLoginEvent.Result; public static KICK_BANNED: org.bukkit.event.player.PlayerLoginEvent.Result; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.ts index ead1ea78..f99dbd93 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerLoginEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerLoginEvent { + // @ts-ignore + class PlayerLoginEvent { /** * This constructor defaults message to an empty string, and result to * ALLOWED diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerMoveEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerMoveEvent.ts index c60ebf4f..03e4a9cf 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerMoveEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerMoveEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerMoveEvent { + // @ts-ignore + class PlayerMoveEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location) /** * Gets the cancellation state of this event. A cancelled event will not diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupArrowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupArrowEvent.ts index f060340d..bf3f5b3a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupArrowEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupArrowEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerPickupArrowEvent { + // @ts-ignore + class PlayerPickupArrowEvent { constructor(player: org.bukkit.entity.Player, item: org.bukkit.entity.Item, arrow: org.bukkit.entity.AbstractArrow) /** * Get the arrow being picked up by the player diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupItemEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupItemEvent.ts index 6a33094b..6e94baf8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupItemEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPickupItemEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerPickupItemEvent { + // @ts-ignore + class PlayerPickupItemEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, item: org.bukkit.entity.Item, remaining: number) /** * Gets the Item picked up by the player. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPortalEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPortalEvent.ts index 07d0ab1d..3aa6c7a5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPortalEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPortalEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerPortalEvent { + // @ts-ignore + class PlayerPortalEvent { constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location) constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause) public getHandlers(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.Result.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.Result.ts index 7fcebe45..70eadb2f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.Result.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.Result.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerPreLoginEvent { - class Result { + // @ts-ignore + class Result { public static ALLOWED: org.bukkit.event.player.PlayerPreLoginEvent.Result; public static KICK_FULL: org.bukkit.event.player.PlayerPreLoginEvent.Result; public static KICK_BANNED: org.bukkit.event.player.PlayerPreLoginEvent.Result; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.ts index 6bf42e74..0342b518 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerPreLoginEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerPreLoginEvent { + // @ts-ignore + class PlayerPreLoginEvent { constructor(name: string, ipAddress: any) constructor(name: string, ipAddress: any, uniqueId: any) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerQuitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerQuitEvent.ts index 643822ab..4792870e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerQuitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerQuitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerQuitEvent { + // @ts-ignore + class PlayerQuitEvent { constructor(who: org.bukkit.entity.Player, quitMessage: string) /** * Gets the quit message to send to all online players diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRecipeDiscoverEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRecipeDiscoverEvent.ts index bb13d6d0..d9925d8f 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRecipeDiscoverEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRecipeDiscoverEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerRecipeDiscoverEvent { + // @ts-ignore + class PlayerRecipeDiscoverEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, recipe: org.bukkit.NamespacedKey) /** * Get the namespaced key of the discovered recipe. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRegisterChannelEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRegisterChannelEvent.ts index 9c2bc52b..036f4880 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRegisterChannelEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRegisterChannelEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerRegisterChannelEvent { + // @ts-ignore + class PlayerRegisterChannelEvent { constructor(player: org.bukkit.entity.Player, channel: string) } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.ts index 3074fde7..b735bd43 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.Status.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerResourcePackStatusEvent { - class Status { + // @ts-ignore + class Status { public static SUCCESSFULLY_LOADED: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; public static DECLINED: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; public static FAILED_DOWNLOAD: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.ts index a96b4ee4..bf053be2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerResourcePackStatusEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerResourcePackStatusEvent { + // @ts-ignore + class PlayerResourcePackStatusEvent { constructor(who: org.bukkit.entity.Player, resourcePackStatus: org.bukkit.event.player.PlayerResourcePackStatusEvent.Status) /** * Gets the status of this pack. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRespawnEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRespawnEvent.ts index e1c6aec2..859b82b1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRespawnEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRespawnEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerRespawnEvent { + // @ts-ignore + class PlayerRespawnEvent { constructor(respawnPlayer: org.bukkit.entity.Player, respawnLocation: org.bukkit.Location, isBedSpawn: boolean) /** * Gets the current respawn location diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRiptideEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRiptideEvent.ts index b3c2552c..14ad3aee 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRiptideEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerRiptideEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerRiptideEvent { + // @ts-ignore + class PlayerRiptideEvent { constructor(who: org.bukkit.entity.Player, item: org.bukkit.inventory.ItemStack) /** * Gets the item containing the used enchantment. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerShearEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerShearEntityEvent.ts index b952f86a..61190bf2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerShearEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerShearEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerShearEntityEvent { + // @ts-ignore + class PlayerShearEntityEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, what: org.bukkit.entity.Entity) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerStatisticIncrementEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerStatisticIncrementEvent.ts index 305c69ea..cee6262a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerStatisticIncrementEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerStatisticIncrementEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerStatisticIncrementEvent { + // @ts-ignore + class PlayerStatisticIncrementEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number) constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number, entityType: org.bukkit.entity.EntityType) constructor(player: org.bukkit.entity.Player, statistic: org.bukkit.Statistic, initialValue: number, newValue: number, material: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerSwapHandItemsEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerSwapHandItemsEvent.ts index 0dee8d4a..a5defc93 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerSwapHandItemsEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerSwapHandItemsEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerSwapHandItemsEvent { + // @ts-ignore + class PlayerSwapHandItemsEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, mainHandItem: org.bukkit.inventory.ItemStack, offHandItem: org.bukkit.inventory.ItemStack) /** * Gets the item switched to the main hand. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTakeLecternBookEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTakeLecternBookEvent.ts index ed865108..d9ac96ac 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTakeLecternBookEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTakeLecternBookEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerTakeLecternBookEvent { + // @ts-ignore + class PlayerTakeLecternBookEvent implements org.bukkit.event.Cancellable { constructor(who: org.bukkit.entity.Player, lectern: org.bukkit.block.Lectern) /** * Gets the lectern involved. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.ts index 949b75ca..760f9bed 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.TeleportCause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace player { namespace PlayerTeleportEvent { - class TeleportCause { + // @ts-ignore + class TeleportCause { public static ENDER_PEARL: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; public static COMMAND: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; public static PLUGIN: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.ts index 8f39093a..bd486e17 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerTeleportEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerTeleportEvent { + // @ts-ignore + class PlayerTeleportEvent { constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location) constructor(player: org.bukkit.entity.Player, from: org.bukkit.Location, to: org.bukkit.Location, cause: org.bukkit.event.player.PlayerTeleportEvent.TeleportCause) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleFlightEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleFlightEvent.ts index 907d0308..dde8f6d7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleFlightEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleFlightEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerToggleFlightEvent { + // @ts-ignore + class PlayerToggleFlightEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, isFlying: boolean) /** * Returns whether the player is trying to start or stop flying. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSneakEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSneakEvent.ts index 0d704fbf..2c24b45e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSneakEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSneakEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerToggleSneakEvent { + // @ts-ignore + class PlayerToggleSneakEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, isSneaking: boolean) /** * Returns whether the player is now sneaking or not. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSprintEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSprintEvent.ts index c7b7f57f..01f4fd7d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSprintEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerToggleSprintEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerToggleSprintEvent { + // @ts-ignore + class PlayerToggleSprintEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, isSprinting: boolean) /** * Gets whether the player is now sprinting or not. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnleashEntityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnleashEntityEvent.ts index 204220c2..0851abc9 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnleashEntityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnleashEntityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerUnleashEntityEvent { + // @ts-ignore + class PlayerUnleashEntityEvent implements org.bukkit.event.Cancellable { constructor(entity: org.bukkit.entity.Entity, player: org.bukkit.entity.Player) /** * Returns the player who is unleashing the entity. diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnregisterChannelEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnregisterChannelEvent.ts index 58fbd6af..008f11c1 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnregisterChannelEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerUnregisterChannelEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerUnregisterChannelEvent { + // @ts-ignore + class PlayerUnregisterChannelEvent { constructor(player: org.bukkit.entity.Player, channel: string) } } diff --git a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerVelocityEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerVelocityEvent.ts index abc25f9c..856a2db5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.player.PlayerVelocityEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.player.PlayerVelocityEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace player { - class PlayerVelocityEvent { + // @ts-ignore + class PlayerVelocityEvent implements org.bukkit.event.Cancellable { constructor(player: org.bukkit.entity.Player, velocity: org.bukkit.util.Vector) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.BroadcastMessageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.BroadcastMessageEvent.ts index 0064af60..dd48fbc2 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.BroadcastMessageEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.BroadcastMessageEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class BroadcastMessageEvent { + // @ts-ignore + class BroadcastMessageEvent implements org.bukkit.event.Cancellable { constructor(message: string, recipients: any[] /*java.util.Set*/) constructor(isAsync: boolean, message: string, recipients: any[] /*java.util.Set*/) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.MapInitializeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.MapInitializeEvent.ts index dbafd9c7..375fff06 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.MapInitializeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.MapInitializeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class MapInitializeEvent { + // @ts-ignore + class MapInitializeEvent { constructor(mapView: org.bukkit.map.MapView) /** * Gets the map initialized in this event. diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.PluginDisableEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.PluginDisableEvent.ts index 748c030a..0a37d8b9 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.PluginDisableEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.PluginDisableEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class PluginDisableEvent { + // @ts-ignore + class PluginDisableEvent { constructor(plugin: org.bukkit.plugin.Plugin) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.PluginEnableEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.PluginEnableEvent.ts index 808f954c..e68d5a91 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.PluginEnableEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.PluginEnableEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class PluginEnableEvent { + // @ts-ignore + class PluginEnableEvent { constructor(plugin: org.bukkit.plugin.Plugin) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.PluginEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.PluginEvent.ts index a1de6701..9c47f64b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.PluginEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.PluginEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace server { + // @ts-ignore abstract class PluginEvent { constructor(plugin: org.bukkit.plugin.Plugin) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.RemoteServerCommandEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.RemoteServerCommandEvent.ts index 9ddb7ef9..edc05f27 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.RemoteServerCommandEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.RemoteServerCommandEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class RemoteServerCommandEvent { + // @ts-ignore + class RemoteServerCommandEvent { constructor(sender: org.bukkit.command.CommandSender, command: string) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServerCommandEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServerCommandEvent.ts index 8d0e0022..6b5496c0 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServerCommandEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServerCommandEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class ServerCommandEvent { + // @ts-ignore + class ServerCommandEvent implements org.bukkit.event.Cancellable { constructor(sender: org.bukkit.command.CommandSender, command: string) /** * Gets the command that the user is attempting to execute from the diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServerEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServerEvent.ts index cc99946d..48b910e6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServerEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServerEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace server { + // @ts-ignore abstract class ServerEvent { constructor() constructor(isAsync: boolean) diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServerListPingEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServerListPingEvent.ts index d40c53d0..3ab7dfd8 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServerListPingEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServerListPingEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class ServerListPingEvent { + // @ts-ignore + class ServerListPingEvent { constructor(address: any, motd: string, numPlayers: number, maxPlayers: number) /** * This constructor is intended for implementations that provide the diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.LoadType.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.LoadType.ts index a6167718..10f63a6b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.LoadType.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.LoadType.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace server { namespace ServerLoadEvent { - class LoadType { + // @ts-ignore + class LoadType { public static STARTUP: org.bukkit.event.server.ServerLoadEvent.LoadType; public static RELOAD: org.bukkit.event.server.ServerLoadEvent.LoadType; public static values(): org.bukkit.event.server.ServerLoadEvent.LoadType[]; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.ts index 9114ba4a..2340724a 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServerLoadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class ServerLoadEvent { + // @ts-ignore + class ServerLoadEvent { /** * Creates a {@code ServerLoadEvent} with a given loading type. */ diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceEvent.ts index 4e45672d..6cfba1ba 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace server { + // @ts-ignore abstract class ServiceEvent { constructor(provider: org.bukkit.plugin.RegisteredServiceProvider) public getProvider(): org.bukkit.plugin.RegisteredServiceProvider; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceRegisterEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceRegisterEvent.ts index 1bbe471d..197af83e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceRegisterEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceRegisterEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class ServiceRegisterEvent { + // @ts-ignore + class ServiceRegisterEvent { constructor(registeredProvider: org.bukkit.plugin.RegisteredServiceProvider) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceUnregisterEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceUnregisterEvent.ts index 30316c75..28fe4e27 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.ServiceUnregisterEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.ServiceUnregisterEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class ServiceUnregisterEvent { + // @ts-ignore + class ServiceUnregisterEvent { constructor(serviceProvider: org.bukkit.plugin.RegisteredServiceProvider) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.server.TabCompleteEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.server.TabCompleteEvent.ts index 9ab24b9c..bf2a8ac7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.server.TabCompleteEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.server.TabCompleteEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace server { - class TabCompleteEvent { + // @ts-ignore + class TabCompleteEvent implements org.bukkit.event.Cancellable { constructor(sender: org.bukkit.command.CommandSender, buffer: string, completions: any[] /*java.util.List*/) /** * Get the sender completing this command. diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.ts index 3f2d116f..1efc0613 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleBlockCollisionEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleBlockCollisionEvent { + // @ts-ignore + class VehicleBlockCollisionEvent { constructor(vehicle: org.bukkit.entity.Vehicle, block: org.bukkit.block.Block) /** * Gets the block the vehicle collided with diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCollisionEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCollisionEvent.ts index 8e46f0d5..d91d6915 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCollisionEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCollisionEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { + // @ts-ignore abstract class VehicleCollisionEvent { constructor(vehicle: org.bukkit.entity.Vehicle) } diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCreateEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCreateEvent.ts index ab05bad7..26d11b09 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCreateEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleCreateEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleCreateEvent { + // @ts-ignore + class VehicleCreateEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle) public isCancelled(): boolean; public setCancelled(cancelled: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDamageEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDamageEvent.ts index 7777b17b..344d937c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDamageEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDamageEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleDamageEvent { + // @ts-ignore + class VehicleDamageEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle, attacker: org.bukkit.entity.Entity, damage: number) /** * Gets the Entity that is attacking the vehicle diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDestroyEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDestroyEvent.ts index 07e02289..4fc91c42 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDestroyEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleDestroyEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleDestroyEvent { + // @ts-ignore + class VehicleDestroyEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle, attacker: org.bukkit.entity.Entity) /** * Gets the Entity that has destroyed the vehicle, potentially null diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEnterEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEnterEvent.ts index c0f31a4b..26346b58 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEnterEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEnterEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleEnterEvent { + // @ts-ignore + class VehicleEnterEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle, entered: org.bukkit.entity.Entity) /** * Gets the Entity that entered the vehicle. diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.ts index b836ea7b..b61ce1bf 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEntityCollisionEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleEntityCollisionEvent { + // @ts-ignore + class VehicleEntityCollisionEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle, entity: org.bukkit.entity.Entity) public getEntity(): org.bukkit.entity.Entity; public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEvent.ts index 933d0982..7cd30035 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { + // @ts-ignore abstract class VehicleEvent { constructor(vehicle: org.bukkit.entity.Vehicle) protected vehicle: org.bukkit.entity.Vehicle; diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleExitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleExitEvent.ts index ba6f1559..70d692c5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleExitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleExitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleExitEvent { + // @ts-ignore + class VehicleExitEvent implements org.bukkit.event.Cancellable { constructor(vehicle: org.bukkit.entity.Vehicle, exited: org.bukkit.entity.LivingEntity) /** * Get the living entity that exited the vehicle. diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleMoveEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleMoveEvent.ts index b8930301..e65b7a16 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleMoveEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleMoveEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleMoveEvent { + // @ts-ignore + class VehicleMoveEvent { constructor(vehicle: org.bukkit.entity.Vehicle, from: org.bukkit.Location, to: org.bukkit.Location) /** * Get the previous position. diff --git a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleUpdateEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleUpdateEvent.ts index d512c40c..50afe104 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleUpdateEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.vehicle.VehicleUpdateEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace vehicle { - class VehicleUpdateEvent { + // @ts-ignore + class VehicleUpdateEvent { constructor(vehicle: org.bukkit.entity.Vehicle) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.Cause.ts b/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.Cause.ts index c9ec34ca..6e08703b 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.Cause.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.Cause.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace weather { namespace LightningStrikeEvent { - class Cause { + // @ts-ignore + class Cause { public static COMMAND: org.bukkit.event.weather.LightningStrikeEvent.Cause; public static TRIDENT: org.bukkit.event.weather.LightningStrikeEvent.Cause; public static TRAP: org.bukkit.event.weather.LightningStrikeEvent.Cause; diff --git a/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.ts index b211c482..008e88f7 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.weather.LightningStrikeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace weather { - class LightningStrikeEvent { + // @ts-ignore + class LightningStrikeEvent implements org.bukkit.event.Cancellable { constructor(world: org.bukkit.World, bolt: org.bukkit.entity.LightningStrike) constructor(world: org.bukkit.World, bolt: org.bukkit.entity.LightningStrike, cause: org.bukkit.event.weather.LightningStrikeEvent.Cause) public isCancelled(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.event.weather.ThunderChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.weather.ThunderChangeEvent.ts index 3666be50..a3600eba 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.weather.ThunderChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.weather.ThunderChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace weather { - class ThunderChangeEvent { + // @ts-ignore + class ThunderChangeEvent implements org.bukkit.event.Cancellable { constructor(world: org.bukkit.World, to: boolean) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherChangeEvent.ts index ff389dd0..1d3418be 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace weather { - class WeatherChangeEvent { + // @ts-ignore + class WeatherChangeEvent implements org.bukkit.event.Cancellable { constructor(world: org.bukkit.World, to: boolean) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherEvent.ts index 40930255..55aa802c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.weather.WeatherEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace weather { + // @ts-ignore abstract class WeatherEvent { constructor(where: org.bukkit.World) protected world: org.bukkit.World; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkEvent.ts index 67ef8619..2065fa38 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace world { + // @ts-ignore abstract class ChunkEvent { constructor(chunk: org.bukkit.Chunk) protected chunk: org.bukkit.Chunk; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkLoadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkLoadEvent.ts index f80b1b5d..3368fc9d 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkLoadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkLoadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class ChunkLoadEvent { + // @ts-ignore + class ChunkLoadEvent { constructor(chunk: org.bukkit.Chunk, newChunk: boolean) /** * Gets if this chunk was newly created or not. diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkPopulateEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkPopulateEvent.ts index a215c8f8..e4364707 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkPopulateEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkPopulateEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class ChunkPopulateEvent { + // @ts-ignore + class ChunkPopulateEvent { constructor(chunk: org.bukkit.Chunk) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkUnloadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkUnloadEvent.ts index 5a2aefcd..c8735edb 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.ChunkUnloadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.ChunkUnloadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class ChunkUnloadEvent { + // @ts-ignore + class ChunkUnloadEvent { constructor(chunk: org.bukkit.Chunk) constructor(chunk: org.bukkit.Chunk, save: boolean) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.CreateReason.ts b/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.CreateReason.ts index 562afb54..935947f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.CreateReason.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.CreateReason.ts @@ -3,7 +3,8 @@ declare namespace org { namespace event { namespace world { namespace PortalCreateEvent { - class CreateReason { + // @ts-ignore + class CreateReason { public static FIRE: org.bukkit.event.world.PortalCreateEvent.CreateReason; public static NETHER_PAIR: org.bukkit.event.world.PortalCreateEvent.CreateReason; public static END_PLATFORM: org.bukkit.event.world.PortalCreateEvent.CreateReason; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.ts index 0bc7acf9..bcd17011 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.PortalCreateEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class PortalCreateEvent { + // @ts-ignore + class PortalCreateEvent implements org.bukkit.event.Cancellable { constructor(blocks: any[] /*java.util.List*/, world: org.bukkit.World, reason: org.bukkit.event.world.PortalCreateEvent.CreateReason) constructor(blocks: any[] /*java.util.List*/, world: org.bukkit.World, entity: org.bukkit.entity.Entity, reason: org.bukkit.event.world.PortalCreateEvent.CreateReason) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.SpawnChangeEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.SpawnChangeEvent.ts index b2cd4bfe..c3355a3e 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.SpawnChangeEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.SpawnChangeEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class SpawnChangeEvent { + // @ts-ignore + class SpawnChangeEvent { constructor(world: org.bukkit.World, previousLocation: org.bukkit.Location) /** * Gets the previous spawn location diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.StructureGrowEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.StructureGrowEvent.ts index 519db52c..6b4f0254 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.StructureGrowEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.StructureGrowEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class StructureGrowEvent { + // @ts-ignore + class StructureGrowEvent implements org.bukkit.event.Cancellable { constructor(location: org.bukkit.Location, species: org.bukkit.TreeType, bonemeal: boolean, player: org.bukkit.entity.Player, blocks: any[] /*java.util.List*/) /** * Gets the location of the structure. diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.WorldEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.WorldEvent.ts index 47088312..348b9b7c 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.WorldEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.WorldEvent.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace event { namespace world { + // @ts-ignore abstract class WorldEvent { constructor(world: org.bukkit.World) /** diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.WorldInitEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.WorldInitEvent.ts index 9688b1c6..83f43e05 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.WorldInitEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.WorldInitEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class WorldInitEvent { + // @ts-ignore + class WorldInitEvent { constructor(world: org.bukkit.World) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.WorldLoadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.WorldLoadEvent.ts index 32827b68..42c775fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.WorldLoadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.WorldLoadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class WorldLoadEvent { + // @ts-ignore + class WorldLoadEvent { constructor(world: org.bukkit.World) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.WorldSaveEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.WorldSaveEvent.ts index 5cc0123c..50d876fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.WorldSaveEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.WorldSaveEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class WorldSaveEvent { + // @ts-ignore + class WorldSaveEvent { constructor(world: org.bukkit.World) public getHandlers(): org.bukkit.event.HandlerList; public static getHandlerList(): org.bukkit.event.HandlerList; diff --git a/packages/bukkit/src/typings/org.bukkit.event.world.WorldUnloadEvent.ts b/packages/bukkit/src/typings/org.bukkit.event.world.WorldUnloadEvent.ts index d93a3122..30213dc6 100644 --- a/packages/bukkit/src/typings/org.bukkit.event.world.WorldUnloadEvent.ts +++ b/packages/bukkit/src/typings/org.bukkit.event.world.WorldUnloadEvent.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace event { namespace world { - class WorldUnloadEvent { + // @ts-ignore + class WorldUnloadEvent implements org.bukkit.event.Cancellable { constructor(world: org.bukkit.World) public isCancelled(): boolean; public setCancelled(cancel: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.generator.BlockPopulator.ts b/packages/bukkit/src/typings/org.bukkit.generator.BlockPopulator.ts index 43f7b4ae..b6a7cfd6 100644 --- a/packages/bukkit/src/typings/org.bukkit.generator.BlockPopulator.ts +++ b/packages/bukkit/src/typings/org.bukkit.generator.BlockPopulator.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace generator { + // @ts-ignore abstract class BlockPopulator { constructor() /** diff --git a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.BiomeGrid.ts b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.BiomeGrid.ts index d3afffac..42ad4aee 100644 --- a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.BiomeGrid.ts +++ b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.BiomeGrid.ts @@ -2,15 +2,16 @@ declare namespace org { namespace bukkit { namespace generator { namespace ChunkGenerator { - class BiomeGrid { + // @ts-ignore + interface BiomeGrid { /** * Get biome at x, z within chunk being generated */ - public getBiome(x: number, z: number): org.bukkit.block.Biome; + getBiome(x: number, z: number): org.bukkit.block.Biome; /** * Set biome at x, z within chunk being generated */ - public setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; + setBiome(x: number, z: number, bio: org.bukkit.block.Biome): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ChunkData.ts b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ChunkData.ts index 035e8ac1..23731bc0 100644 --- a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ChunkData.ts +++ b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ChunkData.ts @@ -2,65 +2,66 @@ declare namespace org { namespace bukkit { namespace generator { namespace ChunkGenerator { - class ChunkData { + // @ts-ignore + interface ChunkData { /** * Get the maximum height for the chunk. * Setting blocks at or above this height will do nothing. */ - public getMaxHeight(): number; + getMaxHeight(): number; /** * Set the block at x,y,z in the chunk data to material. * Note: setting blocks outside the chunk's bounds does nothing. */ - public setBlock(x: number, y: number, z: number, material: org.bukkit.Material): void; + setBlock(x: number, y: number, z: number, material: org.bukkit.Material): void; /** * Set the block at x,y,z in the chunk data to material. * Setting blocks outside the chunk's bounds does nothing. */ - public setBlock(x: number, y: number, z: number, material: org.bukkit.material.MaterialData): void; + setBlock(x: number, y: number, z: number, material: org.bukkit.material.MaterialData): void; /** * Set the block at x,y,z in the chunk data to material. * Setting blocks outside the chunk's bounds does nothing. */ - public setBlock(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): void; + setBlock(x: number, y: number, z: number, blockData: org.bukkit.block.data.BlockData): void; /** * Set a region of this chunk from xMin, yMin, zMin (inclusive) * to xMax, yMax, zMax (exclusive) to material. * Setting blocks outside the chunk's bounds does nothing. */ - public setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, material: org.bukkit.Material): void; + setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, material: org.bukkit.Material): void; /** * Set a region of this chunk from xMin, yMin, zMin (inclusive) * to xMax, yMax, zMax (exclusive) to material. * Setting blocks outside the chunk's bounds does nothing. */ - public setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, material: org.bukkit.material.MaterialData): void; + setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, material: org.bukkit.material.MaterialData): void; /** * Set a region of this chunk from xMin, yMin, zMin (inclusive) to xMax, * yMax, zMax (exclusive) to material. * Setting blocks outside the chunk's bounds does nothing. */ - public setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, blockData: org.bukkit.block.data.BlockData): void; + setRegion(xMin: number, yMin: number, zMin: number, xMax: number, yMax: number, zMax: number, blockData: org.bukkit.block.data.BlockData): void; /** * Get the type of the block at x, y, z. * Getting blocks outside the chunk's bounds returns air. */ - public getType(x: number, y: number, z: number): org.bukkit.Material; + getType(x: number, y: number, z: number): org.bukkit.Material; /** * Get the type and data of the block at x, y, z. * Getting blocks outside the chunk's bounds returns air. */ - public getTypeAndData(x: number, y: number, z: number): org.bukkit.material.MaterialData; + getTypeAndData(x: number, y: number, z: number): org.bukkit.material.MaterialData; /** * Get the type and data of the block at x, y, z. * Getting blocks outside the chunk's bounds returns air. */ - public getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; + getBlockData(x: number, y: number, z: number): org.bukkit.block.data.BlockData; /** * Get the block data at x,y,z in the chunk data. * Getting blocks outside the chunk's bounds returns 0. */ - public getData(x: number, y: number, z: number): number; + getData(x: number, y: number, z: number): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ts b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ts index 5861082e..5b66dad0 100644 --- a/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.generator.ChunkGenerator.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace generator { + // @ts-ignore abstract class ChunkGenerator { constructor() /** diff --git a/packages/bukkit/src/typings/org.bukkit.help.GenericCommandHelpTopic.ts b/packages/bukkit/src/typings/org.bukkit.help.GenericCommandHelpTopic.ts index e44740e3..9b436260 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.GenericCommandHelpTopic.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.GenericCommandHelpTopic.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace help { - class GenericCommandHelpTopic { + // @ts-ignore + class GenericCommandHelpTopic { constructor(command: org.bukkit.command.Command) protected command: org.bukkit.command.Command; public canSee(sender: org.bukkit.command.CommandSender): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.help.HelpMap.ts b/packages/bukkit/src/typings/org.bukkit.help.HelpMap.ts index 258b70c9..17f3623a 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.HelpMap.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.HelpMap.ts @@ -1,24 +1,25 @@ declare namespace org { namespace bukkit { namespace help { - class HelpMap { + // @ts-ignore + interface HelpMap { /** * Returns a help topic for a given topic name. */ - public getHelpTopic(topicName: string): org.bukkit.help.HelpTopic; + getHelpTopic(topicName: string): org.bukkit.help.HelpTopic; /** * Returns a collection of all the registered help topics. */ - public getHelpTopics(): any[] /*java.util.Collection*/; + getHelpTopics(): any[] /*java.util.Collection*/; /** * Adds a topic to the server's help index. */ - public addTopic(topic: org.bukkit.help.HelpTopic): void; + addTopic(topic: org.bukkit.help.HelpTopic): void; /** * Clears out the contents of the help index. Normally called during * server reload. */ - public clear(): void; + clear(): void; /** * Associates a {@link HelpTopicFactory} object with given command base * class. Plugins typically call this method during {@code onLoad()}. Once @@ -28,7 +29,7 @@ declare namespace org { * org.bukkit.command.PluginCommand} who's executor derives from {@code * commandClass} base class. */ - public registerHelpTopicFactory(commandClass: any, factory: org.bukkit.help.HelpTopicFactory): void; + registerHelpTopicFactory(commandClass: any, factory: org.bukkit.help.HelpTopicFactory): void; /** * Gets the list of plugins the server administrator has chosen to exclude * from the help index. Plugin authors who choose to directly extend @@ -37,7 +38,7 @@ declare namespace org { * their {@link HelpTopicFactory} implementations to ensure they meet the * server administrator's expectations. */ - public getIgnoredPlugins(): any[] /*java.util.List*/; + getIgnoredPlugins(): any[] /*java.util.List*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.help.HelpTopic.ts b/packages/bukkit/src/typings/org.bukkit.help.HelpTopic.ts index 7c0617e7..f6c998a8 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.HelpTopic.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.HelpTopic.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace help { + // @ts-ignore abstract class HelpTopic { constructor() protected name: string; diff --git a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.TopicNameComparator.ts b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.TopicNameComparator.ts index df08877c..5458660a 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.TopicNameComparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.TopicNameComparator.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace help { namespace HelpTopicComparator { - class TopicNameComparator { + // @ts-ignore + class TopicNameComparator { public compare(lhs: string, rhs: string): number; } } diff --git a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.ts b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.ts index 5f36c9d0..862fed6d 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicComparator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace help { - class HelpTopicComparator { + // @ts-ignore + class HelpTopicComparator { public static topicNameComparatorInstance(): org.bukkit.help.HelpTopicComparator.TopicNameComparator; public static helpTopicComparatorInstance(): org.bukkit.help.HelpTopicComparator; public compare(lhs: org.bukkit.help.HelpTopic, rhs: org.bukkit.help.HelpTopic): number; diff --git a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicFactory.ts b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicFactory.ts index 56f411f7..9731607d 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.HelpTopicFactory.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.HelpTopicFactory.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace help { - class HelpTopicFactory { + // @ts-ignore + interface HelpTopicFactory { /** * This method accepts a command deriving from a custom command base class * and constructs a custom HelpTopic for it. */ - public createTopic(command: org.bukkit.command.Command): org.bukkit.help.HelpTopic; + createTopic(command: org.bukkit.command.Command): org.bukkit.help.HelpTopic; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.help.IndexHelpTopic.ts b/packages/bukkit/src/typings/org.bukkit.help.IndexHelpTopic.ts index 266fd46c..3dd0518d 100644 --- a/packages/bukkit/src/typings/org.bukkit.help.IndexHelpTopic.ts +++ b/packages/bukkit/src/typings/org.bukkit.help.IndexHelpTopic.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace help { - class IndexHelpTopic { + // @ts-ignore + class IndexHelpTopic { constructor(name: string, shortText: string, permission: string, topics: any[] /*java.util.Collection*/) constructor(name: string, shortText: string, permission: string, topics: any[] /*java.util.Collection*/, preamble: string) protected permission: string; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.AbstractHorseInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.AbstractHorseInventory.ts index 9d30a480..97d95629 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.AbstractHorseInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.AbstractHorseInventory.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace inventory { - class AbstractHorseInventory { + // @ts-ignore + interface AbstractHorseInventory extends org.bukkit.inventory.Inventory { /** * Gets the item in the horse's saddle slot. */ - public getSaddle(): org.bukkit.inventory.ItemStack; + getSaddle(): org.bukkit.inventory.ItemStack; /** * Sets the item in the horse's saddle slot. */ - public setSaddle(stack: org.bukkit.inventory.ItemStack): void; + setSaddle(stack: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.AnvilInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.AnvilInventory.ts index 9a36048b..ec2206c1 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.AnvilInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.AnvilInventory.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { namespace inventory { - class AnvilInventory { + // @ts-ignore + interface AnvilInventory extends org.bukkit.inventory.Inventory { /** * Get the name to be applied to the repaired item. An empty string denotes * the default item name. */ - public getRenameText(): string; + getRenameText(): string; /** * Get the experience cost (in levels) to complete the current repair. */ - public getRepairCost(): number; + getRepairCost(): number; /** * Set the experience cost (in levels) to complete the current repair. */ - public setRepairCost(levels: number): void; + setRepairCost(levels: number): void; /** * Get the maximum experience cost (in levels) to be allowed by the current * repair. If the result of {@link #getRepairCost()} exceeds the returned @@ -23,12 +24,12 @@ declare namespace org { * By default, this level is set to 40. Players in creative mode ignore the * maximum repair cost. */ - public getMaximumRepairCost(): number; + getMaximumRepairCost(): number; /** * Set the maximum experience cost (in levels) to be allowed by the current * repair. The default value set by vanilla Minecraft is 40. */ - public setMaximumRepairCost(levels: number): void; + setMaximumRepairCost(levels: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.BeaconInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.BeaconInventory.ts index 05905e64..65b4c2fa 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.BeaconInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.BeaconInventory.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace inventory { - class BeaconInventory { + // @ts-ignore + interface BeaconInventory extends org.bukkit.inventory.Inventory { /** * Set the item powering the beacon. */ - public setItem(item: org.bukkit.inventory.ItemStack): void; + setItem(item: org.bukkit.inventory.ItemStack): void; /** * Get the item powering the beacon. */ - public getItem(): org.bukkit.inventory.ItemStack; + getItem(): org.bukkit.inventory.ItemStack; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.BlastingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.BlastingRecipe.ts index e85a7cfe..473b9f0e 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.BlastingRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.BlastingRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class BlastingRecipe { + // @ts-ignore + class BlastingRecipe { constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.BlockInventoryHolder.ts b/packages/bukkit/src/typings/org.bukkit.inventory.BlockInventoryHolder.ts index 98492510..644059fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.BlockInventoryHolder.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.BlockInventoryHolder.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class BlockInventoryHolder { + // @ts-ignore + interface BlockInventoryHolder extends org.bukkit.inventory.InventoryHolder { /** * Gets the block associated with this holder. */ - public getBlock(): org.bukkit.block.Block; + getBlock(): org.bukkit.block.Block; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.BrewerInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.BrewerInventory.ts index f936afbe..e07f44f6 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.BrewerInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.BrewerInventory.ts @@ -1,25 +1,26 @@ declare namespace org { namespace bukkit { namespace inventory { - class BrewerInventory { + // @ts-ignore + interface BrewerInventory extends org.bukkit.inventory.Inventory { /** * Get the current ingredient for brewing. */ - public getIngredient(): org.bukkit.inventory.ItemStack; + getIngredient(): org.bukkit.inventory.ItemStack; /** * Set the current ingredient for brewing. */ - public setIngredient(ingredient: org.bukkit.inventory.ItemStack): void; + setIngredient(ingredient: org.bukkit.inventory.ItemStack): void; /** * Get the current fuel for brewing. */ - public getFuel(): org.bukkit.inventory.ItemStack; + getFuel(): org.bukkit.inventory.ItemStack; /** * Set the current fuel for brewing. Generally only * {@link Material#BLAZE_POWDER} will be of use. */ - public setFuel(fuel: org.bukkit.inventory.ItemStack): void; - public getHolder(): org.bukkit.block.BrewingStand; + setFuel(fuel: org.bukkit.inventory.ItemStack): void; + getHolder(): org.bukkit.block.BrewingStand; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.CampfireRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.CampfireRecipe.ts index 4d95b17d..5966a611 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.CampfireRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.CampfireRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class CampfireRecipe { + // @ts-ignore + class CampfireRecipe { constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.CartographyInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.CartographyInventory.ts index 03463ad4..01fb8ca9 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.CartographyInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.CartographyInventory.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class CartographyInventory { + // @ts-ignore + interface CartographyInventory extends org.bukkit.inventory.Inventory { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.CookingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.CookingRecipe.ts index de1dc9a2..c5a42c3a 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.CookingRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.CookingRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - abstract class CookingRecipe { + // @ts-ignore + abstract class CookingRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { /** * Create a cooking recipe to craft the specified ItemStack. */ diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.CraftingInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.CraftingInventory.ts index c69cc1aa..483f3fc7 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.CraftingInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.CraftingInventory.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace inventory { - class CraftingInventory { + // @ts-ignore + interface CraftingInventory extends org.bukkit.inventory.Inventory { /** * Check what item is in the result slot of this crafting inventory. */ - public getResult(): org.bukkit.inventory.ItemStack; + getResult(): org.bukkit.inventory.ItemStack; /** * Get the contents of the crafting matrix. */ - public getMatrix(): org.bukkit.inventory.ItemStack[]; + getMatrix(): org.bukkit.inventory.ItemStack[]; /** * Set the item in the result slot of the crafting inventory. */ - public setResult(newResult: org.bukkit.inventory.ItemStack): void; + setResult(newResult: org.bukkit.inventory.ItemStack): void; /** * Replace the contents of the crafting matrix */ - public setMatrix(contents: org.bukkit.inventory.ItemStack): void; + setMatrix(contents: org.bukkit.inventory.ItemStack): void; /** * Get the current recipe formed on the crafting inventory, if any. */ - public getRecipe(): org.bukkit.inventory.Recipe; + getRecipe(): org.bukkit.inventory.Recipe; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.DoubleChestInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.DoubleChestInventory.ts index 3105ed80..6ce6627e 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.DoubleChestInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.DoubleChestInventory.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace inventory { - class DoubleChestInventory { + // @ts-ignore + interface DoubleChestInventory extends org.bukkit.inventory.Inventory { /** * Get the left half of this double chest. */ - public getLeftSide(): org.bukkit.inventory.Inventory; + getLeftSide(): org.bukkit.inventory.Inventory; /** * Get the right side of this double chest. */ - public getRightSide(): org.bukkit.inventory.Inventory; - public getHolder(): org.bukkit.block.DoubleChest; + getRightSide(): org.bukkit.inventory.Inventory; + getHolder(): org.bukkit.block.DoubleChest; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.EnchantingInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.EnchantingInventory.ts index 74931229..3510145f 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.EnchantingInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.EnchantingInventory.ts @@ -1,23 +1,24 @@ declare namespace org { namespace bukkit { namespace inventory { - class EnchantingInventory { + // @ts-ignore + interface EnchantingInventory extends org.bukkit.inventory.Inventory { /** * Set the item being enchanted. */ - public setItem(item: org.bukkit.inventory.ItemStack): void; + setItem(item: org.bukkit.inventory.ItemStack): void; /** * Get the item being enchanted. */ - public getItem(): org.bukkit.inventory.ItemStack; + getItem(): org.bukkit.inventory.ItemStack; /** * Set the secondary item being used for the enchant. */ - public setSecondary(item: org.bukkit.inventory.ItemStack): void; + setSecondary(item: org.bukkit.inventory.ItemStack): void; /** * Get the secondary item being used for the enchant. */ - public getSecondary(): org.bukkit.inventory.ItemStack; + getSecondary(): org.bukkit.inventory.ItemStack; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.EntityEquipment.ts b/packages/bukkit/src/typings/org.bukkit.inventory.EntityEquipment.ts index 85d6dc52..41be5ea7 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.EntityEquipment.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.EntityEquipment.ts @@ -1,79 +1,80 @@ declare namespace org { namespace bukkit { namespace inventory { - class EntityEquipment { + // @ts-ignore + interface EntityEquipment { /** * Gets a copy of the item the entity is currently holding * in their main hand. */ - public getItemInMainHand(): org.bukkit.inventory.ItemStack; + getItemInMainHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the entity is holding in their main hand. */ - public setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; + setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the item the entity is currently holding * in their off hand. */ - public getItemInOffHand(): org.bukkit.inventory.ItemStack; + getItemInOffHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the entity is holding in their off hand. */ - public setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; + setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the item the entity is currently holding */ - public getItemInHand(): org.bukkit.inventory.ItemStack; + getItemInHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the entity is holding */ - public setItemInHand(stack: org.bukkit.inventory.ItemStack): void; + setItemInHand(stack: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the helmet currently being worn by the entity */ - public getHelmet(): org.bukkit.inventory.ItemStack; + getHelmet(): org.bukkit.inventory.ItemStack; /** * Sets the helmet worn by the entity */ - public setHelmet(helmet: org.bukkit.inventory.ItemStack): void; + setHelmet(helmet: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the chest plate currently being worn by the entity */ - public getChestplate(): org.bukkit.inventory.ItemStack; + getChestplate(): org.bukkit.inventory.ItemStack; /** * Sets the chest plate worn by the entity */ - public setChestplate(chestplate: org.bukkit.inventory.ItemStack): void; + setChestplate(chestplate: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the leggings currently being worn by the entity */ - public getLeggings(): org.bukkit.inventory.ItemStack; + getLeggings(): org.bukkit.inventory.ItemStack; /** * Sets the leggings worn by the entity */ - public setLeggings(leggings: org.bukkit.inventory.ItemStack): void; + setLeggings(leggings: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the boots currently being worn by the entity */ - public getBoots(): org.bukkit.inventory.ItemStack; + getBoots(): org.bukkit.inventory.ItemStack; /** * Sets the boots worn by the entity */ - public setBoots(boots: org.bukkit.inventory.ItemStack): void; + setBoots(boots: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of all worn armor */ - public getArmorContents(): org.bukkit.inventory.ItemStack[]; + getArmorContents(): org.bukkit.inventory.ItemStack[]; /** * Sets the entities armor to the provided array of ItemStacks */ - public setArmorContents(items: org.bukkit.inventory.ItemStack): void; + setArmorContents(items: org.bukkit.inventory.ItemStack): void; /** * Clears the entity of all armor and held items */ - public clear(): void; - public getItemInHandDropChance(): number; - public setItemInHandDropChance(chance: number): void; + clear(): void; + getItemInHandDropChance(): number; + setItemInHandDropChance(chance: number): void; /** * Gets the chance of the main hand item being dropped upon this creature's * death. @@ -82,7 +83,7 @@ declare namespace org { *

  • A drop chance of 1.0F will always drop * */ - public getItemInMainHandDropChance(): number; + getItemInMainHandDropChance(): number; /** * Sets the chance of the item this creature is currently holding in their * main hand being dropped upon this creature's death. @@ -91,7 +92,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public setItemInMainHandDropChance(chance: number): void; + setItemInMainHandDropChance(chance: number): void; /** * Gets the chance of the off hand item being dropped upon this creature's * death. @@ -100,7 +101,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public getItemInOffHandDropChance(): number; + getItemInOffHandDropChance(): number; /** * Sets the chance of the off hand item being dropped upon this creature's * death. @@ -109,7 +110,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public setItemInOffHandDropChance(chance: number): void; + setItemInOffHandDropChance(chance: number): void; /** * Gets the chance of the helmet being dropped upon this creature's death. *
      @@ -117,7 +118,7 @@ declare namespace org { *
    • A drop chance of 1.0F will always drop *
    */ - public getHelmetDropChance(): number; + getHelmetDropChance(): number; /** * Sets the chance of the helmet being dropped upon this creature's death. *
      @@ -125,7 +126,7 @@ declare namespace org { *
    • A drop chance of 1.0F will always drop *
    */ - public setHelmetDropChance(chance: number): void; + setHelmetDropChance(chance: number): void; /** * Gets the chance of the chest plate being dropped upon this creature's * death. @@ -134,7 +135,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public getChestplateDropChance(): number; + getChestplateDropChance(): number; /** * Sets the chance of the chest plate being dropped upon this creature's * death. @@ -143,7 +144,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public setChestplateDropChance(chance: number): void; + setChestplateDropChance(chance: number): void; /** * Gets the chance of the leggings being dropped upon this creature's * death. @@ -152,7 +153,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public getLeggingsDropChance(): number; + getLeggingsDropChance(): number; /** * Sets the chance of the leggings being dropped upon this creature's * death. @@ -161,7 +162,7 @@ declare namespace org { *
  • A drop chance of 1.0F will always drop * */ - public setLeggingsDropChance(chance: number): void; + setLeggingsDropChance(chance: number): void; /** * Gets the chance of the boots being dropped upon this creature's death. *
      @@ -169,7 +170,7 @@ declare namespace org { *
    • A drop chance of 1.0F will always drop *
    */ - public getBootsDropChance(): number; + getBootsDropChance(): number; /** * Sets the chance of the boots being dropped upon this creature's death. *
      @@ -177,11 +178,11 @@ declare namespace org { *
    • A drop chance of 1.0F will always drop *
    */ - public setBootsDropChance(chance: number): void; + setBootsDropChance(chance: number): void; /** * Get the entity this EntityEquipment belongs to */ - public getHolder(): org.bukkit.entity.Entity; + getHolder(): org.bukkit.entity.Entity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts b/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts index fdc7b990..4a4ee38e 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.EquipmentSlot.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class EquipmentSlot { + // @ts-ignore + class EquipmentSlot { public static HAND: org.bukkit.inventory.EquipmentSlot; public static OFF_HAND: org.bukkit.inventory.EquipmentSlot; public static FEET: org.bukkit.inventory.EquipmentSlot; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts index 08c4f320..958c8294 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceInventory.ts @@ -1,32 +1,33 @@ declare namespace org { namespace bukkit { namespace inventory { - class FurnaceInventory { + // @ts-ignore + interface FurnaceInventory extends org.bukkit.inventory.Inventory { /** * Get the current item in the result slot. */ - public getResult(): org.bukkit.inventory.ItemStack; + getResult(): org.bukkit.inventory.ItemStack; /** * Get the current fuel. */ - public getFuel(): org.bukkit.inventory.ItemStack; + getFuel(): org.bukkit.inventory.ItemStack; /** * Get the item currently smelting. */ - public getSmelting(): org.bukkit.inventory.ItemStack; + getSmelting(): org.bukkit.inventory.ItemStack; /** * Set the current fuel. */ - public setFuel(stack: org.bukkit.inventory.ItemStack): void; + setFuel(stack: org.bukkit.inventory.ItemStack): void; /** * Set the current item in the result slot. */ - public setResult(stack: org.bukkit.inventory.ItemStack): void; + setResult(stack: org.bukkit.inventory.ItemStack): void; /** * Set the item currently smelting. */ - public setSmelting(stack: org.bukkit.inventory.ItemStack): void; - public getHolder(): org.bukkit.block.Furnace; + setSmelting(stack: org.bukkit.inventory.ItemStack): void; + getHolder(): org.bukkit.block.Furnace; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts index f39e6074..f6d4bc0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.FurnaceRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class FurnaceRecipe { + // @ts-ignore + class FurnaceRecipe { constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material) constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData) constructor(result: org.bukkit.inventory.ItemStack, source: org.bukkit.material.MaterialData, experience: number) diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts index cea441a7..9ff35ccc 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.GrindstoneInventory.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class GrindstoneInventory { + // @ts-ignore + interface GrindstoneInventory extends org.bukkit.inventory.Inventory { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts index cf282bc0..ff58d52b 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.HorseInventory.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace inventory { - class HorseInventory { + // @ts-ignore + interface HorseInventory extends org.bukkit.inventory.AbstractHorseInventory { /** * Gets the item in the horse's armor slot. */ - public getArmor(): org.bukkit.inventory.ItemStack; + getArmor(): org.bukkit.inventory.ItemStack; /** * Sets the item in the horse's armor slot. */ - public setArmor(stack: org.bukkit.inventory.ItemStack): void; + setArmor(stack: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts index 18acd95f..20e0a47e 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.Inventory.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace inventory { - class Inventory { + // @ts-ignore + interface Inventory { /** * Returns the size of the inventory */ - public getSize(): number; + getSize(): number; /** * Returns the maximum stack size for an ItemStack in this inventory. */ - public getMaxStackSize(): number; + getMaxStackSize(): number; /** * This method allows you to change the maximum stack size for an * inventory. @@ -24,15 +25,15 @@ declare namespace org { * may not display correctly in the client. * */ - public setMaxStackSize(size: number): void; + setMaxStackSize(size: number): void; /** * Returns the ItemStack found in the slot at the given index */ - public getItem(index: number): org.bukkit.inventory.ItemStack; + getItem(index: number): org.bukkit.inventory.ItemStack; /** * Stores the ItemStack at the given index of the inventory. */ - public setItem(index: number, item: org.bukkit.inventory.ItemStack): void; + setItem(index: number, item: org.bukkit.inventory.ItemStack): void; /** * Stores the given ItemStacks in the inventory. This will try to fill * existing stacks and empty slots as well as it can. @@ -53,7 +54,7 @@ declare namespace org { * the inputted argument amount to the number of that item not placed in * slots. */ - public addItem(items: org.bukkit.inventory.ItemStack): any; + addItem(items: org.bukkit.inventory.ItemStack): any; /** * Removes the given ItemStacks from the inventory. *

    @@ -69,16 +70,16 @@ declare namespace org { * inputted argument amount to the number of that item not removed from * slots. */ - public removeItem(items: org.bukkit.inventory.ItemStack): any; + removeItem(items: org.bukkit.inventory.ItemStack): any; /** * Returns all ItemStacks from the inventory */ - public getContents(): org.bukkit.inventory.ItemStack[]; + getContents(): org.bukkit.inventory.ItemStack[]; /** * Completely replaces the inventory's contents. Removes all existing * contents and replaces it with the ItemStacks given in the array. */ - public setContents(items: org.bukkit.inventory.ItemStack): void; + setContents(items: org.bukkit.inventory.ItemStack): void; /** * Return the contents from the section of the inventory where items can * reasonably be expected to be stored. In most cases this will represent @@ -88,16 +89,16 @@ declare namespace org { * It is these contents which will be used for add / contains / remove * methods which look for a specific stack. */ - public getStorageContents(): org.bukkit.inventory.ItemStack[]; + getStorageContents(): org.bukkit.inventory.ItemStack[]; /** * Put the given ItemStacks into the storage slots */ - public setStorageContents(items: org.bukkit.inventory.ItemStack): void; + setStorageContents(items: org.bukkit.inventory.ItemStack): void; /** * Checks if the inventory contains any ItemStacks with the given * material. */ - public contains(material: org.bukkit.Material): boolean; + contains(material: org.bukkit.Material): boolean; /** * Checks if the inventory contains any ItemStacks matching the given * ItemStack. @@ -105,12 +106,12 @@ declare namespace org { * This will only return true if both the type and the amount of the stack * match. */ - public contains(item: org.bukkit.inventory.ItemStack): boolean; + contains(item: org.bukkit.inventory.ItemStack): boolean; /** * Checks if the inventory contains any ItemStacks with the given * material, adding to at least the minimum amount specified. */ - public contains(material: org.bukkit.Material, amount: number): boolean; + contains(material: org.bukkit.Material, amount: number): boolean; /** * Checks if the inventory contains at least the minimum amount specified * of exactly matching ItemStacks. @@ -118,12 +119,12 @@ declare namespace org { * An ItemStack only counts if both the type and the amount of the stack * match. */ - public contains(item: org.bukkit.inventory.ItemStack, amount: number): boolean; + contains(item: org.bukkit.inventory.ItemStack, amount: number): boolean; /** * Checks if the inventory contains ItemStacks matching the given * ItemStack whose amounts sum to at least the minimum amount specified. */ - public containsAtLeast(item: org.bukkit.inventory.ItemStack, amount: number): boolean; + containsAtLeast(item: org.bukkit.inventory.ItemStack, amount: number): boolean; /** * Returns a HashMap with all slots and ItemStacks in the inventory with * the given Material. @@ -132,7 +133,7 @@ declare namespace org { * value is the ItemStack in that slot. If no matching ItemStack with the * given Material is found, an empty map is returned. */ - public all(material: org.bukkit.Material): any; + all(material: org.bukkit.Material): any; /** * Finds all slots in the inventory containing any ItemStacks with the * given ItemStack. This will only match slots if both the type and the @@ -142,41 +143,41 @@ declare namespace org { * value is the ItemStack in that slot. If no matching ItemStack with the * given Material is found, an empty map is returned. */ - public all(item: org.bukkit.inventory.ItemStack): any; + all(item: org.bukkit.inventory.ItemStack): any; /** * Finds the first slot in the inventory containing an ItemStack with the * given material */ - public first(material: org.bukkit.Material): number; + first(material: org.bukkit.Material): number; /** * Returns the first slot in the inventory containing an ItemStack with * the given stack. This will only match a slot if both the type and the * amount of the stack match */ - public first(item: org.bukkit.inventory.ItemStack): number; + first(item: org.bukkit.inventory.ItemStack): number; /** * Returns the first empty Slot. */ - public firstEmpty(): number; + firstEmpty(): number; /** * Removes all stacks in the inventory matching the given material. */ - public remove(material: org.bukkit.Material): void; + remove(material: org.bukkit.Material): void; /** * Removes all stacks in the inventory matching the given stack. *

    * This will only match a slot if both the type and the amount of the * stack match */ - public remove(item: org.bukkit.inventory.ItemStack): void; + remove(item: org.bukkit.inventory.ItemStack): void; /** * Clears out a particular slot in the index. */ - public clear(index: number): void; + clear(index: number): void; /** * Clears out the whole Inventory. */ - public clear(): void; + clear(): void; /** * Gets a list of players viewing the inventory. Note that a player is * considered to be viewing their own inventory and internal crafting @@ -186,28 +187,28 @@ declare namespace org { * inventory screens to exclude the viewer's inventory, so this should * never be assumed to be non-empty. */ - public getViewers(): any[] /*java.util.List*/; + getViewers(): any[] /*java.util.List*/; /** * Returns what type of inventory this is. */ - public getType(): org.bukkit.event.inventory.InventoryType; + getType(): org.bukkit.event.inventory.InventoryType; /** * Gets the block or entity belonging to the open inventory */ - public getHolder(): org.bukkit.inventory.InventoryHolder; - public iterator(): any; + getHolder(): org.bukkit.inventory.InventoryHolder; + iterator(): any; /** * Returns an iterator starting at the given index. If the index is * positive, then the first call to next() will return the item at that * index; if it is negative, the first call to previous will return the * item at index (getSize() + index). */ - public iterator(index: number): any; + iterator(index: number): any; /** * Get the location of the block or entity which corresponds to this inventory. May return null if this container * was custom created or is a virtual / subcontainer. */ - public getLocation(): org.bukkit.Location; + getLocation(): org.bukkit.Location; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts index e11a9e3d..04588dd6 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryHolder.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class InventoryHolder { + // @ts-ignore + interface InventoryHolder { /** * Get the object's inventory. */ - public getInventory(): org.bukkit.inventory.Inventory; + getInventory(): org.bukkit.inventory.Inventory; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts index 9e9558fd..f7539ed3 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.Property.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace inventory { namespace InventoryView { - class Property { + // @ts-ignore + class Property { public static BREW_TIME: org.bukkit.inventory.InventoryView.Property; public static BURN_TIME: org.bukkit.inventory.InventoryView.Property; public static TICKS_FOR_CURRENT_FUEL: org.bukkit.inventory.InventoryView.Property; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts index 3cad6374..00a1a822 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.InventoryView.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace inventory { + // @ts-ignore abstract class InventoryView { constructor() public static OUTSIDE: number; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts index 27b31681..a8ce4eb5 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFactory.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class ItemFactory { + // @ts-ignore + interface ItemFactory { /** * This creates a new item meta for the material. */ - public getItemMeta(material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta; + getItemMeta(material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta; /** * This method checks the item meta to confirm that it is applicable (no * data lost if applied) to the specified ItemStack. @@ -13,7 +14,7 @@ declare namespace org { * A {@link SkullMeta} would not be valid for a sword, but a normal {@link * ItemMeta} from an enchanted dirt block would. */ - public isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): boolean; + isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): boolean; /** * This method checks the item meta to confirm that it is applicable (no * data lost if applied) to the specified Material. @@ -21,11 +22,11 @@ declare namespace org { * A {@link SkullMeta} would not be valid for a sword, but a normal {@link * ItemMeta} from an enchanted dirt block would. */ - public isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): boolean; + isApplicable(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): boolean; /** * This method is used to compare two item meta data objects. */ - public equals(meta1: org.bukkit.inventory.meta.ItemMeta, meta2: org.bukkit.inventory.meta.ItemMeta): boolean; + equals(meta1: org.bukkit.inventory.meta.ItemMeta, meta2: org.bukkit.inventory.meta.ItemMeta): boolean; /** * Returns an appropriate item meta for the specified stack. *

    @@ -39,7 +40,7 @@ declare namespace org { * specified meta that is applicable to an {@link ItemMeta}, the highest * common interface. */ - public asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): org.bukkit.inventory.meta.ItemMeta; + asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, stack: org.bukkit.inventory.ItemStack): org.bukkit.inventory.meta.ItemMeta; /** * Returns an appropriate item meta for the specified material. *

    @@ -53,16 +54,16 @@ declare namespace org { * specified meta that is applicable to an {@link ItemMeta}, the highest * common interface. */ - public asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta; + asMetaFor(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.inventory.meta.ItemMeta; /** * Returns the default color for all leather armor. */ - public getDefaultLeatherColor(): org.bukkit.Color; + getDefaultLeatherColor(): org.bukkit.Color; /** * Apply a material change for an item meta. Do not use under any * circumstances. */ - public updateMaterial(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.Material; + updateMaterial(meta: org.bukkit.inventory.meta.ItemMeta, material: org.bukkit.Material): org.bukkit.Material; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts index 780129c2..84d3dde9 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemFlag.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class ItemFlag { + // @ts-ignore + class ItemFlag { public static HIDE_ENCHANTS: org.bukkit.inventory.ItemFlag; public static HIDE_ATTRIBUTES: org.bukkit.inventory.ItemFlag; public static HIDE_UNBREAKABLE: org.bukkit.inventory.ItemFlag; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts index d93531b5..ea94d1a6 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.ItemStack.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class ItemStack { + // @ts-ignore + class ItemStack implements org.bukkit.configuration.serialization.ConfigurationSerializable { constructor() /** * Defaults stack size to 1, with no extra data diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts index 24e32b87..0e342731 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.LecternInventory.ts @@ -1,8 +1,9 @@ declare namespace org { namespace bukkit { namespace inventory { - class LecternInventory { - public getHolder(): org.bukkit.block.Lectern; + // @ts-ignore + interface LecternInventory extends org.bukkit.inventory.Inventory { + getHolder(): org.bukkit.block.Lectern; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts index 264faf48..7a1c3170 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.LlamaInventory.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace inventory { - class LlamaInventory { + // @ts-ignore + interface LlamaInventory extends org.bukkit.inventory.AbstractHorseInventory { /** * Gets the item in the llama's decor slot. */ - public getDecor(): org.bukkit.inventory.ItemStack; + getDecor(): org.bukkit.inventory.ItemStack; /** * Sets the item in the llama's decor slot. */ - public setDecor(stack: org.bukkit.inventory.ItemStack): void; + setDecor(stack: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts index 7c944aaa..d898135c 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.LoomInventory.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class LoomInventory { + // @ts-ignore + interface LoomInventory extends org.bukkit.inventory.Inventory { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts index 5ca18ad2..7a785ea3 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.MainHand.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class MainHand { + // @ts-ignore + class MainHand { public static LEFT: org.bukkit.inventory.MainHand; public static RIGHT: org.bukkit.inventory.MainHand; public static values(): org.bukkit.inventory.MainHand[]; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts index 30fd4f6b..cf7e3e3e 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.Merchant.ts @@ -1,39 +1,40 @@ declare namespace org { namespace bukkit { namespace inventory { - class Merchant { + // @ts-ignore + interface Merchant { /** * Get a list of trades currently available from this merchant. */ - public getRecipes(): any[] /*java.util.List*/; + getRecipes(): any[] /*java.util.List*/; /** * Set the list of trades currently available from this merchant. *
    * This will not change the selected trades of players currently trading * with this merchant. */ - public setRecipes(recipes: any[] /*java.util.List*/): void; + setRecipes(recipes: any[] /*java.util.List*/): void; /** * Get the recipe at a certain index of this merchant's trade list. */ - public getRecipe(i: number): org.bukkit.inventory.MerchantRecipe; + getRecipe(i: number): org.bukkit.inventory.MerchantRecipe; /** * Set the recipe at a certain index of this merchant's trade list. */ - public setRecipe(i: number, recipe: org.bukkit.inventory.MerchantRecipe): void; + setRecipe(i: number, recipe: org.bukkit.inventory.MerchantRecipe): void; /** * Get the number of trades this merchant currently has available. */ - public getRecipeCount(): number; + getRecipeCount(): number; /** * Gets whether this merchant is currently trading. */ - public isTrading(): boolean; + isTrading(): boolean; /** * Gets the player this merchant is trading with, or null if it is not * currently trading. */ - public getTrader(): org.bukkit.entity.HumanEntity; + getTrader(): org.bukkit.entity.HumanEntity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts index fcbe5516..f7ad06b5 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantInventory.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class MerchantInventory { + // @ts-ignore + interface MerchantInventory extends org.bukkit.inventory.Inventory { /** * Get the index of the currently selected recipe. */ - public getSelectedRecipeIndex(): number; + getSelectedRecipeIndex(): number; /** * Get the currently active recipe. *

    @@ -15,11 +16,11 @@ declare namespace org { * selected the first recipe, the merchant will search all of its offers * for a matching recipe to activate. */ - public getSelectedRecipe(): org.bukkit.inventory.MerchantRecipe; + getSelectedRecipe(): org.bukkit.inventory.MerchantRecipe; /** * Gets the Merchant associated with this inventory. */ - public getMerchant(): org.bukkit.inventory.Merchant; + getMerchant(): org.bukkit.inventory.Merchant; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts index 9c13a79a..412b863f 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.MerchantRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class MerchantRecipe { + // @ts-ignore + class MerchantRecipe implements org.bukkit.inventory.Recipe { constructor(result: org.bukkit.inventory.ItemStack, maxUses: number) constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean) constructor(result: org.bukkit.inventory.ItemStack, uses: number, maxUses: number, experienceReward: boolean, villagerExperience: number, priceMultiplier: number) diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts index d1766319..ee293ad4 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.PlayerInventory.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class PlayerInventory { + // @ts-ignore + interface PlayerInventory extends org.bukkit.inventory.Inventory { /** * Get all ItemStacks from the armor slots */ - public getArmorContents(): org.bukkit.inventory.ItemStack[]; + getArmorContents(): org.bukkit.inventory.ItemStack[]; /** * Get all additional ItemStacks stored in this inventory. *
    @@ -13,23 +14,23 @@ declare namespace org { * will not be contained within {@link #getStorageContents()} or * {@link #getArmorContents()} */ - public getExtraContents(): org.bukkit.inventory.ItemStack[]; + getExtraContents(): org.bukkit.inventory.ItemStack[]; /** * Return the ItemStack from the helmet slot */ - public getHelmet(): org.bukkit.inventory.ItemStack; + getHelmet(): org.bukkit.inventory.ItemStack; /** * Return the ItemStack from the chestplate slot */ - public getChestplate(): org.bukkit.inventory.ItemStack; + getChestplate(): org.bukkit.inventory.ItemStack; /** * Return the ItemStack from the leg slot */ - public getLeggings(): org.bukkit.inventory.ItemStack; + getLeggings(): org.bukkit.inventory.ItemStack; /** * Return the ItemStack from the boots slot */ - public getBoots(): org.bukkit.inventory.ItemStack; + getBoots(): org.bukkit.inventory.ItemStack; /** * Stores the ItemStack at the given index of the inventory. *

    @@ -46,74 +47,74 @@ declare namespace org { * If you attempt to use this method with an index less than 0 or greater than 40, an ArrayIndexOutOfBounds * exception will be thrown. */ - public setItem(index: number, item: org.bukkit.inventory.ItemStack): void; + setItem(index: number, item: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStacks into the armor slots */ - public setArmorContents(items: org.bukkit.inventory.ItemStack): void; + setArmorContents(items: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStacks into the extra slots *
    * See {@link #getExtraContents()} for an explanation of extra slots. */ - public setExtraContents(items: org.bukkit.inventory.ItemStack): void; + setExtraContents(items: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStack into the helmet slot. This does not check if * the ItemStack is a helmet */ - public setHelmet(helmet: org.bukkit.inventory.ItemStack): void; + setHelmet(helmet: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStack into the chestplate slot. This does not check * if the ItemStack is a chestplate */ - public setChestplate(chestplate: org.bukkit.inventory.ItemStack): void; + setChestplate(chestplate: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStack into the leg slot. This does not check if the * ItemStack is a pair of leggings */ - public setLeggings(leggings: org.bukkit.inventory.ItemStack): void; + setLeggings(leggings: org.bukkit.inventory.ItemStack): void; /** * Put the given ItemStack into the boots slot. This does not check if the * ItemStack is a boots */ - public setBoots(boots: org.bukkit.inventory.ItemStack): void; + setBoots(boots: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the item the player is currently holding * in their main hand. */ - public getItemInMainHand(): org.bukkit.inventory.ItemStack; + getItemInMainHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the player is holding in their main hand. */ - public setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; + setItemInMainHand(item: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the item the player is currently holding * in their off hand. */ - public getItemInOffHand(): org.bukkit.inventory.ItemStack; + getItemInOffHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the player is holding in their off hand. */ - public setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; + setItemInOffHand(item: org.bukkit.inventory.ItemStack): void; /** * Gets a copy of the item the player is currently holding */ - public getItemInHand(): org.bukkit.inventory.ItemStack; + getItemInHand(): org.bukkit.inventory.ItemStack; /** * Sets the item the player is holding */ - public setItemInHand(stack: org.bukkit.inventory.ItemStack): void; + setItemInHand(stack: org.bukkit.inventory.ItemStack): void; /** * Get the slot number of the currently held item */ - public getHeldItemSlot(): number; + getHeldItemSlot(): number; /** * Set the slot number of the currently held item. *

    * This validates whether the slot is between 0 and 8 inclusive. */ - public setHeldItemSlot(slot: number): void; - public getHolder(): org.bukkit.entity.HumanEntity; + setHeldItemSlot(slot: number): void; + getHolder(): org.bukkit.entity.HumanEntity; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts index 4a4c1626..ffc42328 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.Recipe.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace inventory { - class Recipe { + // @ts-ignore + interface Recipe { /** * Get the result of this recipe. */ - public getResult(): org.bukkit.inventory.ItemStack; + getResult(): org.bukkit.inventory.ItemStack; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts index 0edb6d97..edacff53 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ExactChoice.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace inventory { namespace RecipeChoice { - class ExactChoice { + // @ts-ignore + class ExactChoice implements org.bukkit.inventory.RecipeChoice { constructor(stack: org.bukkit.inventory.ItemStack) constructor(stacks: org.bukkit.inventory.ItemStack) constructor(choices: any[] /*java.util.List*/) diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts index 662f9811..2d7d7555 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.MaterialChoice.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace inventory { namespace RecipeChoice { - class MaterialChoice { + // @ts-ignore + class MaterialChoice implements org.bukkit.inventory.RecipeChoice { constructor(choice: org.bukkit.Material) constructor(choices: org.bukkit.Material) /** diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts index 5044c8f8..3f38dc17 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.RecipeChoice.ts @@ -1,13 +1,14 @@ declare namespace org { namespace bukkit { namespace inventory { - class RecipeChoice { + // @ts-ignore + interface RecipeChoice { /** * Gets a single item stack representative of this stack choice. */ - public getItemStack(): org.bukkit.inventory.ItemStack; - public clone(): org.bukkit.inventory.RecipeChoice; - public test(itemStack: org.bukkit.inventory.ItemStack): boolean; + getItemStack(): org.bukkit.inventory.ItemStack; + clone(): org.bukkit.inventory.RecipeChoice; + test(itemStack: org.bukkit.inventory.ItemStack): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts index 043254b5..0d71a39d 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.ShapedRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class ShapedRecipe { + // @ts-ignore + class ShapedRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { constructor(result: org.bukkit.inventory.ItemStack) /** * Create a shaped recipe to craft the specified ItemStack. The diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts index aeda3366..db3c4d50 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.ShapelessRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class ShapelessRecipe { + // @ts-ignore + class ShapelessRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { constructor(result: org.bukkit.inventory.ItemStack) /** * Create a shapeless recipe to craft the specified ItemStack. The diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts index 427aadc7..36e75a2d 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.SmokingRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class SmokingRecipe { + // @ts-ignore + class SmokingRecipe { constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, source: org.bukkit.Material, experience: number, cookingTime: number) constructor(key: org.bukkit.NamespacedKey, result: org.bukkit.inventory.ItemStack, input: org.bukkit.inventory.RecipeChoice, experience: number, cookingTime: number) } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts b/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts index b1d0fc1c..42728900 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.StonecutterInventory.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class StonecutterInventory { + // @ts-ignore + interface StonecutterInventory extends org.bukkit.inventory.Inventory { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts b/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts index 4c7752db..95e5181c 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.StonecuttingRecipe.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace inventory { - class StonecuttingRecipe { + // @ts-ignore + class StonecuttingRecipe implements org.bukkit.inventory.Recipe, org.bukkit.Keyed { /** * Create a Stonecutting recipe to craft the specified ItemStack. */ diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts index 31e8daed..f32746e8 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BannerMeta.ts @@ -2,45 +2,46 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class BannerMeta { + // @ts-ignore + interface BannerMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Returns the base color for this banner */ - public getBaseColor(): org.bukkit.DyeColor; + getBaseColor(): org.bukkit.DyeColor; /** * Sets the base color for this banner */ - public setBaseColor(color: org.bukkit.DyeColor): void; + setBaseColor(color: org.bukkit.DyeColor): void; /** * Returns a list of patterns on this banner */ - public getPatterns(): any[] /*java.util.List*/; + getPatterns(): any[] /*java.util.List*/; /** * Sets the patterns used on this banner */ - public setPatterns(patterns: any[] /*java.util.List*/): void; + setPatterns(patterns: any[] /*java.util.List*/): void; /** * Adds a new pattern on top of the existing * patterns */ - public addPattern(pattern: org.bukkit.block.banner.Pattern): void; + addPattern(pattern: org.bukkit.block.banner.Pattern): void; /** * Returns the pattern at the specified index */ - public getPattern(i: number): org.bukkit.block.banner.Pattern; + getPattern(i: number): org.bukkit.block.banner.Pattern; /** * Removes the pattern at the specified index */ - public removePattern(i: number): org.bukkit.block.banner.Pattern; + removePattern(i: number): org.bukkit.block.banner.Pattern; /** * Sets the pattern at the specified index */ - public setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; + setPattern(i: number, pattern: org.bukkit.block.banner.Pattern): void; /** * Returns the number of patterns on this * banner */ - public numberOfPatterns(): number; + numberOfPatterns(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts index 6820c45d..56e2b703 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockDataMeta.ts @@ -2,22 +2,23 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class BlockDataMeta { + // @ts-ignore + interface BlockDataMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Returns whether the item has block data currently attached to it. */ - public hasBlockData(): boolean; + hasBlockData(): boolean; /** * Returns the currently attached block data for this item or creates a new * one if one doesn't exist. * The state is a copy, it must be set back (or to another item) with * {@link #setBlockData(org.bukkit.block.data.BlockData)} */ - public getBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; + getBlockData(material: org.bukkit.Material): org.bukkit.block.data.BlockData; /** * Attaches a copy of the passed block data to the item. */ - public setBlockData(blockData: org.bukkit.block.data.BlockData): void; + setBlockData(blockData: org.bukkit.block.data.BlockData): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts index 96062582..cf6bcb08 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BlockStateMeta.ts @@ -2,23 +2,24 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class BlockStateMeta { + // @ts-ignore + interface BlockStateMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Returns whether the item has a block state currently * attached to it. */ - public hasBlockState(): boolean; + hasBlockState(): boolean; /** * Returns the currently attached block state for this * item or creates a new one if one doesn't exist. * The state is a copy, it must be set back (or to another * item) with {@link #setBlockState(org.bukkit.block.BlockState)} */ - public getBlockState(): org.bukkit.block.BlockState; + getBlockState(): org.bukkit.block.BlockState; /** * Attaches a copy of the passed block state to the item. */ - public setBlockState(blockState: org.bukkit.block.BlockState): void; + setBlockState(blockState: org.bukkit.block.BlockState): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts index 86111170..310f9fcf 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.Generation.ts @@ -3,7 +3,8 @@ declare namespace org { namespace inventory { namespace meta { namespace BookMeta { - class Generation { + // @ts-ignore + class Generation { public static ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation; public static COPY_OF_ORIGINAL: org.bukkit.inventory.meta.BookMeta.Generation; public static COPY_OF_COPY: org.bukkit.inventory.meta.BookMeta.Generation; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts index be772f0d..66403572 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.BookMeta.ts @@ -2,64 +2,65 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class BookMeta { + // @ts-ignore + interface BookMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Checks for the existence of a title in the book. */ - public hasTitle(): boolean; + hasTitle(): boolean; /** * Gets the title of the book. *

    * Plugins should check that hasTitle() returns true before calling this * method. */ - public getTitle(): string; + getTitle(): string; /** * Sets the title of the book. *

    * Limited to 16 characters. Removes title when given null. */ - public setTitle(title: string): boolean; + setTitle(title: string): boolean; /** * Checks for the existence of an author in the book. */ - public hasAuthor(): boolean; + hasAuthor(): boolean; /** * Gets the author of the book. *

    * Plugins should check that hasAuthor() returns true before calling this * method. */ - public getAuthor(): string; + getAuthor(): string; /** * Sets the author of the book. Removes author when given null. */ - public setAuthor(author: string): void; + setAuthor(author: string): void; /** * Checks for the existence of generation level in the book. */ - public hasGeneration(): boolean; + hasGeneration(): boolean; /** * Gets the generation of the book. *

    * Plugins should check that hasGeneration() returns true before calling * this method. */ - public getGeneration(): org.bukkit.inventory.meta.BookMeta.Generation; + getGeneration(): org.bukkit.inventory.meta.BookMeta.Generation; /** * Sets the generation of the book. Removes generation when given null. */ - public setGeneration(generation: org.bukkit.inventory.meta.BookMeta.Generation): void; + setGeneration(generation: org.bukkit.inventory.meta.BookMeta.Generation): void; /** * Checks for the existence of pages in the book. */ - public hasPages(): boolean; + hasPages(): boolean; /** * Gets the specified page in the book. The given page must exist. *

    * Pages are 1-indexed. */ - public getPage(page: number): string; + getPage(page: number): string; /** * Sets the specified page in the book. Pages of the book must be * contiguous. @@ -69,31 +70,31 @@ declare namespace org { *

    * Pages are 1-indexed. */ - public setPage(page: number, data: string): void; + setPage(page: number, data: string): void; /** * Gets all the pages in the book. */ - public getPages(): any[] /*java.util.List*/; + getPages(): any[] /*java.util.List*/; /** * Clears the existing book pages, and sets the book to use the provided * pages. Maximum 50 pages with 256 characters per page. */ - public setPages(pages: any[] /*java.util.List*/): void; + setPages(pages: any[] /*java.util.List*/): void; /** * Clears the existing book pages, and sets the book to use the provided * pages. Maximum 50 pages with 256 characters per page. */ - public setPages(pages: string): void; + setPages(pages: string): void; /** * Adds new pages to the end of the book. Up to a maximum of 50 pages with * 256 characters per page. */ - public addPage(pages: string): void; + addPage(pages: string): void; /** * Gets the number of pages in the book. */ - public getPageCount(): number; - public clone(): org.bukkit.inventory.meta.BookMeta; + getPageCount(): number; + clone(): org.bukkit.inventory.meta.BookMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts index 598747eb..6604f98f 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.CrossbowMeta.ts @@ -2,24 +2,25 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class CrossbowMeta { + // @ts-ignore + interface CrossbowMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Returns whether the item has any charged projectiles. */ - public hasChargedProjectiles(): boolean; + hasChargedProjectiles(): boolean; /** * Returns an immutable list of the projectiles charged on this item. */ - public getChargedProjectiles(): any[] /*java.util.List*/; + getChargedProjectiles(): any[] /*java.util.List*/; /** * Sets the projectiles charged on this item. * Removes all projectiles when given null. */ - public setChargedProjectiles(projectiles: any[] /*java.util.List*/): void; + setChargedProjectiles(projectiles: any[] /*java.util.List*/): void; /** * Adds a charged projectile to this item. */ - public addChargedProjectile(item: org.bukkit.inventory.ItemStack): void; + addChargedProjectile(item: org.bukkit.inventory.ItemStack): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts index 8a545afa..3cdb29bf 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Damageable.ts @@ -2,20 +2,21 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class Damageable { + // @ts-ignore + interface Damageable { /** * Checks to see if this item has damage */ - public hasDamage(): boolean; + hasDamage(): boolean; /** * Gets the damage */ - public getDamage(): number; + getDamage(): number; /** * Sets the damage */ - public setDamage(damage: number): void; - public clone(): org.bukkit.inventory.meta.Damageable; + setDamage(damage: number): void; + clone(): org.bukkit.inventory.meta.Damageable; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts index 6addf116..f4a81451 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.EnchantmentStorageMeta.ts @@ -2,37 +2,38 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class EnchantmentStorageMeta { + // @ts-ignore + interface EnchantmentStorageMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Checks for the existence of any stored enchantments. */ - public hasStoredEnchants(): boolean; + hasStoredEnchants(): boolean; /** * Checks for storage of the specified enchantment. */ - public hasStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + hasStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; /** * Checks for the level of the stored enchantment. */ - public getStoredEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; + getStoredEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; /** * Gets a copy the stored enchantments in this ItemMeta. */ - public getStoredEnchants(): Map /*java.util.Map*/; + getStoredEnchants(): Map /*java.util.Map*/; /** * Stores the specified enchantment in this item meta. */ - public addStoredEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; + addStoredEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; /** * Remove the specified stored enchantment from this item meta. */ - public removeStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + removeStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; /** * Checks if the specified enchantment conflicts with any enchantments in * this ItemMeta. */ - public hasConflictingStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; - public clone(): org.bukkit.inventory.meta.EnchantmentStorageMeta; + hasConflictingStoredEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + clone(): org.bukkit.inventory.meta.EnchantmentStorageMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkEffectMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkEffectMeta.ts index 010b6fac..48fbcd3d 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkEffectMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkEffectMeta.ts @@ -2,20 +2,21 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class FireworkEffectMeta { + // @ts-ignore + interface FireworkEffectMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Sets the firework effect for this meta. */ - public setEffect(effect: org.bukkit.FireworkEffect): void; + setEffect(effect: org.bukkit.FireworkEffect): void; /** * Checks if this meta has an effect. */ - public hasEffect(): boolean; + hasEffect(): boolean; /** * Gets the firework effect for this meta. */ - public getEffect(): org.bukkit.FireworkEffect; - public clone(): org.bukkit.inventory.meta.FireworkEffectMeta; + getEffect(): org.bukkit.FireworkEffect; + clone(): org.bukkit.inventory.meta.FireworkEffectMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkMeta.ts index aae77eaf..acbd0ab3 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.FireworkMeta.ts @@ -2,49 +2,50 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class FireworkMeta { + // @ts-ignore + interface FireworkMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Add another effect to this firework. */ - public addEffect(effect: org.bukkit.FireworkEffect): void; + addEffect(effect: org.bukkit.FireworkEffect): void; /** * Add several effects to this firework. */ - public addEffects(effects: org.bukkit.FireworkEffect): void; + addEffects(effects: org.bukkit.FireworkEffect): void; /** * Add several firework effects to this firework. */ - public addEffects(effects: any): void; + addEffects(effects: any): void; /** * Get the effects in this firework. */ - public getEffects(): any[] /*java.util.List*/; + getEffects(): any[] /*java.util.List*/; /** * Get the number of effects in this firework. */ - public getEffectsSize(): number; + getEffectsSize(): number; /** * Remove an effect from this firework. */ - public removeEffect(index: number): void; + removeEffect(index: number): void; /** * Remove all effects from this firework. */ - public clearEffects(): void; + clearEffects(): void; /** * Get whether this firework has any effects. */ - public hasEffects(): boolean; + hasEffects(): boolean; /** * Gets the approximate height the firework will fly. */ - public getPower(): number; + getPower(): number; /** * Sets the approximate power of the firework. Each level of power is half * a second of flight time. */ - public setPower(power: number): void; - public clone(): org.bukkit.inventory.meta.FireworkMeta; + setPower(power: number): void; + clone(): org.bukkit.inventory.meta.FireworkMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.ItemMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.ItemMeta.ts index f363efb1..fbf555ac 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.ItemMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.ItemMeta.ts @@ -2,60 +2,61 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class ItemMeta { + // @ts-ignore + interface ItemMeta extends org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.persistence.PersistentDataHolder { /** * Checks for existence of a display name. */ - public hasDisplayName(): boolean; + hasDisplayName(): boolean; /** * Gets the display name that is set. *

    * Plugins should check that hasDisplayName() returns true * before calling this method. */ - public getDisplayName(): string; + getDisplayName(): string; /** * Sets the display name. */ - public setDisplayName(name: string): void; + setDisplayName(name: string): void; /** * Checks for existence of a localized name. */ - public hasLocalizedName(): boolean; + hasLocalizedName(): boolean; /** * Gets the localized display name that is set. *

    * Plugins should check that hasLocalizedName() returns true * before calling this method. */ - public getLocalizedName(): string; + getLocalizedName(): string; /** * Sets the localized name. */ - public setLocalizedName(name: string): void; + setLocalizedName(name: string): void; /** * Checks for existence of lore. */ - public hasLore(): boolean; + hasLore(): boolean; /** * Gets the lore that is set. *

    * Plugins should check if hasLore() returns true before * calling this method. */ - public getLore(): any[] /*java.util.List*/; + getLore(): any[] /*java.util.List*/; /** * Sets the lore for this item. * Removes lore when given null. */ - public setLore(lore: any[] /*java.util.List*/): void; + setLore(lore: any[] /*java.util.List*/): void; /** * Checks for existence of custom model data. *

    * CustomModelData is an integer that may be associated client side with a * custom item model. */ - public hasCustomModelData(): boolean; + hasCustomModelData(): boolean; /** * Gets the custom model data that is set. *

    @@ -65,79 +66,79 @@ declare namespace org { * Plugins should check that hasCustomModelData() returns true * before calling this method. */ - public getCustomModelData(): number; + getCustomModelData(): number; /** * Sets the custom model data. *

    * CustomModelData is an integer that may be associated client side with a * custom item model. */ - public setCustomModelData(data: any): void; + setCustomModelData(data: any): void; /** * Checks for the existence of any enchantments. */ - public hasEnchants(): boolean; + hasEnchants(): boolean; /** * Checks for existence of the specified enchantment. */ - public hasEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + hasEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; /** * Checks for the level of the specified enchantment. */ - public getEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; + getEnchantLevel(ench: org.bukkit.enchantments.Enchantment): number; /** * Returns a copy the enchantments in this ItemMeta.
    * Returns an empty map if none. */ - public getEnchants(): Map /*java.util.Map*/; + getEnchants(): Map /*java.util.Map*/; /** * Adds the specified enchantment to this item meta. */ - public addEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; + addEnchant(ench: org.bukkit.enchantments.Enchantment, level: number, ignoreLevelRestriction: boolean): boolean; /** * Removes the specified enchantment from this item meta. */ - public removeEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + removeEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; /** * Checks if the specified enchantment conflicts with any enchantments in * this ItemMeta. */ - public hasConflictingEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; + hasConflictingEnchant(ench: org.bukkit.enchantments.Enchantment): boolean; /** * Set itemflags which should be ignored when rendering a ItemStack in the Client. This Method does silently ignore double set itemFlags. */ - public addItemFlags(itemFlags: org.bukkit.inventory.ItemFlag): void; + addItemFlags(itemFlags: org.bukkit.inventory.ItemFlag): void; /** * Remove specific set of itemFlags. This tells the Client it should render it again. This Method does silently ignore double removed itemFlags. */ - public removeItemFlags(itemFlags: org.bukkit.inventory.ItemFlag): void; + removeItemFlags(itemFlags: org.bukkit.inventory.ItemFlag): void; /** * Get current set itemFlags. The collection returned is unmodifiable. */ - public getItemFlags(): any[] /*java.util.Set*/; + getItemFlags(): any[] /*java.util.Set*/; /** * Check if the specified flag is present on this item. */ - public hasItemFlag(flag: org.bukkit.inventory.ItemFlag): boolean; + hasItemFlag(flag: org.bukkit.inventory.ItemFlag): boolean; /** * Return if the unbreakable tag is true. An unbreakable item will not lose * durability. */ - public isUnbreakable(): boolean; + isUnbreakable(): boolean; /** * Sets the unbreakable tag. An unbreakable item will not lose durability. */ - public setUnbreakable(unbreakable: boolean): void; + setUnbreakable(unbreakable: boolean): void; /** * Checks for the existence of any AttributeModifiers. */ - public hasAttributeModifiers(): boolean; + hasAttributeModifiers(): boolean; /** * Return an immutable copy of all Attributes and * their modifiers in this ItemMeta.
    * Returns null if none exist. */ - public getAttributeModifiers(): any; + getAttributeModifiers(): any; /** * Return an immutable copy of all {@link Attribute}s and their * {@link AttributeModifier}s for a given {@link EquipmentSlot}.
    @@ -147,12 +148,12 @@ declare namespace org { * If there are no attributes set for the given slot, an empty map * will be returned. */ - public getAttributeModifiers(slot: org.bukkit.inventory.EquipmentSlot): any; + getAttributeModifiers(slot: org.bukkit.inventory.EquipmentSlot): any; /** * Return an immutable copy of all {@link AttributeModifier}s * for a given {@link Attribute} */ - public getAttributeModifiers(attribute: org.bukkit.attribute.Attribute): any[] /*java.util.Collection*/; + getAttributeModifiers(attribute: org.bukkit.attribute.Attribute): any[] /*java.util.Collection*/; /** * Add an Attribute and it's Modifier. * AttributeModifiers can now support {@link EquipmentSlot}s. @@ -161,7 +162,7 @@ declare namespace org { * Two {@link AttributeModifier}s that have the same {@link java.util.UUID} * cannot exist on the same Attribute. */ - public addAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean; + addAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean; /** * Set all {@link Attribute}s and their {@link AttributeModifier}s. * To clear all currently set Attributes and AttributeModifiers use @@ -169,25 +170,25 @@ declare namespace org { * If not null nor empty, this will filter all entries that are not-null * and add them to the ItemStack. */ - public setAttributeModifiers(attributeModifiers: any): void; + setAttributeModifiers(attributeModifiers: any): void; /** * Remove all {@link AttributeModifier}s associated with the given * {@link Attribute}. * This will return false if nothing was removed. */ - public removeAttributeModifier(attribute: org.bukkit.attribute.Attribute): boolean; + removeAttributeModifier(attribute: org.bukkit.attribute.Attribute): boolean; /** * Remove all {@link Attribute}s and {@link AttributeModifier}s for a * given {@link EquipmentSlot}.
    * If the given {@link EquipmentSlot} is null, this will remove all * {@link AttributeModifier}s that do not have an EquipmentSlot set. */ - public removeAttributeModifier(slot: org.bukkit.inventory.EquipmentSlot): boolean; + removeAttributeModifier(slot: org.bukkit.inventory.EquipmentSlot): boolean; /** * Remove a specific {@link Attribute} and {@link AttributeModifier}. * AttributeModifiers are matched according to their {@link java.util.UUID}. */ - public removeAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean; + removeAttributeModifier(attribute: org.bukkit.attribute.Attribute, modifier: org.bukkit.attribute.AttributeModifier): boolean; /** * Returns a public custom tag container capable of storing tags on the * item. @@ -196,12 +197,12 @@ declare namespace org { * a NBT Tag notification on the item. * These tags can also be modified by the client once in creative mode */ - public getCustomTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; + getCustomTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; /** * Internal use only! Do not use under any circumstances! */ - public setVersion(version: number): void; - public clone(): org.bukkit.inventory.meta.ItemMeta; + setVersion(version: number): void; + clone(): org.bukkit.inventory.meta.ItemMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts index e75f05b1..50ecfeef 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.KnowledgeBookMeta.ts @@ -2,25 +2,26 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class KnowledgeBookMeta { + // @ts-ignore + interface KnowledgeBookMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Checks for the existence of recipes in the book. */ - public hasRecipes(): boolean; + hasRecipes(): boolean; /** * Gets all the recipes in the book. */ - public getRecipes(): any[] /*java.util.List*/; + getRecipes(): any[] /*java.util.List*/; /** * Clears the existing book recipes, and sets the book to use the provided * recipes. */ - public setRecipes(recipes: any[] /*java.util.List*/): void; + setRecipes(recipes: any[] /*java.util.List*/): void; /** * Adds new recipe to the end of the book. */ - public addRecipe(recipes: org.bukkit.NamespacedKey): void; - public clone(): org.bukkit.inventory.meta.KnowledgeBookMeta; + addRecipe(recipes: org.bukkit.NamespacedKey): void; + clone(): org.bukkit.inventory.meta.KnowledgeBookMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts index 92b2f62f..c19bee0f 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.LeatherArmorMeta.ts @@ -2,17 +2,18 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class LeatherArmorMeta { + // @ts-ignore + interface LeatherArmorMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Gets the color of the armor. If it has not been set otherwise, it will * be {@link ItemFactory#getDefaultLeatherColor()}. */ - public getColor(): org.bukkit.Color; + getColor(): org.bukkit.Color; /** * Sets the color of the armor. */ - public setColor(color: org.bukkit.Color): void; - public clone(): org.bukkit.inventory.meta.LeatherArmorMeta; + setColor(color: org.bukkit.Color): void; + clone(): org.bukkit.inventory.meta.LeatherArmorMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts index c68c5179..42117831 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.MapMeta.ts @@ -2,11 +2,12 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class MapMeta { + // @ts-ignore + interface MapMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Checks for existence of a map ID number. */ - public hasMapId(): boolean; + hasMapId(): boolean; /** * Gets the map ID that is set. This is used to determine what map is * displayed. @@ -14,22 +15,22 @@ declare namespace org { * Plugins should check that hasMapId() returns true before * calling this method. */ - public getMapId(): number; + getMapId(): number; /** * Sets the map ID. This is used to determine what map is displayed. */ - public setMapId(id: number): void; + setMapId(id: number): void; /** * Checks for existence of an associated map. */ - public hasMapView(): boolean; + hasMapView(): boolean; /** * Gets the map view that is associated with this map item. *

    * Plugins should check that hasMapView() returns true before * calling this method. */ - public getMapView(): org.bukkit.map.MapView; + getMapView(): org.bukkit.map.MapView; /** * Sets the associated map. This is used to determine what map is displayed. *

    @@ -37,35 +38,35 @@ declare namespace org { * this is not required and is liable to generate a new (undefined) map when * the item is first used. */ - public setMapView(map: org.bukkit.map.MapView): void; + setMapView(map: org.bukkit.map.MapView): void; /** * Checks to see if this map is scaling. */ - public isScaling(): boolean; + isScaling(): boolean; /** * Sets if this map is scaling or not. */ - public setScaling(value: boolean): void; + setScaling(value: boolean): void; /** * Checks for existence of a location name. */ - public hasLocationName(): boolean; + hasLocationName(): boolean; /** * Gets the location name that is set. *

    * Plugins should check that hasLocationName() returns true * before calling this method. */ - public getLocationName(): string; + getLocationName(): string; /** * Sets the location name. A custom map color will alter the display of the * map in an inventory slot. */ - public setLocationName(name: string): void; + setLocationName(name: string): void; /** * Checks for existence of a map color. */ - public hasColor(): boolean; + hasColor(): boolean; /** * Gets the map color that is set. A custom map color will alter the display * of the map in an inventory slot. @@ -73,13 +74,13 @@ declare namespace org { * Plugins should check that hasColor() returns true before * calling this method. */ - public getColor(): org.bukkit.Color; + getColor(): org.bukkit.Color; /** * Sets the map color. A custom map color will alter the display of the map * in an inventory slot. */ - public setColor(color: org.bukkit.Color): void; - public clone(): org.bukkit.inventory.meta.MapMeta; + setColor(color: org.bukkit.Color): void; + clone(): org.bukkit.inventory.meta.MapMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts index 0ab5ceaa..fa3b736a 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.PotionMeta.ts @@ -2,19 +2,20 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class PotionMeta { + // @ts-ignore + interface PotionMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Sets the underlying potion data */ - public setBasePotionData(data: org.bukkit.potion.PotionData): void; + setBasePotionData(data: org.bukkit.potion.PotionData): void; /** * Returns the potion data about the base potion */ - public getBasePotionData(): org.bukkit.potion.PotionData; + getBasePotionData(): org.bukkit.potion.PotionData; /** * Checks for the presence of custom potion effects. */ - public hasCustomEffects(): boolean; + hasCustomEffects(): boolean; /** * Gets an immutable list containing all custom potion effects applied to * this potion. @@ -22,33 +23,33 @@ declare namespace org { * Plugins should check that hasCustomEffects() returns true before calling * this method. */ - public getCustomEffects(): any[] /*java.util.List*/; + getCustomEffects(): any[] /*java.util.List*/; /** * Adds a custom potion effect to this potion. */ - public addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; + addCustomEffect(effect: org.bukkit.potion.PotionEffect, overwrite: boolean): boolean; /** * Removes a custom potion effect from this potion. */ - public removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + removeCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Checks for a specific custom potion effect type on this potion. */ - public hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; + hasCustomEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Moves a potion effect to the top of the potion effect list. *

    * This causes the client to display the potion effect in the potion's name. */ - public setMainEffect(type: org.bukkit.potion.PotionEffectType): boolean; + setMainEffect(type: org.bukkit.potion.PotionEffectType): boolean; /** * Removes all custom potion effects from this potion. */ - public clearCustomEffects(): boolean; + clearCustomEffects(): boolean; /** * Checks for existence of a potion color. */ - public hasColor(): boolean; + hasColor(): boolean; /** * Gets the potion color that is set. A custom potion color will alter the * display of the potion in an inventory slot. @@ -56,13 +57,13 @@ declare namespace org { * Plugins should check that hasColor() returns true before * calling this method. */ - public getColor(): org.bukkit.Color; + getColor(): org.bukkit.Color; /** * Sets the potion color. A custom potion color will alter the display of * the potion in an inventory slot. */ - public setColor(color: org.bukkit.Color): void; - public clone(): org.bukkit.inventory.meta.PotionMeta; + setColor(color: org.bukkit.Color): void; + clone(): org.bukkit.inventory.meta.PotionMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts index 226282ba..84f01fd0 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.Repairable.ts @@ -2,20 +2,21 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class Repairable { + // @ts-ignore + interface Repairable { /** * Checks to see if this has a repair penalty */ - public hasRepairCost(): boolean; + hasRepairCost(): boolean; /** * Gets the repair penalty */ - public getRepairCost(): number; + getRepairCost(): number; /** * Sets the repair penalty */ - public setRepairCost(cost: number): void; - public clone(): org.bukkit.inventory.meta.Repairable; + setRepairCost(cost: number): void; + clone(): org.bukkit.inventory.meta.Repairable; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts index 3021f6ef..9cf8b864 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SkullMeta.ts @@ -2,31 +2,32 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class SkullMeta { + // @ts-ignore + interface SkullMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Gets the owner of the skull. */ - public getOwner(): string; + getOwner(): string; /** * Checks to see if the skull has an owner. */ - public hasOwner(): boolean; + hasOwner(): boolean; /** * Sets the owner of the skull. */ - public setOwner(owner: string): boolean; + setOwner(owner: string): boolean; /** * Gets the owner of the skull. */ - public getOwningPlayer(): org.bukkit.OfflinePlayer; + getOwningPlayer(): org.bukkit.OfflinePlayer; /** * Sets the owner of the skull. *

    * Plugins should check that hasOwner() returns true before calling this * plugin. */ - public setOwningPlayer(owner: org.bukkit.OfflinePlayer): boolean; - public clone(): org.bukkit.inventory.meta.SkullMeta; + setOwningPlayer(owner: org.bukkit.OfflinePlayer): boolean; + clone(): org.bukkit.inventory.meta.SkullMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts index ce2974c6..547cf27a 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.SpawnEggMeta.ts @@ -2,16 +2,17 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class SpawnEggMeta { + // @ts-ignore + interface SpawnEggMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Get the type of entity this egg will spawn. */ - public getSpawnedType(): org.bukkit.entity.EntityType; + getSpawnedType(): org.bukkit.entity.EntityType; /** * Set the type of entity this egg will spawn. */ - public setSpawnedType(type: org.bukkit.entity.EntityType): void; - public clone(): org.bukkit.inventory.meta.SpawnEggMeta; + setSpawnedType(type: org.bukkit.entity.EntityType): void; + clone(): org.bukkit.inventory.meta.SpawnEggMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts index d8cf5f3c..42c654c7 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.TropicalFishBucketMeta.ts @@ -2,55 +2,56 @@ declare namespace org { namespace bukkit { namespace inventory { namespace meta { - class TropicalFishBucketMeta { + // @ts-ignore + interface TropicalFishBucketMeta extends org.bukkit.inventory.meta.ItemMeta { /** * Gets the color of the fish's pattern. *

    * Plugins should check that hasVariant() returns true before * calling this method. */ - public getPatternColor(): org.bukkit.DyeColor; + getPatternColor(): org.bukkit.DyeColor; /** * Sets the color of the fish's pattern. *

    * Setting this when hasVariant() returns false will initialize * all other values to unspecified defaults. */ - public setPatternColor(color: org.bukkit.DyeColor): void; + setPatternColor(color: org.bukkit.DyeColor): void; /** * Gets the color of the fish's body. *

    * Plugins should check that hasVariant() returns true before * calling this method. */ - public getBodyColor(): org.bukkit.DyeColor; + getBodyColor(): org.bukkit.DyeColor; /** * Sets the color of the fish's body. *

    * Setting this when hasVariant() returns false will initialize * all other values to unspecified defaults. */ - public setBodyColor(color: org.bukkit.DyeColor): void; + setBodyColor(color: org.bukkit.DyeColor): void; /** * Gets the fish's pattern. *

    * Plugins should check that hasVariant() returns true before * calling this method. */ - public getPattern(): org.bukkit.entity.TropicalFish.Pattern; + getPattern(): org.bukkit.entity.TropicalFish.Pattern; /** * Sets the fish's pattern. *

    * Setting this when hasVariant() returns false will initialize * all other values to unspecified defaults. */ - public setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; + setPattern(pattern: org.bukkit.entity.TropicalFish.Pattern): void; /** * Checks for existence of a variant tag indicating a specific fish will be * spawned. */ - public hasVariant(): boolean; - public clone(): org.bukkit.inventory.meta.TropicalFishBucketMeta; + hasVariant(): boolean; + clone(): org.bukkit.inventory.meta.TropicalFishBucketMeta; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts index 2248f0bc..f6f70106 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.CustomItemTagContainer.ts @@ -3,14 +3,15 @@ declare namespace org { namespace inventory { namespace meta { namespace tags { - class CustomItemTagContainer { + // @ts-ignore + interface CustomItemTagContainer { /** * Stores a custom value on the {@link ItemMeta}. * This API cannot be used to manipulate minecraft tags, as the values will * be stored using your namespace. This method will override any existing * value the meta may have stored under the provided key. */ - public setCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType, value: any): void; + setCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType, value: any): void; /** * Returns if the item meta has a custom tag registered matching the * provided parameters. @@ -25,24 +26,24 @@ declare namespace org { * tags, like the the display name, will not work as the values are stored * using your namespace. */ - public hasCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): boolean; + hasCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): boolean; /** * Returns the custom tag's value that is stored on the item. */ - public getCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): any; + getCustomTag(key: org.bukkit.NamespacedKey, type: org.bukkit.inventory.meta.tags.ItemTagType): any; /** * Removes a custom key from the item meta. */ - public removeCustomTag(key: org.bukkit.NamespacedKey): void; + removeCustomTag(key: org.bukkit.NamespacedKey): void; /** * Returns if the container instance is empty, therefore has no entries * inside it. */ - public isEmpty(): boolean; + isEmpty(): boolean; /** * Returns the adapter context this tag container uses. */ - public getAdapterContext(): org.bukkit.inventory.meta.tags.ItemTagAdapterContext; + getAdapterContext(): org.bukkit.inventory.meta.tags.ItemTagAdapterContext; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts index 890bc881..fb8df6f5 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagAdapterContext.ts @@ -3,11 +3,12 @@ declare namespace org { namespace inventory { namespace meta { namespace tags { - class ItemTagAdapterContext { + // @ts-ignore + interface ItemTagAdapterContext { /** * Creates a new and empty tag container instance. */ - public newTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; + newTagContainer(): org.bukkit.inventory.meta.tags.CustomItemTagContainer; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts index e82021ee..90a972ee 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.PrimitiveTagType.ts @@ -4,7 +4,8 @@ declare namespace org { namespace meta { namespace tags { namespace ItemTagType { - class PrimitiveTagType { + // @ts-ignore + class PrimitiveTagType implements org.bukkit.inventory.meta.tags.ItemTagType { public getPrimitiveType(): any; public getComplexType(): any; public toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any; diff --git a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts index a1d071d8..c1fddb91 100644 --- a/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts +++ b/packages/bukkit/src/typings/org.bukkit.inventory.meta.tags.ItemTagType.ts @@ -3,35 +3,36 @@ declare namespace org { namespace inventory { namespace meta { namespace tags { - class ItemTagType { - public static BYTE: org.bukkit.inventory.meta.tags.ItemTagType; - public static SHORT: org.bukkit.inventory.meta.tags.ItemTagType; - public static INTEGER: org.bukkit.inventory.meta.tags.ItemTagType; - public static LONG: org.bukkit.inventory.meta.tags.ItemTagType; - public static FLOAT: org.bukkit.inventory.meta.tags.ItemTagType; - public static DOUBLE: org.bukkit.inventory.meta.tags.ItemTagType; - public static STRING: org.bukkit.inventory.meta.tags.ItemTagType; - public static BYTE_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; - public static INTEGER_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; - public static LONG_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; - public static TAG_CONTAINER: org.bukkit.inventory.meta.tags.ItemTagType; + // @ts-ignore + interface ItemTagType { + BYTE: org.bukkit.inventory.meta.tags.ItemTagType; + SHORT: org.bukkit.inventory.meta.tags.ItemTagType; + INTEGER: org.bukkit.inventory.meta.tags.ItemTagType; + LONG: org.bukkit.inventory.meta.tags.ItemTagType; + FLOAT: org.bukkit.inventory.meta.tags.ItemTagType; + DOUBLE: org.bukkit.inventory.meta.tags.ItemTagType; + STRING: org.bukkit.inventory.meta.tags.ItemTagType; + BYTE_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + INTEGER_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + LONG_ARRAY: org.bukkit.inventory.meta.tags.ItemTagType; + TAG_CONTAINER: org.bukkit.inventory.meta.tags.ItemTagType; /** * Returns the primitive data type of this tag. */ - public getPrimitiveType(): any; + getPrimitiveType(): any; /** * Returns the complex object type the primitive value resembles. */ - public getComplexType(): any; + getComplexType(): any; /** * Returns the primitive data that resembles the complex object passed to * this method. */ - public toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any; + toPrimitive(complex: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any; /** * Creates a complex object based of the passed primitive value */ - public fromPrimitive(primitive: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any; + fromPrimitive(primitive: any, context: org.bukkit.inventory.meta.tags.ItemTagAdapterContext): any; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts index f94fcc3e..98e4f54d 100644 --- a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts +++ b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.Builder.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace loot { namespace LootContext { - class Builder { + // @ts-ignore + class Builder { /** * Creates a new LootContext.Builder instance to facilitate easy * creation of {@link LootContext}s. diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts index f2047953..4894f323 100644 --- a/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts +++ b/packages/bukkit/src/typings/org.bukkit.loot.LootContext.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace loot { - class LootContext { + // @ts-ignore + class LootContext { public static DEFAULT_LOOT_MODIFIER: number; /** * The {@link Location} to store where the loot will be generated. diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts index a34cd3b8..089df7ef 100644 --- a/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts +++ b/packages/bukkit/src/typings/org.bukkit.loot.LootTable.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace loot { - class LootTable { + // @ts-ignore + interface LootTable extends org.bukkit.Keyed { /** * Returns a mutable list of loot generated by this LootTable. */ - public populateLoot(random: any, context: org.bukkit.loot.LootContext): any[] /*java.util.Collection*/; + populateLoot(random: any, context: org.bukkit.loot.LootContext): any[] /*java.util.Collection*/; /** * Attempt to fill an inventory with this LootTable's loot. */ - public fillInventory(inventory: org.bukkit.inventory.Inventory, random: any, context: org.bukkit.loot.LootContext): void; + fillInventory(inventory: org.bukkit.inventory.Inventory, random: any, context: org.bukkit.loot.LootContext): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts b/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts index 58e2748d..c8220375 100644 --- a/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts +++ b/packages/bukkit/src/typings/org.bukkit.loot.LootTables.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace loot { - class LootTables { + // @ts-ignore + class LootTables implements org.bukkit.Keyed { public static EMPTY: org.bukkit.loot.LootTables; public static ABANDONED_MINESHAFT: org.bukkit.loot.LootTables; public static BURIED_TREASURE: org.bukkit.loot.LootTables; diff --git a/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts b/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts index 1364080f..0c9dbe60 100644 --- a/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts +++ b/packages/bukkit/src/typings/org.bukkit.loot.Lootable.ts @@ -1,31 +1,32 @@ declare namespace org { namespace bukkit { namespace loot { - class Lootable { + // @ts-ignore + interface Lootable { /** * Set the loot table for a container or entity. *
    * To remove a loot table use null. Do not use {@link LootTables#EMPTY} to * clear a LootTable. */ - public setLootTable(table: org.bukkit.loot.LootTable): void; + setLootTable(table: org.bukkit.loot.LootTable): void; /** * Gets the Loot Table attached to this block or entity. *
    * If an block/entity does not have a loot table, this will return null, NOT * an empty loot table. */ - public getLootTable(): org.bukkit.loot.LootTable; + getLootTable(): org.bukkit.loot.LootTable; /** * Set the seed used when this Loot Table generates loot. */ - public setSeed(seed: number): void; + setSeed(seed: number): void; /** * Get the Loot Table's seed. *
    * The seed is used when generating loot. */ - public getSeed(): number; + getSeed(): number; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts index 78c9ccbe..29a48b18 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapCanvas.ts @@ -1,44 +1,45 @@ declare namespace org { namespace bukkit { namespace map { - class MapCanvas { + // @ts-ignore + interface MapCanvas { /** * Get the map this canvas is attached to. */ - public getMapView(): org.bukkit.map.MapView; + getMapView(): org.bukkit.map.MapView; /** * Get the cursor collection associated with this canvas. */ - public getCursors(): org.bukkit.map.MapCursorCollection; + getCursors(): org.bukkit.map.MapCursorCollection; /** * Set the cursor collection associated with this canvas. This does not * usually need to be called since a MapCursorCollection is already * provided. */ - public setCursors(cursors: org.bukkit.map.MapCursorCollection): void; + setCursors(cursors: org.bukkit.map.MapCursorCollection): void; /** * Draw a pixel to the canvas. */ - public setPixel(x: number, y: number, color: number): void; + setPixel(x: number, y: number, color: number): void; /** * Get a pixel from the canvas. */ - public getPixel(x: number, y: number): number; + getPixel(x: number, y: number): number; /** * Get a pixel from the layers below this canvas. */ - public getBasePixel(x: number, y: number): number; + getBasePixel(x: number, y: number): number; /** * Draw an image to the map. The image will be clipped if necessary. */ - public drawImage(x: number, y: number, image: any): void; + drawImage(x: number, y: number, image: any): void; /** * Render text to the map using fancy formatting. Newline (\n) characters * will move down one line and return to the original column, and the text * color can be changed using sequences such as "§12;", replacing 12 with * the palette index of the color (see {@link MapPalette}). */ - public drawText(x: number, y: number, font: org.bukkit.map.MapFont, text: string): void; + drawText(x: number, y: number, font: org.bukkit.map.MapFont, text: string): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts index 92ece9e5..6a51ed4b 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.Type.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace map { namespace MapCursor { - class Type { + // @ts-ignore + class Type { public static WHITE_POINTER: org.bukkit.map.MapCursor.Type; public static GREEN_POINTER: org.bukkit.map.MapCursor.Type; public static RED_POINTER: org.bukkit.map.MapCursor.Type; diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts index ac325911..b6ff9591 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursor.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace map { - class MapCursor { + // @ts-ignore + class MapCursor { /** * Initialize the map cursor. */ diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts b/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts index 432762a6..1cca7a92 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapCursorCollection.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace map { - class MapCursorCollection { + // @ts-ignore + class MapCursorCollection { constructor() /** * Get the amount of cursors in this collection. diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts b/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts index 6194adf2..ec0b40d4 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapFont.CharacterSprite.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace map { namespace MapFont { - class CharacterSprite { + // @ts-ignore + class CharacterSprite { constructor(width: number, height: number, data: boolean) /** * Get the value of a pixel of the character. diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts b/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts index fd170091..8fa0f78b 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapFont.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace map { - class MapFont { + // @ts-ignore + class MapFont { constructor() protected malleable: boolean; /** diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts b/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts index bf102d4d..4c3896f7 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapPalette.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace map { - class MapPalette { + // @ts-ignore + class MapPalette { public static TRANSPARENT: number; public static LIGHT_GREEN: number; public static LIGHT_BROWN: number; diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts b/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts index 7f154547..08faac15 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapRenderer.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace map { + // @ts-ignore abstract class MapRenderer { /** * Initialize the map renderer base to be non-contextual. See {@link diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts b/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts index ce1f2fcc..f67daf65 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapView.Scale.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace map { namespace MapView { - class Scale { + // @ts-ignore + class Scale { public static CLOSEST: org.bukkit.map.MapView.Scale; public static CLOSE: org.bukkit.map.MapView.Scale; public static NORMAL: org.bukkit.map.MapView.Scale; diff --git a/packages/bukkit/src/typings/org.bukkit.map.MapView.ts b/packages/bukkit/src/typings/org.bukkit.map.MapView.ts index 711df881..759a9840 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MapView.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MapView.ts @@ -1,93 +1,94 @@ declare namespace org { namespace bukkit { namespace map { - class MapView { + // @ts-ignore + interface MapView { /** * Get the ID of this map item for use with {@link MapMeta}. */ - public getId(): number; + getId(): number; /** * Check whether this map is virtual. A map is virtual if its lowermost * MapRenderer is plugin-provided. */ - public isVirtual(): boolean; + isVirtual(): boolean; /** * Get the scale of this map. */ - public getScale(): org.bukkit.map.MapView.Scale; + getScale(): org.bukkit.map.MapView.Scale; /** * Set the scale of this map. */ - public setScale(scale: org.bukkit.map.MapView.Scale): void; + setScale(scale: org.bukkit.map.MapView.Scale): void; /** * Get the center X position of this map. */ - public getCenterX(): number; + getCenterX(): number; /** * Get the center Z position of this map. */ - public getCenterZ(): number; + getCenterZ(): number; /** * Set the center X position of this map. */ - public setCenterX(x: number): void; + setCenterX(x: number): void; /** * Set the center Z position of this map. */ - public setCenterZ(z: number): void; + setCenterZ(z: number): void; /** * Get the world that this map is associated with. Primarily used by the * internal renderer, but may be used by external renderers. May return * null if the world the map is associated with is not loaded. */ - public getWorld(): org.bukkit.World; + getWorld(): org.bukkit.World; /** * Set the world that this map is associated with. The world is used by * the internal renderer, and may also be used by external renderers. */ - public setWorld(world: org.bukkit.World): void; + setWorld(world: org.bukkit.World): void; /** * Get a list of MapRenderers currently in effect. */ - public getRenderers(): any[] /*java.util.List*/; + getRenderers(): any[] /*java.util.List*/; /** * Add a renderer to this map. */ - public addRenderer(renderer: org.bukkit.map.MapRenderer): void; + addRenderer(renderer: org.bukkit.map.MapRenderer): void; /** * Remove a renderer from this map. */ - public removeRenderer(renderer: org.bukkit.map.MapRenderer): boolean; + removeRenderer(renderer: org.bukkit.map.MapRenderer): boolean; /** * Gets whether a position cursor should be shown when the map is near its * center. */ - public isTrackingPosition(): boolean; + isTrackingPosition(): boolean; /** * Sets whether a position cursor should be shown when the map is near its * center. */ - public setTrackingPosition(trackingPosition: boolean): void; + setTrackingPosition(trackingPosition: boolean): void; /** * Whether the map will show a smaller position cursor (true), or no * position cursor (false) when cursor is outside of map's range. */ - public isUnlimitedTracking(): boolean; + isUnlimitedTracking(): boolean; /** * Whether the map will show a smaller position cursor (true), or no * position cursor (false) when cursor is outside of map's range. */ - public setUnlimitedTracking(unlimited: boolean): void; + setUnlimitedTracking(unlimited: boolean): void; /** * Gets whether the map is locked or not. * A locked map may not be explored further. */ - public isLocked(): boolean; + isLocked(): boolean; /** * Gets whether the map is locked or not. * A locked map may not be explored further. */ - public setLocked(locked: boolean): void; + setLocked(locked: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts b/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts index 27f16e05..3ff057b8 100644 --- a/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts +++ b/packages/bukkit/src/typings/org.bukkit.map.MinecraftFont.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace map { - class MinecraftFont { + // @ts-ignore + class MinecraftFont { /** * Initialize a new MinecraftFont. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts b/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts index 2f94e760..686c051c 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Attachable.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace material { - class Attachable { + // @ts-ignore + interface Attachable extends org.bukkit.material.Directional { /** * Gets the face that this block is attached on */ - public getAttachedFace(): org.bukkit.block.BlockFace; + getAttachedFace(): org.bukkit.block.BlockFace; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.Banner.ts b/packages/bukkit/src/typings/org.bukkit.material.Banner.ts index 47d89ec1..52061a85 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Banner.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Banner.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Banner { + // @ts-ignore + class Banner implements org.bukkit.material.Attachable { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Bed.ts b/packages/bukkit/src/typings/org.bukkit.material.Bed.ts index a5bba2d4..137b1f9a 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Bed.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Bed.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Bed { + // @ts-ignore + class Bed implements org.bukkit.material.Directional { /** * Default constructor for a bed. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Button.ts b/packages/bukkit/src/typings/org.bukkit.material.Button.ts index afc3b463..0906aaba 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Button.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Button.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Button { + // @ts-ignore + class Button implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Cake.ts b/packages/bukkit/src/typings/org.bukkit.material.Cake.ts index 5cc8a480..d382f6a2 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Cake.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Cake.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Cake { + // @ts-ignore + class Cake { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts b/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts index a2592034..e15399df 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Cauldron.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Cauldron { + // @ts-ignore + class Cauldron { constructor() constructor(type: org.bukkit.Material, data: number) constructor(data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Chest.ts b/packages/bukkit/src/typings/org.bukkit.material.Chest.ts index dd7070a0..60ad3cef 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Chest.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Chest.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Chest { + // @ts-ignore + class Chest { constructor() /** * Instantiate a chest facing in a particular direction. diff --git a/packages/bukkit/src/typings/org.bukkit.material.Coal.ts b/packages/bukkit/src/typings/org.bukkit.material.Coal.ts index 7c471c4e..130c4976 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Coal.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Coal.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Coal { + // @ts-ignore + class Coal { constructor() constructor(type: org.bukkit.CoalType) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts index 6b197eba..a0d0c834 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.CocoaPlantSize.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace material { namespace CocoaPlant { - class CocoaPlantSize { + // @ts-ignore + class CocoaPlantSize { public static SMALL: org.bukkit.material.CocoaPlant.CocoaPlantSize; public static MEDIUM: org.bukkit.material.CocoaPlant.CocoaPlantSize; public static LARGE: org.bukkit.material.CocoaPlant.CocoaPlantSize; diff --git a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts index 2925951b..5feaf073 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.CocoaPlant.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class CocoaPlant { + // @ts-ignore + class CocoaPlant implements org.bukkit.material.Directional, org.bukkit.material.Attachable { constructor() constructor(type: org.bukkit.Material, data: number) constructor(sz: org.bukkit.material.CocoaPlant.CocoaPlantSize) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts b/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts index 9db2e1ee..e4063ab6 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Colorable.ts @@ -1,21 +1,22 @@ declare namespace org { namespace bukkit { namespace material { - class Colorable { + // @ts-ignore + interface Colorable { /** * Gets the color of this object. *
    * This may be null to represent the default color of an object, if the * object has a special default color (e.g Shulkers). */ - public getColor(): org.bukkit.DyeColor; + getColor(): org.bukkit.DyeColor; /** * Sets the color of this object to the specified DyeColor. *
    * This may be null to represent the default color of an object, if the * object has a special default color (e.g Shulkers). */ - public setColor(color: org.bukkit.DyeColor): void; + setColor(color: org.bukkit.DyeColor): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.Command.ts b/packages/bukkit/src/typings/org.bukkit.material.Command.ts index a3691adf..d2d30dc6 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Command.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Command.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Command { + // @ts-ignore + class Command implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts b/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts index e4cbace2..06326ff1 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Comparator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Comparator { + // @ts-ignore + class Comparator implements org.bukkit.material.Directional, org.bukkit.material.Redstone { /** * Constructs a comparator switched off, with the default mode (normal) and facing the default direction (north). */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Crops.ts b/packages/bukkit/src/typings/org.bukkit.material.Crops.ts index ffcd8e02..1f387731 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Crops.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Crops.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Crops { + // @ts-ignore + class Crops { /** * Constructs a wheat crop block in the seeded state. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts b/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts index 47356712..d20a1b5e 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.DetectorRail.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class DetectorRail { + // @ts-ignore + class DetectorRail implements org.bukkit.material.PressureSensor { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Diode.ts b/packages/bukkit/src/typings/org.bukkit.material.Diode.ts index 69978bfc..92be1ff9 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Diode.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Diode.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Diode { + // @ts-ignore + class Diode implements org.bukkit.material.Directional, org.bukkit.material.Redstone { /** * Constructs a diode switched on, with a delay of 1 and facing the default * direction (north). diff --git a/packages/bukkit/src/typings/org.bukkit.material.Directional.ts b/packages/bukkit/src/typings/org.bukkit.material.Directional.ts index 1e877e68..0a2b2e03 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Directional.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Directional.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace material { - class Directional { + // @ts-ignore + interface Directional { /** * Sets the direction that this block is facing in */ - public setFacingDirection(face: org.bukkit.block.BlockFace): void; + setFacingDirection(face: org.bukkit.block.BlockFace): void; /** * Gets the direction this block is facing */ - public getFacing(): org.bukkit.block.BlockFace; + getFacing(): org.bukkit.block.BlockFace; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts b/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts index 1e9cb4f3..e9770a0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.DirectionalContainer.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class DirectionalContainer { + // @ts-ignore + class DirectionalContainer implements org.bukkit.material.Directional { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) public setFacingDirection(face: org.bukkit.block.BlockFace): void; diff --git a/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts b/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts index cc032b69..68a2590c 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Dispenser.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Dispenser { + // @ts-ignore + class Dispenser { constructor() constructor(direction: org.bukkit.block.BlockFace) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Door.ts b/packages/bukkit/src/typings/org.bukkit.material.Door.ts index 6f61b911..e0127087 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Door.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Door.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Door { + // @ts-ignore + class Door implements org.bukkit.material.Directional, org.bukkit.material.Openable { constructor() constructor(type: org.bukkit.Material) /** diff --git a/packages/bukkit/src/typings/org.bukkit.material.Dye.ts b/packages/bukkit/src/typings/org.bukkit.material.Dye.ts index 0affc23a..72ca6499 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Dye.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Dye.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Dye { + // @ts-ignore + class Dye implements org.bukkit.material.Colorable { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts b/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts index b315594e..4ecbb454 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.EnderChest.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class EnderChest { + // @ts-ignore + class EnderChest { constructor() /** * Instantiate an ender chest facing in a particular direction. diff --git a/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts b/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts index f4181570..fe4c9535 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.ExtendedRails.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class ExtendedRails { + // @ts-ignore + class ExtendedRails { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) public isCurve(): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts b/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts index f506a3b3..c86e94cd 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.FlowerPot.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class FlowerPot { + // @ts-ignore + class FlowerPot { /** * Default constructor for a flower pot. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts b/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts index 206c824e..93b4237f 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Furnace.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Furnace { + // @ts-ignore + class Furnace { constructor() /** * Instantiate a furnace facing in a particular direction. diff --git a/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts b/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts index bcb8c29f..5e65015f 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.FurnaceAndDispenser.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class FurnaceAndDispenser { + // @ts-ignore + class FurnaceAndDispenser { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) public clone(): org.bukkit.material.FurnaceAndDispenser; diff --git a/packages/bukkit/src/typings/org.bukkit.material.Gate.ts b/packages/bukkit/src/typings/org.bukkit.material.Gate.ts index dbc37462..5a24649f 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Gate.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Gate.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Gate { + // @ts-ignore + class Gate implements org.bukkit.material.Directional, org.bukkit.material.Openable { constructor() constructor(type: org.bukkit.Material, data: number) constructor(data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts b/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts index e747555c..27f8bae8 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Hopper.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Hopper { + // @ts-ignore + class Hopper implements org.bukkit.material.Directional, org.bukkit.material.Redstone { /** * Constructs a hopper facing the default direction (down) and initially * active. diff --git a/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts b/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts index abecc2d1..e42dd2fa 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Ladder.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Ladder { + // @ts-ignore + class Ladder { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts b/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts index 9e212f6b..7b5a2c89 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Leaves.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Leaves { + // @ts-ignore + class Leaves { /** * Constructs a leaf block. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Lever.ts b/packages/bukkit/src/typings/org.bukkit.material.Lever.ts index f393e93e..91f67500 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Lever.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Lever.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Lever { + // @ts-ignore + class Lever implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts b/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts index cf6a26f4..a68e18a4 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.LongGrass.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class LongGrass { + // @ts-ignore + class LongGrass { constructor() constructor(species: org.bukkit.GrassSpecies) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts b/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts index 7c8fa865..0c514093 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.MaterialData.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class MaterialData { + // @ts-ignore + class MaterialData { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) /** diff --git a/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts b/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts index b3148028..835e90a7 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.MonsterEggs.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class MonsterEggs { + // @ts-ignore + class MonsterEggs { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts b/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts index 931e2dd6..38baf5b3 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Mushroom.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Mushroom { + // @ts-ignore + class Mushroom { /** * Constructs a brown/red mushroom block with all sides set to pores. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts b/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts index f28cd19f..866e4181 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.NetherWarts.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class NetherWarts { + // @ts-ignore + class NetherWarts { constructor() constructor(state: org.bukkit.NetherWartsState) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Observer.ts b/packages/bukkit/src/typings/org.bukkit.material.Observer.ts index 05d8d914..2ba85556 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Observer.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Observer.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Observer { + // @ts-ignore + class Observer implements org.bukkit.material.Directional, org.bukkit.material.Redstone { constructor() constructor(direction: org.bukkit.block.BlockFace) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Openable.ts b/packages/bukkit/src/typings/org.bukkit.material.Openable.ts index 0ed47d15..6431950d 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Openable.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Openable.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace material { - class Openable { + // @ts-ignore + interface Openable { /** * Check to see if the door is open. */ - public isOpen(): boolean; + isOpen(): boolean; /** * Configure this door to be either open or closed; */ - public setOpen(isOpen: boolean): void; + setOpen(isOpen: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts index 2a7b0e0f..7f39665b 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.PistonBaseMaterial.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class PistonBaseMaterial { + // @ts-ignore + class PistonBaseMaterial implements org.bukkit.material.Directional, org.bukkit.material.Redstone { constructor(type: org.bukkit.Material) /** * Constructs a PistonBaseMaterial. diff --git a/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts index f7dc2918..8adc5de8 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.PistonExtensionMaterial.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class PistonExtensionMaterial { + // @ts-ignore + class PistonExtensionMaterial implements org.bukkit.material.Attachable { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) public setFacingDirection(face: org.bukkit.block.BlockFace): void; diff --git a/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts b/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts index 48ae1a88..1b0aeb2f 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.PoweredRail.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class PoweredRail { + // @ts-ignore + class PoweredRail implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts b/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts index e855e5bb..0416c30c 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.PressurePlate.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class PressurePlate { + // @ts-ignore + class PressurePlate implements org.bukkit.material.PressureSensor { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts b/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts index e1ed910d..66ade423 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.PressureSensor.ts @@ -1,8 +1,9 @@ declare namespace org { namespace bukkit { namespace material { - class PressureSensor { - public isPressed(): boolean; + // @ts-ignore + interface PressureSensor { + isPressed(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts b/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts index 9495381a..7da9e994 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Pumpkin.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Pumpkin { + // @ts-ignore + class Pumpkin implements org.bukkit.material.Directional { constructor() /** * Instantiate a pumpkin facing in a particular direction. diff --git a/packages/bukkit/src/typings/org.bukkit.material.Rails.ts b/packages/bukkit/src/typings/org.bukkit.material.Rails.ts index 1f44f1ca..0bc8df41 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Rails.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Rails.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Rails { + // @ts-ignore + class Rails { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts b/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts index ec40d344..cd649bb7 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Redstone.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace material { - class Redstone { + // @ts-ignore + interface Redstone { /** * Gets the current state of this Material, indicating if it's powered or * unpowered */ - public isPowered(): boolean; + isPowered(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts b/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts index cc64534b..21b80708 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.RedstoneTorch.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class RedstoneTorch { + // @ts-ignore + class RedstoneTorch implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts b/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts index 518372f6..bdb20415 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.RedstoneWire.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class RedstoneWire { + // @ts-ignore + class RedstoneWire implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts b/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts index a15c368b..c3ecff67 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Sandstone.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Sandstone { + // @ts-ignore + class Sandstone { constructor() constructor(type: org.bukkit.SandstoneType) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts b/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts index 41420167..0f8caea3 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Sapling.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Sapling { + // @ts-ignore + class Sapling { /** * Constructs a sapling. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Sign.ts b/packages/bukkit/src/typings/org.bukkit.material.Sign.ts index e4b9690e..9ad9d87c 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Sign.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Sign.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Sign { + // @ts-ignore + class Sign implements org.bukkit.material.Attachable { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts b/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts index 1e6414dd..ee7944f8 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.SimpleAttachableMaterialData.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - abstract class SimpleAttachableMaterialData { + // @ts-ignore + abstract class SimpleAttachableMaterialData implements org.bukkit.material.Attachable { constructor(type: org.bukkit.Material, direction: org.bukkit.block.BlockFace) constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Skull.ts b/packages/bukkit/src/typings/org.bukkit.material.Skull.ts index f5ac94d7..dfad5ad0 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Skull.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Skull.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Skull { + // @ts-ignore + class Skull implements org.bukkit.material.Directional { constructor() /** * Instantiate a skull facing in a particular direction. diff --git a/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts b/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts index 234a7955..47c43c13 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.SmoothBrick.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class SmoothBrick { + // @ts-ignore + class SmoothBrick { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts b/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts index ffb10b13..ddd93004 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.SpawnEgg.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class SpawnEgg { + // @ts-ignore + class SpawnEgg { constructor() constructor(type: org.bukkit.Material, data: number) constructor(data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts b/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts index 3d9ee9d2..1ffc4d72 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Stairs.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Stairs { + // @ts-ignore + class Stairs implements org.bukkit.material.Directional { constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) public getAscendingDirection(): org.bukkit.block.BlockFace; diff --git a/packages/bukkit/src/typings/org.bukkit.material.Step.ts b/packages/bukkit/src/typings/org.bukkit.material.Step.ts index 94c6bc37..a935f3b8 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Step.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Step.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Step { + // @ts-ignore + class Step { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts b/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts index 092e9d42..9cf6c853 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.TexturedMaterial.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace material { + // @ts-ignore abstract class TexturedMaterial { constructor(m: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Torch.ts b/packages/bukkit/src/typings/org.bukkit.material.Torch.ts index bc00dafc..157f4344 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Torch.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Torch.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Torch { + // @ts-ignore + class Torch { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts b/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts index 53e2e816..52ded1f2 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.TrapDoor.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class TrapDoor { + // @ts-ignore + class TrapDoor implements org.bukkit.material.Openable { constructor() constructor(type: org.bukkit.Material) constructor(type: org.bukkit.Material, data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Tree.ts b/packages/bukkit/src/typings/org.bukkit.material.Tree.ts index 63310800..dfa3526e 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Tree.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Tree.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Tree { + // @ts-ignore + class Tree { /** * Constructs a tree block. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts b/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts index 8e22f7a2..e8758c82 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Tripwire.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Tripwire { + // @ts-ignore + class Tripwire { constructor() constructor(type: org.bukkit.Material, data: number) /** diff --git a/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts b/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts index b2838ef5..a5472150 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.TripwireHook.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class TripwireHook { + // @ts-ignore + class TripwireHook implements org.bukkit.material.Redstone { constructor() constructor(type: org.bukkit.Material, data: number) constructor(dir: org.bukkit.block.BlockFace) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Vine.ts b/packages/bukkit/src/typings/org.bukkit.material.Vine.ts index 5b36abc1..182027ac 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Vine.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Vine.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Vine { + // @ts-ignore + class Vine { constructor() constructor(type: org.bukkit.Material, data: number) constructor(data: number) diff --git a/packages/bukkit/src/typings/org.bukkit.material.Wood.ts b/packages/bukkit/src/typings/org.bukkit.material.Wood.ts index dda46dc8..e3df7efa 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Wood.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Wood.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Wood { + // @ts-ignore + class Wood { /** * Constructs a wood block. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts b/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts index 93c4d83c..ff61f1bb 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.WoodenStep.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class WoodenStep { + // @ts-ignore + class WoodenStep { /** * Constructs a wooden step. */ diff --git a/packages/bukkit/src/typings/org.bukkit.material.Wool.ts b/packages/bukkit/src/typings/org.bukkit.material.Wool.ts index 89e97ce5..f76ca428 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.Wool.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.Wool.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace material { - class Wool { + // @ts-ignore + class Wool implements org.bukkit.material.Colorable { constructor() constructor(color: org.bukkit.DyeColor) constructor(type: org.bukkit.Material) diff --git a/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts b/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts index fb98942d..5ca72913 100644 --- a/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts +++ b/packages/bukkit/src/typings/org.bukkit.material.types.MushroomBlockTexture.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace material { namespace types { - class MushroomBlockTexture { + // @ts-ignore + class MushroomBlockTexture { public static ALL_PORES: org.bukkit.material.types.MushroomBlockTexture; public static CAP_NORTH_WEST: org.bukkit.material.types.MushroomBlockTexture; public static CAP_NORTH: org.bukkit.material.types.MushroomBlockTexture; diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts index 6c04f059..1b5a084c 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.FixedMetadataValue.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace metadata { - class FixedMetadataValue { + // @ts-ignore + class FixedMetadataValue { /** * Initializes a FixedMetadataValue with an Object */ diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts index 0a12cd3c..4dd8ef94 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.CacheStrategy.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace metadata { namespace LazyMetadataValue { - class CacheStrategy { + // @ts-ignore + class CacheStrategy { public static CACHE_AFTER_FIRST_EVAL: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; public static NEVER_CACHE: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; public static CACHE_ETERNALLY: org.bukkit.metadata.LazyMetadataValue.CacheStrategy; diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts index dc65fb28..bf32a84e 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.LazyMetadataValue.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace metadata { - class LazyMetadataValue { + // @ts-ignore + class LazyMetadataValue { /** * Initialized a LazyMetadataValue object with the default * CACHE_AFTER_FIRST_EVAL cache strategy. diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts index 80586cc3..fa872836 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataConversionException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace metadata { - class MetadataConversionException { + // @ts-ignore + class MetadataConversionException { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts index 3553c483..2be244fa 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataEvaluationException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace metadata { - class MetadataEvaluationException { + // @ts-ignore + class MetadataEvaluationException { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts index c0bc87e4..14494821 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStore.ts @@ -1,30 +1,31 @@ declare namespace org { namespace bukkit { namespace metadata { - class MetadataStore { + // @ts-ignore + interface MetadataStore { /** * Adds a metadata value to an object. */ - public setMetadata(subject: any, metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; + setMetadata(subject: any, metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; /** * Returns all metadata values attached to an object. If multiple plugins * have attached metadata, each will value will be included. */ - public getMetadata(subject: any, metadataKey: string): any[] /*java.util.List*/; + getMetadata(subject: any, metadataKey: string): any[] /*java.util.List*/; /** * Tests to see if a metadata attribute has been set on an object. */ - public hasMetadata(subject: any, metadataKey: string): boolean; + hasMetadata(subject: any, metadataKey: string): boolean; /** * Removes a metadata item owned by a plugin from a subject. */ - public removeMetadata(subject: any, metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void; + removeMetadata(subject: any, metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void; /** * Invalidates all metadata in the metadata store that originates from the * given plugin. Doing this will force each invalidated metadata item to * be recalculated the next time it is accessed. */ - public invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void; + invalidateAll(owningPlugin: org.bukkit.plugin.Plugin): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts index 3a942455..eefc230c 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataStoreBase.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace metadata { + // @ts-ignore abstract class MetadataStoreBase { constructor() /** diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts index fbf2c920..554b6f96 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValue.ts @@ -1,52 +1,53 @@ declare namespace org { namespace bukkit { namespace metadata { - class MetadataValue { + // @ts-ignore + interface MetadataValue { /** * Fetches the value of this metadata item. */ - public value(): any; + value(): any; /** * Attempts to convert the value of this metadata item into an int. */ - public asInt(): number; + asInt(): number; /** * Attempts to convert the value of this metadata item into a float. */ - public asFloat(): number; + asFloat(): number; /** * Attempts to convert the value of this metadata item into a double. */ - public asDouble(): number; + asDouble(): number; /** * Attempts to convert the value of this metadata item into a long. */ - public asLong(): number; + asLong(): number; /** * Attempts to convert the value of this metadata item into a short. */ - public asShort(): number; + asShort(): number; /** * Attempts to convert the value of this metadata item into a byte. */ - public asByte(): number; + asByte(): number; /** * Attempts to convert the value of this metadata item into a boolean. */ - public asBoolean(): boolean; + asBoolean(): boolean; /** * Attempts to convert the value of this metadata item into a string. */ - public asString(): string; + asString(): string; /** * Returns the {@link Plugin} that created this metadata item. */ - public getOwningPlugin(): org.bukkit.plugin.Plugin; + getOwningPlugin(): org.bukkit.plugin.Plugin; /** * Invalidates this metadata item, forcing it to recompute when next * accessed. */ - public invalidate(): void; + invalidate(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts index e853e23a..d2cba9ef 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.MetadataValueAdapter.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace metadata { - abstract class MetadataValueAdapter { + // @ts-ignore + abstract class MetadataValueAdapter implements org.bukkit.metadata.MetadataValue { constructor(owningPlugin: org.bukkit.plugin.Plugin) protected owningPlugin: any; public getOwningPlugin(): org.bukkit.plugin.Plugin; diff --git a/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts b/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts index a95c7f38..f97223c0 100644 --- a/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts +++ b/packages/bukkit/src/typings/org.bukkit.metadata.Metadatable.ts @@ -1,26 +1,27 @@ declare namespace org { namespace bukkit { namespace metadata { - class Metadatable { + // @ts-ignore + interface Metadatable { /** * Sets a metadata value in the implementing object's metadata store. */ - public setMetadata(metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; + setMetadata(metadataKey: string, newMetadataValue: org.bukkit.metadata.MetadataValue): void; /** * Returns a list of previously set metadata values from the implementing * object's metadata store. */ - public getMetadata(metadataKey: string): any[] /*java.util.List*/; + getMetadata(metadataKey: string): any[] /*java.util.List*/; /** * Tests to see whether the implementing object contains the given * metadata value in its metadata store. */ - public hasMetadata(metadataKey: string): boolean; + hasMetadata(metadataKey: string): boolean; /** * Removes the given metadata value from the implementing object's * metadata store. */ - public removeMetadata(metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void; + removeMetadata(metadataKey: string, owningPlugin: org.bukkit.plugin.Plugin): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts b/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts index 640d4102..f24e2daf 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.Permissible.ts @@ -1,66 +1,67 @@ declare namespace org { namespace bukkit { namespace permissions { - class Permissible { + // @ts-ignore + interface Permissible extends org.bukkit.permissions.ServerOperator { /** * Checks if this object contains an override for the specified * permission, by fully qualified name */ - public isPermissionSet(name: string): boolean; + isPermissionSet(name: string): boolean; /** * Checks if this object contains an override for the specified {@link * Permission} */ - public isPermissionSet(perm: org.bukkit.permissions.Permission): boolean; + isPermissionSet(perm: org.bukkit.permissions.Permission): boolean; /** * Gets the value of the specified permission, if set. *

    * If a permission override is not set on this object, the default value * of the permission will be returned. */ - public hasPermission(name: string): boolean; + hasPermission(name: string): boolean; /** * Gets the value of the specified permission, if set. *

    * If a permission override is not set on this object, the default value * of the permission will be returned */ - public hasPermission(perm: org.bukkit.permissions.Permission): boolean; + hasPermission(perm: org.bukkit.permissions.Permission): boolean; /** * Adds a new {@link PermissionAttachment} with a single permission by * name and value */ - public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment; + addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean): org.bukkit.permissions.PermissionAttachment; /** * Adds a new empty {@link PermissionAttachment} to this object */ - public addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment; + addAttachment(plugin: org.bukkit.plugin.Plugin): org.bukkit.permissions.PermissionAttachment; /** * Temporarily adds a new {@link PermissionAttachment} with a single * permission by name and value */ - public addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean, ticks: number): org.bukkit.permissions.PermissionAttachment; + addAttachment(plugin: org.bukkit.plugin.Plugin, name: string, value: boolean, ticks: number): org.bukkit.permissions.PermissionAttachment; /** * Temporarily adds a new empty {@link PermissionAttachment} to this * object */ - public addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment; + addAttachment(plugin: org.bukkit.plugin.Plugin, ticks: number): org.bukkit.permissions.PermissionAttachment; /** * Removes the given {@link PermissionAttachment} from this object */ - public removeAttachment(attachment: org.bukkit.permissions.PermissionAttachment): void; + removeAttachment(attachment: org.bukkit.permissions.PermissionAttachment): void; /** * Recalculates the permissions for this object, if the attachments have * changed values. *

    * This should very rarely need to be called from a plugin. */ - public recalculatePermissions(): void; + recalculatePermissions(): void; /** * Gets a set containing all of the permissions currently in effect by * this object */ - public getEffectivePermissions(): any[] /*java.util.Set*/; + getEffectivePermissions(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts index 681da228..324439bc 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissibleBase.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace permissions { - class PermissibleBase { + // @ts-ignore + class PermissibleBase implements org.bukkit.permissions.Permissible { constructor(opable: org.bukkit.permissions.ServerOperator) public isOp(): boolean; public setOp(value: boolean): void; diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts b/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts index 9f6b627b..6c05430a 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.Permission.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace permissions { - class Permission { + // @ts-ignore + class Permission { constructor(name: string) constructor(name: string, description: string) constructor(name: string, defaultValue: org.bukkit.permissions.PermissionDefault) diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts index 71ce810a..aa88d3cc 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachment.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace permissions { - class PermissionAttachment { + // @ts-ignore + class PermissionAttachment { constructor(plugin: org.bukkit.plugin.Plugin, permissible: org.bukkit.permissions.Permissible) /** * Gets the plugin responsible for this attachment diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts index 7d32ed39..e69cbed7 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionAttachmentInfo.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace permissions { - class PermissionAttachmentInfo { + // @ts-ignore + class PermissionAttachmentInfo { constructor(permissible: org.bukkit.permissions.Permissible, permission: string, attachment: org.bukkit.permissions.PermissionAttachment, value: boolean) /** * Gets the permissible this is attached to diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts index 36156d83..f25d5805 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionDefault.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace permissions { - class PermissionDefault { + // @ts-ignore + class PermissionDefault { public static TRUE: org.bukkit.permissions.PermissionDefault; public static FALSE: org.bukkit.permissions.PermissionDefault; public static OP: org.bukkit.permissions.PermissionDefault; diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts index dce1f5a3..a30a592b 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.PermissionRemovedExecutor.ts @@ -1,12 +1,13 @@ declare namespace org { namespace bukkit { namespace permissions { - class PermissionRemovedExecutor { + // @ts-ignore + interface PermissionRemovedExecutor { /** * Called when a {@link PermissionAttachment} is removed from a {@link * Permissible} */ - public attachmentRemoved(attachment: org.bukkit.permissions.PermissionAttachment): void; + attachmentRemoved(attachment: org.bukkit.permissions.PermissionAttachment): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts b/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts index e2926b12..d83f117a 100644 --- a/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts +++ b/packages/bukkit/src/typings/org.bukkit.permissions.ServerOperator.ts @@ -1,15 +1,16 @@ declare namespace org { namespace bukkit { namespace permissions { - class ServerOperator { + // @ts-ignore + interface ServerOperator { /** * Checks if this object is a server operator */ - public isOp(): boolean; + isOp(): boolean; /** * Sets the operator status of this object */ - public setOp(value: boolean): void; + setOp(value: boolean): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts index d00c2334..9f034c75 100644 --- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts +++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataAdapterContext.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace persistence { - class PersistentDataAdapterContext { + // @ts-ignore + interface PersistentDataAdapterContext { /** * Creates a new and empty meta container instance. */ - public newPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + newPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts index aa6e84ad..41267bc1 100644 --- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts +++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataContainer.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace persistence { - class PersistentDataContainer { + // @ts-ignore + interface PersistentDataContainer { /** * Stores a metadata value on the {@link PersistentDataHolder} instance. *

    @@ -10,7 +11,7 @@ declare namespace org { * value the {@link PersistentDataHolder} may have stored under the provided * key. */ - public set(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, value: any): void; + set(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, value: any): void; /** * Returns if the persistent metadata provider has metadata registered * matching the provided parameters. @@ -29,31 +30,31 @@ declare namespace org { * tags, like the the display name, will not work as the values are stored * using your namespace. */ - public has(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): boolean; + has(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): boolean; /** * Returns the metadata value that is stored on the * {@link PersistentDataHolder} instance. */ - public get(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): any; + get(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType): any; /** * Returns the metadata value that is stored on the * {@link PersistentDataHolder} instance. If the value does not exist in the * container, the default value provided is returned. */ - public getOrDefault(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, defaultValue: any): any; + getOrDefault(key: org.bukkit.NamespacedKey, type: org.bukkit.persistence.PersistentDataType, defaultValue: any): any; /** * Removes a custom key from the {@link PersistentDataHolder} instance. */ - public remove(key: org.bukkit.NamespacedKey): void; + remove(key: org.bukkit.NamespacedKey): void; /** * Returns if the container instance is empty, therefore has no entries * inside it. */ - public isEmpty(): boolean; + isEmpty(): boolean; /** * Returns the adapter context this tag container uses. */ - public getAdapterContext(): org.bukkit.persistence.PersistentDataAdapterContext; + getAdapterContext(): org.bukkit.persistence.PersistentDataAdapterContext; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts index 7860343a..068f31e0 100644 --- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts +++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataHolder.ts @@ -1,14 +1,15 @@ declare namespace org { namespace bukkit { namespace persistence { - class PersistentDataHolder { + // @ts-ignore + interface PersistentDataHolder { /** * Returns a custom tag container capable of storing tags on the object. * Note that the tags stored on this container are all stored under their * own custom namespace therefore modifying default tags using this * {@link PersistentDataHolder} is impossible. */ - public getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; + getPersistentDataContainer(): org.bukkit.persistence.PersistentDataContainer; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts index d6fadf44..e37c41d1 100644 --- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts +++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.PrimitivePersistentDataType.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace persistence { namespace PersistentDataType { - class PrimitivePersistentDataType { + // @ts-ignore + class PrimitivePersistentDataType implements org.bukkit.persistence.PersistentDataType { public getPrimitiveType(): any; public getComplexType(): any; public toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any; diff --git a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts index 0af48b7f..c86e56e1 100644 --- a/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts +++ b/packages/bukkit/src/typings/org.bukkit.persistence.PersistentDataType.ts @@ -1,35 +1,36 @@ declare namespace org { namespace bukkit { namespace persistence { - class PersistentDataType { - public static BYTE: org.bukkit.persistence.PersistentDataType; - public static SHORT: org.bukkit.persistence.PersistentDataType; - public static INTEGER: org.bukkit.persistence.PersistentDataType; - public static LONG: org.bukkit.persistence.PersistentDataType; - public static FLOAT: org.bukkit.persistence.PersistentDataType; - public static DOUBLE: org.bukkit.persistence.PersistentDataType; - public static STRING: org.bukkit.persistence.PersistentDataType; - public static BYTE_ARRAY: org.bukkit.persistence.PersistentDataType; - public static INTEGER_ARRAY: org.bukkit.persistence.PersistentDataType; - public static LONG_ARRAY: org.bukkit.persistence.PersistentDataType; - public static TAG_CONTAINER: org.bukkit.persistence.PersistentDataType; + // @ts-ignore + interface PersistentDataType { + BYTE: org.bukkit.persistence.PersistentDataType; + SHORT: org.bukkit.persistence.PersistentDataType; + INTEGER: org.bukkit.persistence.PersistentDataType; + LONG: org.bukkit.persistence.PersistentDataType; + FLOAT: org.bukkit.persistence.PersistentDataType; + DOUBLE: org.bukkit.persistence.PersistentDataType; + STRING: org.bukkit.persistence.PersistentDataType; + BYTE_ARRAY: org.bukkit.persistence.PersistentDataType; + INTEGER_ARRAY: org.bukkit.persistence.PersistentDataType; + LONG_ARRAY: org.bukkit.persistence.PersistentDataType; + TAG_CONTAINER: org.bukkit.persistence.PersistentDataType; /** * Returns the primitive data type of this tag. */ - public getPrimitiveType(): any; + getPrimitiveType(): any; /** * Returns the complex object type the primitive value resembles. */ - public getComplexType(): any; + getComplexType(): any; /** * Returns the primitive data that resembles the complex object passed to * this method. */ - public toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any; + toPrimitive(complex: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any; /** * Creates a complex object based of the passed primitive value */ - public fromPrimitive(primitive: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any; + fromPrimitive(primitive: any, context: org.bukkit.persistence.PersistentDataAdapterContext): any; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts index 73a88b5c..2d820a45 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.AuthorNagException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class AuthorNagException { + // @ts-ignore + class AuthorNagException { /** * Constructs a new AuthorNagException based on the given Exception */ diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts b/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts index 5c8f18a4..b35241e8 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.EventExecutor.ts @@ -1,8 +1,9 @@ declare namespace org { namespace bukkit { namespace plugin { - class EventExecutor { - public execute(listener: org.bukkit.event.Listener, event: org.bukkit.event.Event): void; + // @ts-ignore + interface EventExecutor { + execute(listener: org.bukkit.event.Listener, event: org.bukkit.event.Event): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts index 57963146..1a089a8f 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.IllegalPluginAccessException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class IllegalPluginAccessException { + // @ts-ignore + class IllegalPluginAccessException { /** * Creates a new instance of IllegalPluginAccessException * without detail message. diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts index 2735b860..28a01465 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidDescriptionException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class InvalidDescriptionException { + // @ts-ignore + class InvalidDescriptionException { /** * Constructs a new InvalidDescriptionException based on the given * Exception diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts index 85a8f3c2..6f5349fe 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.InvalidPluginException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class InvalidPluginException { + // @ts-ignore + class InvalidPluginException { /** * Constructs a new InvalidPluginException based on the given Exception */ diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts b/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts index 092703d3..3bf8d130 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.Plugin.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace plugin { - class Plugin { + // @ts-ignore + interface Plugin extends org.bukkit.command.TabExecutor { /** * Returns the folder that the plugin data's files are located in. The * folder may not yet exist. */ - public getDataFolder(): any; + getDataFolder(): any; /** * Returns the plugin.yaml file containing the details for this plugin */ - public getDescription(): org.bukkit.plugin.PluginDescriptionFile; + getDescription(): org.bukkit.plugin.PluginDescriptionFile; /** * Gets a {@link FileConfiguration} for this plugin, read through * "config.yml" @@ -18,22 +19,22 @@ declare namespace org { * If there is a default config.yml embedded in this plugin, it will be * provided as a default for this Configuration. */ - public getConfig(): org.bukkit.configuration.file.FileConfiguration; + getConfig(): org.bukkit.configuration.file.FileConfiguration; /** * Gets an embedded resource in this plugin */ - public getResource(filename: string): any; + getResource(filename: string): any; /** * Saves the {@link FileConfiguration} retrievable by {@link #getConfig()}. */ - public saveConfig(): void; + saveConfig(): void; /** * Saves the raw contents of the default config.yml file to the location * retrievable by {@link #getConfig()}. *

    * This should fail silently if the config.yml already exists. */ - public saveDefaultConfig(): void; + saveDefaultConfig(): void; /** * Saves the raw contents of any resource embedded with a plugin's .jar * file assuming it can be found using {@link #getResource(String)}. @@ -41,65 +42,65 @@ declare namespace org { * The resource is saved into the plugin's data folder using the same * hierarchy as the .jar file (subdirectories are preserved). */ - public saveResource(resourcePath: string, replace: boolean): void; + saveResource(resourcePath: string, replace: boolean): void; /** * Discards any data in {@link #getConfig()} and reloads from disk. */ - public reloadConfig(): void; + reloadConfig(): void; /** * Gets the associated PluginLoader responsible for this plugin */ - public getPluginLoader(): org.bukkit.plugin.PluginLoader; + getPluginLoader(): org.bukkit.plugin.PluginLoader; /** * Returns the Server instance currently running this plugin */ - public getServer(): org.bukkit.Server; + getServer(): org.bukkit.Server; /** * Returns a value indicating whether or not this plugin is currently * enabled */ - public isEnabled(): boolean; + isEnabled(): boolean; /** * Called when this plugin is disabled */ - public onDisable(): void; + onDisable(): void; /** * Called after a plugin is loaded but before it has been enabled. *

    * When multiple plugins are loaded, the onLoad() for all plugins is * called before any onEnable() is called. */ - public onLoad(): void; + onLoad(): void; /** * Called when this plugin is enabled */ - public onEnable(): void; + onEnable(): void; /** * Simple boolean if we can still nag to the logs about things */ - public isNaggable(): boolean; + isNaggable(): boolean; /** * Set naggable state */ - public setNaggable(canNag: boolean): void; + setNaggable(canNag: boolean): void; /** * Gets a {@link ChunkGenerator} for use in a default world, as specified * in the server configuration */ - public getDefaultWorldGenerator(worldName: string, id: string): org.bukkit.generator.ChunkGenerator; + getDefaultWorldGenerator(worldName: string, id: string): org.bukkit.generator.ChunkGenerator; /** * Returns the plugin logger associated with this server's logger. The * returned logger automatically tags all log messages with the plugin's * name. */ - public getLogger(): any; + getLogger(): any; /** * Returns the name of the plugin. *

    * This should return the bare name of the plugin and should be used for * comparison. */ - public getName(): string; + getName(): string; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts index 0a93f516..6f3764e5 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.Flags.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace PluginAwareness { - class Flags { + // @ts-ignore + class Flags implements org.bukkit.plugin.PluginAwareness { public static UTF8: org.bukkit.plugin.PluginAwareness.Flags; public static values(): org.bukkit.plugin.PluginAwareness.Flags[]; public static valueOf(name: string): org.bukkit.plugin.PluginAwareness.Flags; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts index 44eb29a0..9119c7f4 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginAwareness.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginAwareness { + // @ts-ignore + interface PluginAwareness { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts index c603d406..930c1f26 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginBase.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - abstract class PluginBase { + // @ts-ignore + abstract class PluginBase implements org.bukkit.plugin.Plugin { constructor() public hashCode(): number; public equals(obj: any): boolean; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts index 4747d2a8..05cd8014 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginDescriptionFile.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginDescriptionFile { + // @ts-ignore + class PluginDescriptionFile { constructor(stream: any) /** * Loads a PluginDescriptionFile from the specified reader diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts index 2776e3e5..4610d403 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoadOrder.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginLoadOrder { + // @ts-ignore + class PluginLoadOrder { public static STARTUP: org.bukkit.plugin.PluginLoadOrder; public static POSTWORLD: org.bukkit.plugin.PluginLoadOrder; public static values(): org.bukkit.plugin.PluginLoadOrder[]; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts index cc33be04..cb657a0d 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLoader.ts @@ -1,37 +1,38 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginLoader { + // @ts-ignore + interface PluginLoader { /** * Loads the plugin contained in the specified file */ - public loadPlugin(file: any): org.bukkit.plugin.Plugin; + loadPlugin(file: any): org.bukkit.plugin.Plugin; /** * Loads a PluginDescriptionFile from the specified file */ - public getPluginDescription(file: any): org.bukkit.plugin.PluginDescriptionFile; + getPluginDescription(file: any): org.bukkit.plugin.PluginDescriptionFile; /** * Returns a list of all filename filters expected by this PluginLoader */ - public getPluginFileFilters(): any; + getPluginFileFilters(): any; /** * Creates and returns registered listeners for the event classes used in * this listener */ - public createRegisteredListeners(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): Map /*java.util.Map*/; + createRegisteredListeners(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): Map /*java.util.Map*/; /** * Enables the specified plugin *

    * Attempting to enable a plugin that is already enabled will have no * effect */ - public enablePlugin(plugin: org.bukkit.plugin.Plugin): void; + enablePlugin(plugin: org.bukkit.plugin.Plugin): void; /** * Disables the specified plugin *

    * Attempting to disable a plugin that is not enabled will have no effect */ - public disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + disablePlugin(plugin: org.bukkit.plugin.Plugin): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts index c0d91275..c7fbc4e6 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginLogger.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginLogger { + // @ts-ignore + class PluginLogger { /** * Creates a new PluginLogger that extracts the name from a plugin. */ diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts index 253fb7d9..34980518 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.PluginManager.ts @@ -1,89 +1,90 @@ declare namespace org { namespace bukkit { namespace plugin { - class PluginManager { + // @ts-ignore + interface PluginManager { /** * Registers the specified plugin loader */ - public registerInterface(loader: any): void; + registerInterface(loader: any): void; /** * Checks if the given plugin is loaded and returns it when applicable *

    * Please note that the name of the plugin is case-sensitive */ - public getPlugin(name: string): org.bukkit.plugin.Plugin; + getPlugin(name: string): org.bukkit.plugin.Plugin; /** * Gets a list of all currently loaded plugins */ - public getPlugins(): org.bukkit.plugin.Plugin[]; + getPlugins(): org.bukkit.plugin.Plugin[]; /** * Checks if the given plugin is enabled or not *

    * Please note that the name of the plugin is case-sensitive. */ - public isPluginEnabled(name: string): boolean; + isPluginEnabled(name: string): boolean; /** * Checks if the given plugin is enabled or not */ - public isPluginEnabled(plugin: org.bukkit.plugin.Plugin): boolean; + isPluginEnabled(plugin: org.bukkit.plugin.Plugin): boolean; /** * Loads the plugin in the specified file *

    * File must be valid according to the current enabled Plugin interfaces */ - public loadPlugin(file: any): org.bukkit.plugin.Plugin; + loadPlugin(file: any): org.bukkit.plugin.Plugin; /** * Loads the plugins contained within the specified directory */ - public loadPlugins(directory: any): org.bukkit.plugin.Plugin[]; + loadPlugins(directory: any): org.bukkit.plugin.Plugin[]; /** * Disables all the loaded plugins */ - public disablePlugins(): void; + disablePlugins(): void; /** * Disables and removes all plugins */ - public clearPlugins(): void; + clearPlugins(): void; /** * Calls an event with the given details */ - public callEvent(event: org.bukkit.event.Event): void; + callEvent(event: org.bukkit.event.Event): void; /** * Registers all the events in the given listener class */ - public registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void; + registerEvents(listener: org.bukkit.event.Listener, plugin: org.bukkit.plugin.Plugin): void; /** * Registers the specified executor to the given event class */ - public registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin): void; + registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin): void; /** * Registers the specified executor to the given event class */ - public registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean): void; + registerEvent(event: any, listener: org.bukkit.event.Listener, priority: org.bukkit.event.EventPriority, executor: org.bukkit.plugin.EventExecutor, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean): void; /** * Enables the specified plugin *

    * Attempting to enable a plugin that is already enabled will have no * effect */ - public enablePlugin(plugin: org.bukkit.plugin.Plugin): void; + enablePlugin(plugin: org.bukkit.plugin.Plugin): void; /** * Disables the specified plugin *

    * Attempting to disable a plugin that is not enabled will have no effect */ - public disablePlugin(plugin: org.bukkit.plugin.Plugin): void; + disablePlugin(plugin: org.bukkit.plugin.Plugin): void; /** * Gets a {@link Permission} from its fully qualified name */ - public getPermission(name: string): org.bukkit.permissions.Permission; + getPermission(name: string): org.bukkit.permissions.Permission; /** * Adds a {@link Permission} to this plugin manager. *

    * If a permission is already defined with the given name of the new * permission, an exception will be thrown. */ - public addPermission(perm: org.bukkit.permissions.Permission): void; + addPermission(perm: org.bukkit.permissions.Permission): void; /** * Removes a {@link Permission} registration from this plugin manager. *

    @@ -93,7 +94,7 @@ declare namespace org { * Removing a permission registration will not remove the * permission from any {@link Permissible}s that have it. */ - public removePermission(perm: org.bukkit.permissions.Permission): void; + removePermission(perm: org.bukkit.permissions.Permission): void; /** * Removes a {@link Permission} registration from this plugin manager. *

    @@ -103,18 +104,18 @@ declare namespace org { * Removing a permission registration will not remove the * permission from any {@link Permissible}s that have it. */ - public removePermission(name: string): void; + removePermission(name: string): void; /** * Gets the default permissions for the given op status */ - public getDefaultPermissions(op: boolean): any[] /*java.util.Set*/; + getDefaultPermissions(op: boolean): any[] /*java.util.Set*/; /** * Recalculates the defaults for the given {@link Permission}. *

    * This will have no effect if the specified permission is not registered * here. */ - public recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void; + recalculatePermissionDefaults(perm: org.bukkit.permissions.Permission): void; /** * Subscribes the given Permissible for information about the requested * Permission, by name. @@ -122,43 +123,43 @@ declare namespace org { * If the specified Permission changes in any form, the Permissible will * be asked to recalculate. */ - public subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + subscribeToPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; /** * Unsubscribes the given Permissible for information about the requested * Permission, by name. */ - public unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; + unsubscribeFromPermission(permission: string, permissible: org.bukkit.permissions.Permissible): void; /** * Gets a set containing all subscribed {@link Permissible}s to the given * permission, by name */ - public getPermissionSubscriptions(permission: string): any[] /*java.util.Set*/; + getPermissionSubscriptions(permission: string): any[] /*java.util.Set*/; /** * Subscribes to the given Default permissions by operator status *

    * If the specified defaults change in any form, the Permissible will be * asked to recalculate. */ - public subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; + subscribeToDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; /** * Unsubscribes from the given Default permissions by operator status */ - public unsubscribeFromDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; + unsubscribeFromDefaultPerms(op: boolean, permissible: org.bukkit.permissions.Permissible): void; /** * Gets a set containing all subscribed {@link Permissible}s to the given * default list, by op status */ - public getDefaultPermSubscriptions(op: boolean): any[] /*java.util.Set*/; + getDefaultPermSubscriptions(op: boolean): any[] /*java.util.Set*/; /** * Gets a set of all registered permissions. *

    * This set is a copy and will not be modified live. */ - public getPermissions(): any[] /*java.util.Set*/; + getPermissions(): any[] /*java.util.Set*/; /** * Returns whether or not timing code should be used for event calls */ - public useTimings(): boolean; + useTimings(): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts index 6785d927..5a37faa9 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredListener.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class RegisteredListener { + // @ts-ignore + class RegisteredListener { constructor(listener: org.bukkit.event.Listener, executor: org.bukkit.plugin.EventExecutor, priority: org.bukkit.event.EventPriority, plugin: org.bukkit.plugin.Plugin, ignoreCancelled: boolean) /** * Gets the listener for this registration diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts index 3928ecf8..d866a86a 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.RegisteredServiceProvider.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class RegisteredServiceProvider { + // @ts-ignore + class RegisteredServiceProvider { constructor(service: any, provider: any, priority: org.bukkit.plugin.ServicePriority, plugin: org.bukkit.plugin.Plugin) public getService(): any; public getPlugin(): org.bukkit.plugin.Plugin; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts b/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts index 1eb67a22..098ebb73 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.ServicePriority.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class ServicePriority { + // @ts-ignore + class ServicePriority { public static Lowest: org.bukkit.plugin.ServicePriority; public static Low: org.bukkit.plugin.ServicePriority; public static Normal: org.bukkit.plugin.ServicePriority; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts index 5651d250..4e7c6768 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.ServicesManager.ts @@ -1,53 +1,54 @@ declare namespace org { namespace bukkit { namespace plugin { - class ServicesManager { + // @ts-ignore + interface ServicesManager { /** * Register a provider of a service. */ - public register(service: any, provider: any, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void; + register(service: any, provider: any, plugin: org.bukkit.plugin.Plugin, priority: org.bukkit.plugin.ServicePriority): void; /** * Unregister all the providers registered by a particular plugin. */ - public unregisterAll(plugin: org.bukkit.plugin.Plugin): void; + unregisterAll(plugin: org.bukkit.plugin.Plugin): void; /** * Unregister a particular provider for a particular service. */ - public unregister(service: any, provider: any): void; + unregister(service: any, provider: any): void; /** * Unregister a particular provider. */ - public unregister(provider: any): void; + unregister(provider: any): void; /** * Queries for a provider. This may return if no provider has been * registered for a service. The highest priority provider is returned. */ - public load(service: any): any; + load(service: any): any; /** * Queries for a provider registration. This may return if no provider * has been registered for a service. */ - public getRegistration(service: any): org.bukkit.plugin.RegisteredServiceProvider; + getRegistration(service: any): org.bukkit.plugin.RegisteredServiceProvider; /** * Get registrations of providers for a plugin. */ - public getRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/; + getRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.List*/; /** * Get registrations of providers for a service. The returned list is * unmodifiable. */ - public getRegistrations(service: any): any[] /*java.util.Collection*/; + getRegistrations(service: any): any[] /*java.util.Collection*/; /** * Get a list of known services. A service is known if it has registered * providers for it. */ - public getKnownServices(): any[] /*java.util.Collection*/; + getKnownServices(): any[] /*java.util.Collection*/; /** * Returns whether a provider has been registered for a service. Do not * check this first only to call load(service) later, as that * would be a non-thread safe situation. */ - public isProvidedFor(service: any): boolean; + isProvidedFor(service: any): boolean; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts index 9a7efbd7..3ecfd982 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.SimplePluginManager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class SimplePluginManager { + // @ts-ignore + class SimplePluginManager implements org.bukkit.plugin.PluginManager { constructor(instance: org.bukkit.Server, commandMap: org.bukkit.command.SimpleCommandMap) /** * Registers the specified plugin loader diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts b/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts index 87d2042f..2fcd2b58 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.SimpleServicesManager.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class SimpleServicesManager { + // @ts-ignore + class SimpleServicesManager implements org.bukkit.plugin.ServicesManager { constructor() /** * Register a provider of a service. diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts index 196d57d9..a9d84976 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.TimedRegisteredListener.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class TimedRegisteredListener { + // @ts-ignore + class TimedRegisteredListener { constructor(pluginListener: org.bukkit.event.Listener, eventExecutor: org.bukkit.plugin.EventExecutor, eventPriority: org.bukkit.event.EventPriority, registeredPlugin: org.bukkit.plugin.Plugin, listenCancelled: boolean) public callEvent(event: org.bukkit.event.Event): void; /** diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts index e964f10f..3abcfe9a 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.UnknownDependencyException.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace plugin { - class UnknownDependencyException { + // @ts-ignore + class UnknownDependencyException { /** * Constructs a new UnknownDependencyException based on the given * Exception diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts index 86c763f6..6506e4aa 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPlugin.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace plugin { namespace java { + // @ts-ignore abstract class JavaPlugin { constructor() constructor(loader: org.bukkit.plugin.java.JavaPluginLoader, description: org.bukkit.plugin.PluginDescriptionFile, dataFolder: any, file: any) diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts index 5445cbcc..62e8389c 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.java.JavaPluginLoader.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace java { - class JavaPluginLoader { + // @ts-ignore + class JavaPluginLoader implements org.bukkit.plugin.PluginLoader { /** * This class was not meant to be constructed explicitly */ diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts index ed42c239..34d61133 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNameTooLongException.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class ChannelNameTooLongException { + // @ts-ignore + class ChannelNameTooLongException { constructor() constructor(channel: string) } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts index c323430a..55642438 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ChannelNotRegisteredException.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class ChannelNotRegisteredException { + // @ts-ignore + class ChannelNotRegisteredException { constructor() constructor(channel: string) } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts index cec02a82..1d7ce4b4 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.MessageTooLargeException.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class MessageTooLargeException { + // @ts-ignore + class MessageTooLargeException { constructor() constructor(message: number) constructor(length: number) diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts index 31d7470e..dea45a5e 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.Messenger.ts @@ -2,108 +2,109 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class Messenger { - public static MAX_MESSAGE_SIZE: number; - public static MAX_CHANNEL_SIZE: number; + // @ts-ignore + interface Messenger { + MAX_MESSAGE_SIZE: number; + MAX_CHANNEL_SIZE: number; /** * Checks if the specified channel is a reserved name. *
    * All channels within the "minecraft" namespace except for * "minecraft:brand" are reserved. */ - public isReservedChannel(channel: string): boolean; + isReservedChannel(channel: string): boolean; /** * Registers the specific plugin to the requested outgoing plugin channel, * allowing it to send messages through that channel to any clients. */ - public registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; /** * Unregisters the specific plugin from the requested outgoing plugin * channel, no longer allowing it to send messages through that channel to * any clients. */ - public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; /** * Unregisters the specific plugin from all outgoing plugin channels, no * longer allowing it to send any plugin messages. */ - public unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; + unregisterOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; /** * Registers the specific plugin for listening on the requested incoming * plugin channel, allowing it to act upon any plugin messages. */ - public registerIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): org.bukkit.plugin.messaging.PluginMessageListenerRegistration; + registerIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): org.bukkit.plugin.messaging.PluginMessageListenerRegistration; /** * Unregisters the specific plugin's listener from listening on the * requested incoming plugin channel, no longer allowing it to act upon * any plugin messages. */ - public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): void; + unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener): void; /** * Unregisters the specific plugin from listening on the requested * incoming plugin channel, no longer allowing it to act upon any plugin * messages. */ - public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; + unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; /** * Unregisters the specific plugin from listening on all plugin channels * through all listeners. */ - public unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; + unregisterIncomingPluginChannel(plugin: org.bukkit.plugin.Plugin): void; /** * Gets a set containing all the outgoing plugin channels. */ - public getOutgoingChannels(): any[] /*java.util.Set*/; + getOutgoingChannels(): any[] /*java.util.Set*/; /** * Gets a set containing all the outgoing plugin channels that the * specified plugin is registered to. */ - public getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; + getOutgoingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; /** * Gets a set containing all the incoming plugin channels. */ - public getIncomingChannels(): any[] /*java.util.Set*/; + getIncomingChannels(): any[] /*java.util.Set*/; /** * Gets a set containing all the incoming plugin channels that the * specified plugin is registered for. */ - public getIncomingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; + getIncomingChannels(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; /** * Gets a set containing all the incoming plugin channel registrations * that the specified plugin has. */ - public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; + getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin): any[] /*java.util.Set*/; /** * Gets a set containing all the incoming plugin channel registrations * that are on the requested channel. */ - public getIncomingChannelRegistrations(channel: string): any[] /*java.util.Set*/; + getIncomingChannelRegistrations(channel: string): any[] /*java.util.Set*/; /** * Gets a set containing all the incoming plugin channel registrations * that the specified plugin has on the requested channel. */ - public getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): any[] /*java.util.Set*/; + getIncomingChannelRegistrations(plugin: org.bukkit.plugin.Plugin, channel: string): any[] /*java.util.Set*/; /** * Checks if the specified plugin message listener registration is valid. *

    * A registration is considered valid if it has not be unregistered and * that the plugin is still enabled. */ - public isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean; + isRegistrationValid(registration: org.bukkit.plugin.messaging.PluginMessageListenerRegistration): boolean; /** * Checks if the specified plugin has registered to receive incoming * messages through the requested channel. */ - public isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + isIncomingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; /** * Checks if the specified plugin has registered to send outgoing messages * through the requested channel. */ - public isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; + isOutgoingChannelRegistered(plugin: org.bukkit.plugin.Plugin, channel: string): boolean; /** * Dispatches the specified incoming message to any registered listeners. */ - public dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void; + dispatchIncomingMessage(source: org.bukkit.entity.Player, channel: string, message: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts index ed9842a3..9cecdda9 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginChannelDirection.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class PluginChannelDirection { + // @ts-ignore + class PluginChannelDirection { public static INCOMING: org.bukkit.plugin.messaging.PluginChannelDirection; public static OUTGOING: org.bukkit.plugin.messaging.PluginChannelDirection; public static values(): org.bukkit.plugin.messaging.PluginChannelDirection[]; diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts index b2fbc9be..ee7dc45d 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListener.ts @@ -2,12 +2,13 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class PluginMessageListener { + // @ts-ignore + interface PluginMessageListener { /** * A method that will be thrown when a PluginMessageSource sends a plugin * message on a registered channel. */ - public onPluginMessageReceived(channel: string, player: org.bukkit.entity.Player, message: number): void; + onPluginMessageReceived(channel: string, player: org.bukkit.entity.Player, message: number): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts index 064905f0..af080195 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageListenerRegistration.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class PluginMessageListenerRegistration { + // @ts-ignore + class PluginMessageListenerRegistration { constructor(messenger: org.bukkit.plugin.messaging.Messenger, plugin: org.bukkit.plugin.Plugin, channel: string, listener: org.bukkit.plugin.messaging.PluginMessageListener) /** * Gets the plugin channel that this registration is about. diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts index 206a29ba..e5c9874d 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.PluginMessageRecipient.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class PluginMessageRecipient { + // @ts-ignore + interface PluginMessageRecipient { /** * Sends this recipient a Plugin Message on the specified outgoing * channel. @@ -11,12 +12,12 @@ declare namespace org { * bytes, and the plugin must be registered to send messages on the * specified channel. */ - public sendPluginMessage(source: org.bukkit.plugin.Plugin, channel: string, message: number): void; + sendPluginMessage(source: org.bukkit.plugin.Plugin, channel: string, message: number): void; /** * Gets a set containing all the Plugin Channels that this client is * listening on. */ - public getListeningPluginChannels(): any[] /*java.util.Set*/; + getListeningPluginChannels(): any[] /*java.util.Set*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts index 9524b322..d42ed863 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.ReservedChannelException.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class ReservedChannelException { + // @ts-ignore + class ReservedChannelException { constructor() constructor(name: string) } diff --git a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts index 90b8e28b..21e4e268 100644 --- a/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts +++ b/packages/bukkit/src/typings/org.bukkit.plugin.messaging.StandardMessenger.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace plugin { namespace messaging { - class StandardMessenger { + // @ts-ignore + class StandardMessenger implements org.bukkit.plugin.messaging.Messenger { constructor() public isReservedChannel(channel: string): boolean; public registerOutgoingPluginChannel(plugin: org.bukkit.plugin.Plugin, channel: string): void; diff --git a/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts b/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts index 5eb39269..a255fda7 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.Potion.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace potion { - class Potion { + // @ts-ignore + class Potion { /** * Construct a new potion of the given type. Unless the type is {@link * PotionType#WATER}, it will be level one, without extended duration. diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts index fd99aefc..05a7ab3a 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionBrewer.ts @@ -1,22 +1,23 @@ declare namespace org { namespace bukkit { namespace potion { - class PotionBrewer { + // @ts-ignore + interface PotionBrewer { /** * Creates a {@link PotionEffect} from the given {@link PotionEffectType}, * applying duration modifiers and checks. */ - public createEffect(potion: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number): org.bukkit.potion.PotionEffect; + createEffect(potion: org.bukkit.potion.PotionEffectType, duration: number, amplifier: number): org.bukkit.potion.PotionEffect; /** * Returns a collection of {@link PotionEffect} that would be applied from * a potion with the given data value. */ - public getEffectsFromDamage(damage: number): any[] /*java.util.Collection*/; + getEffectsFromDamage(damage: number): any[] /*java.util.Collection*/; /** * Returns a collection of {@link PotionEffect} that would be applied from * a potion with the given type. */ - public getEffects(type: org.bukkit.potion.PotionType, upgraded: boolean, extended: boolean): any[] /*java.util.Collection*/; + getEffects(type: org.bukkit.potion.PotionType, upgraded: boolean, extended: boolean): any[] /*java.util.Collection*/; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts index 5eb4431d..f73fd6b0 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionData.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace potion { - class PotionData { + // @ts-ignore + class PotionData { /** * Instantiates a final PotionData object to contain information about a * Potion diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts index 4b4d863a..1a6b8ba0 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffect.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace potion { - class PotionEffect { + // @ts-ignore + class PotionEffect implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Creates a potion effect. */ diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts index ddf8595d..a5db9ea7 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectType.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace potion { + // @ts-ignore abstract class PotionEffectType { constructor(id: number) public static SPEED: org.bukkit.potion.PotionEffectType; diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts index ea866081..9ef5e610 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionEffectTypeWrapper.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace potion { - class PotionEffectTypeWrapper { + // @ts-ignore + class PotionEffectTypeWrapper { constructor(id: number) public getDurationModifier(): number; public getName(): string; diff --git a/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts b/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts index 8f346466..621db99d 100644 --- a/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts +++ b/packages/bukkit/src/typings/org.bukkit.potion.PotionType.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace potion { - class PotionType { + // @ts-ignore + class PotionType { public static UNCRAFTABLE: org.bukkit.potion.PotionType; public static WATER: org.bukkit.potion.PotionType; public static MUNDANE: org.bukkit.potion.PotionType; diff --git a/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts b/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts index ed9ec4b0..dee37e7c 100644 --- a/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts +++ b/packages/bukkit/src/typings/org.bukkit.projectiles.BlockProjectileSource.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace projectiles { - class BlockProjectileSource { + // @ts-ignore + interface BlockProjectileSource extends org.bukkit.projectiles.ProjectileSource { /** * Gets the block this projectile source belongs to. */ - public getBlock(): org.bukkit.block.Block; + getBlock(): org.bukkit.block.Block; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts b/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts index 3ee122cc..68560c86 100644 --- a/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts +++ b/packages/bukkit/src/typings/org.bukkit.projectiles.ProjectileSource.ts @@ -1,16 +1,17 @@ declare namespace org { namespace bukkit { namespace projectiles { - class ProjectileSource { + // @ts-ignore + interface ProjectileSource { /** * Launches a {@link Projectile} from the ProjectileSource. */ - public launchProjectile(projectile: any): org.bukkit.entity.Projectile; + launchProjectile(projectile: any): org.bukkit.entity.Projectile; /** * Launches a {@link Projectile} from the ProjectileSource with an * initial velocity. */ - public launchProjectile(projectile: any, velocity: org.bukkit.util.Vector): org.bukkit.entity.Projectile; + launchProjectile(projectile: any, velocity: org.bukkit.util.Vector): org.bukkit.entity.Projectile; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts index e6da0b89..09c29d75 100644 --- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts +++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitRunnable.ts @@ -1,6 +1,7 @@ declare namespace org { namespace bukkit { namespace scheduler { + // @ts-ignore abstract class BukkitRunnable { constructor() /** diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts index fe9a09d8..1fdc08b2 100644 --- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts +++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitScheduler.ts @@ -1,28 +1,29 @@ declare namespace org { namespace bukkit { namespace scheduler { - class BukkitScheduler { + // @ts-ignore + interface BukkitScheduler { /** * Schedules a once off task to occur after a delay. *

    * This task will be executed by the main server thread. */ - public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number; - public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): number; + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number; + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): number; /** * Schedules a once off task to occur as soon as possible. *

    * This task will be executed by the main server thread. */ - public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number; - public scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): number; + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number; + scheduleSyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): number; /** * Schedules a repeating task. *

    * This task will be executed by the main server thread. */ - public scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number; - public scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): number; + scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number; + scheduleSyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): number; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -30,7 +31,7 @@ declare namespace org { * Schedules a once off task to occur after a delay. This task will be * executed by a thread managed by the scheduler. */ - public scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number; + scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): number; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -38,7 +39,7 @@ declare namespace org { * Schedules a once off task to occur as soon as possible. This task will * be executed by a thread managed by the scheduler. */ - public scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number; + scheduleAsyncDelayedTask(plugin: org.bukkit.plugin.Plugin, task: any): number; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -46,7 +47,7 @@ declare namespace org { * Schedules a repeating task. This task will be executed by a thread * managed by the scheduler. */ - public scheduleAsyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number; + scheduleAsyncRepeatingTask(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): number; /** * Calls a method on the main thread and returns a Future object. This * task will be executed by the main server thread. @@ -57,16 +58,16 @@ declare namespace org { * isDone() method returns true. * */ - public callSyncMethod(plugin: org.bukkit.plugin.Plugin, task: any): any; + callSyncMethod(plugin: org.bukkit.plugin.Plugin, task: any): any; /** * Removes task from scheduler. */ - public cancelTask(taskId: number): void; + cancelTask(taskId: number): void; /** * Removes all tasks associated with a particular plugin from the * scheduler. */ - public cancelTasks(plugin: org.bukkit.plugin.Plugin): void; + cancelTasks(plugin: org.bukkit.plugin.Plugin): void; /** * Check if the task currently running. *

    @@ -77,7 +78,7 @@ declare namespace org { * Explicitly, a task is running if there exists a thread for it, and that * thread is alive. */ - public isCurrentlyRunning(taskId: number): boolean; + isCurrentlyRunning(taskId: number): boolean; /** * Check if the task queued to be run later. *

    @@ -85,54 +86,54 @@ declare namespace org { * but could be in the future. A task that is not queued, and not running, * will not be queued again. */ - public isQueued(taskId: number): boolean; + isQueued(taskId: number): boolean; /** * Returns a list of all active workers. *

    * This list contains asynch tasks that are being executed by separate * threads. */ - public getActiveWorkers(): any[] /*java.util.List*/; + getActiveWorkers(): any[] /*java.util.List*/; /** * Returns a list of all pending tasks. The ordering of the tasks is not * related to their order of execution. */ - public getPendingTasks(): any[] /*java.util.List*/; + getPendingTasks(): any[] /*java.util.List*/; /** * Returns a task that will run on the next server tick. */ - public runTask(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask; + runTask(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask; /** * Returns a task that will run on the next server tick. */ - public runTask(plugin: org.bukkit.plugin.Plugin, task: any): void; - public runTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask; + runTask(plugin: org.bukkit.plugin.Plugin, task: any): void; + runTask(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. *

    * Returns a task that will run asynchronously. */ - public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask; + runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. *

    * Returns a task that will run asynchronously. */ - public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): void; - public runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask; + runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any): void; + runTaskAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable): org.bukkit.scheduler.BukkitTask; /** * Returns a task that will run after the specified number of server * ticks. */ - public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask; + runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask; /** * Returns a task that will run after the specified number of server * ticks. */ - public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void; - public runTaskLater(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask; + runTaskLater(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void; + runTaskLater(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -140,7 +141,7 @@ declare namespace org { * Returns a task that will run asynchronously after the specified number * of server ticks. */ - public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask; + runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -148,19 +149,19 @@ declare namespace org { * Returns a task that will run asynchronously after the specified number * of server ticks. */ - public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void; - public runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask; + runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number): void; + runTaskLaterAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number): org.bukkit.scheduler.BukkitTask; /** * Returns a task that will repeatedly run until cancelled, starting after * the specified number of server ticks. */ - public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask; /** * Returns a task that will repeatedly run until cancelled, starting after * the specified number of server ticks. */ - public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void; - public runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void; + runTaskTimer(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -168,7 +169,7 @@ declare namespace org { * Returns a task that will repeatedly run asynchronously until cancelled, * starting after the specified number of server ticks. */ - public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): org.bukkit.scheduler.BukkitTask; /** * Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks. @@ -176,8 +177,8 @@ declare namespace org { * Returns a task that will repeatedly run asynchronously until cancelled, * starting after the specified number of server ticks. */ - public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void; - public runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask; + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: any, delay: number, period: number): void; + runTaskTimerAsynchronously(plugin: org.bukkit.plugin.Plugin, task: org.bukkit.scheduler.BukkitRunnable, delay: number, period: number): org.bukkit.scheduler.BukkitTask; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts index fe78061e..b5f16c5d 100644 --- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts +++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitTask.ts @@ -1,27 +1,28 @@ declare namespace org { namespace bukkit { namespace scheduler { - class BukkitTask { + // @ts-ignore + interface BukkitTask { /** * Returns the taskId for the task. */ - public getTaskId(): number; + getTaskId(): number; /** * Returns the Plugin that owns this task. */ - public getOwner(): org.bukkit.plugin.Plugin; + getOwner(): org.bukkit.plugin.Plugin; /** * Returns true if the Task is a sync task. */ - public isSync(): boolean; + isSync(): boolean; /** * Returns true if this task has been cancelled. */ - public isCancelled(): boolean; + isCancelled(): boolean; /** * Will attempt to cancel this task. */ - public cancel(): void; + cancel(): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts index 1fa0ba13..088e56e5 100644 --- a/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts +++ b/packages/bukkit/src/typings/org.bukkit.scheduler.BukkitWorker.ts @@ -1,19 +1,20 @@ declare namespace org { namespace bukkit { namespace scheduler { - class BukkitWorker { + // @ts-ignore + interface BukkitWorker { /** * Returns the taskId for the task being executed by this worker. */ - public getTaskId(): number; + getTaskId(): number; /** * Returns the Plugin that owns this task. */ - public getOwner(): org.bukkit.plugin.Plugin; + getOwner(): org.bukkit.plugin.Plugin; /** * Returns the thread for the worker. */ - public getThread(): any; + getThread(): any; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts index e6002f7a..e9c0f616 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Criterias.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class Criterias { + // @ts-ignore + class Criterias { public static HEALTH: string; public static PLAYER_KILLS: string; public static TOTAL_KILLS: string; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts index 0ffb36f7..54c923e8 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.DisplaySlot.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class DisplaySlot { + // @ts-ignore + class DisplaySlot { public static BELOW_NAME: org.bukkit.scoreboard.DisplaySlot; public static PLAYER_LIST: org.bukkit.scoreboard.DisplaySlot; public static SIDEBAR: org.bukkit.scoreboard.DisplaySlot; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts index a9537630..695b5a50 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.NameTagVisibility.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class NameTagVisibility { + // @ts-ignore + class NameTagVisibility { public static ALWAYS: org.bukkit.scoreboard.NameTagVisibility; public static NEVER: org.bukkit.scoreboard.NameTagVisibility; public static HIDE_FOR_OTHER_TEAMS: org.bukkit.scoreboard.NameTagVisibility; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts index 45fa151d..368314fb 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Objective.ts @@ -1,60 +1,61 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class Objective { + // @ts-ignore + interface Objective { /** * Gets the name of this Objective */ - public getName(): string; + getName(): string; /** * Gets the name displayed to players for this objective */ - public getDisplayName(): string; + getDisplayName(): string; /** * Sets the name displayed to players for this objective. */ - public setDisplayName(displayName: string): void; + setDisplayName(displayName: string): void; /** * Gets the criteria this objective tracks. */ - public getCriteria(): string; + getCriteria(): string; /** * Gets if the objective's scores can be modified directly by a plugin. */ - public isModifiable(): boolean; + isModifiable(): boolean; /** * Gets the scoreboard to which this objective is attached. */ - public getScoreboard(): org.bukkit.scoreboard.Scoreboard; + getScoreboard(): org.bukkit.scoreboard.Scoreboard; /** * Unregisters this objective from the {@link Scoreboard scoreboard.} */ - public unregister(): void; + unregister(): void; /** * Sets this objective to display on the specified slot for the * scoreboard, removing it from any other display slot. */ - public setDisplaySlot(slot: org.bukkit.scoreboard.DisplaySlot): void; + setDisplaySlot(slot: org.bukkit.scoreboard.DisplaySlot): void; /** * Gets the display slot this objective is displayed at. */ - public getDisplaySlot(): org.bukkit.scoreboard.DisplaySlot; + getDisplaySlot(): org.bukkit.scoreboard.DisplaySlot; /** * Sets manner in which this objective will be rendered. */ - public setRenderType(renderType: org.bukkit.scoreboard.RenderType): void; + setRenderType(renderType: org.bukkit.scoreboard.RenderType): void; /** * Sets manner in which this objective will be rendered. */ - public getRenderType(): org.bukkit.scoreboard.RenderType; + getRenderType(): org.bukkit.scoreboard.RenderType; /** * Gets a player's Score for an Objective on this Scoreboard */ - public getScore(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Score; + getScore(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Score; /** * Gets an entry's Score for an Objective on this Scoreboard. */ - public getScore(entry: string): org.bukkit.scoreboard.Score; + getScore(entry: string): org.bukkit.scoreboard.Score; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts index 1d36fa5e..dad69500 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.RenderType.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class RenderType { + // @ts-ignore + class RenderType { public static INTEGER: org.bukkit.scoreboard.RenderType; public static HEARTS: org.bukkit.scoreboard.RenderType; public static values(): org.bukkit.scoreboard.RenderType[]; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts index 56f9ba67..ea816dd9 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Score.ts @@ -1,35 +1,36 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class Score { + // @ts-ignore + interface Score { /** * Gets the OfflinePlayer being tracked by this Score */ - public getPlayer(): org.bukkit.OfflinePlayer; + getPlayer(): org.bukkit.OfflinePlayer; /** * Gets the entry being tracked by this Score */ - public getEntry(): string; + getEntry(): string; /** * Gets the Objective being tracked by this Score */ - public getObjective(): org.bukkit.scoreboard.Objective; + getObjective(): org.bukkit.scoreboard.Objective; /** * Gets the current score */ - public getScore(): number; + getScore(): number; /** * Sets the current score. */ - public setScore(score: number): void; + setScore(score: number): void; /** * Shows if this score has been set at any point in time. */ - public isScoreSet(): boolean; + isScoreSet(): boolean; /** * Gets the scoreboard for the associated objective. */ - public getScoreboard(): org.bukkit.scoreboard.Scoreboard; + getScoreboard(): org.bukkit.scoreboard.Scoreboard; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts index 984ba7a5..ec793870 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Scoreboard.ts @@ -1,84 +1,85 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class Scoreboard { + // @ts-ignore + interface Scoreboard { /** * Registers an Objective on this Scoreboard */ - public registerNewObjective(name: string, criteria: string): org.bukkit.scoreboard.Objective; + registerNewObjective(name: string, criteria: string): org.bukkit.scoreboard.Objective; /** * Registers an Objective on this Scoreboard */ - public registerNewObjective(name: string, criteria: string, displayName: string): org.bukkit.scoreboard.Objective; + registerNewObjective(name: string, criteria: string, displayName: string): org.bukkit.scoreboard.Objective; /** * Registers an Objective on this Scoreboard */ - public registerNewObjective(name: string, criteria: string, displayName: string, renderType: org.bukkit.scoreboard.RenderType): org.bukkit.scoreboard.Objective; + registerNewObjective(name: string, criteria: string, displayName: string, renderType: org.bukkit.scoreboard.RenderType): org.bukkit.scoreboard.Objective; /** * Gets an Objective on this Scoreboard by name */ - public getObjective(name: string): org.bukkit.scoreboard.Objective; + getObjective(name: string): org.bukkit.scoreboard.Objective; /** * Gets all Objectives of a Criteria on the Scoreboard */ - public getObjectivesByCriteria(criteria: string): any[] /*java.util.Set*/; + getObjectivesByCriteria(criteria: string): any[] /*java.util.Set*/; /** * Gets all Objectives on this Scoreboard */ - public getObjectives(): any[] /*java.util.Set*/; + getObjectives(): any[] /*java.util.Set*/; /** * Gets the Objective currently displayed in a DisplaySlot on this * Scoreboard */ - public getObjective(slot: org.bukkit.scoreboard.DisplaySlot): org.bukkit.scoreboard.Objective; + getObjective(slot: org.bukkit.scoreboard.DisplaySlot): org.bukkit.scoreboard.Objective; /** * Gets all scores for a player on this Scoreboard */ - public getScores(player: org.bukkit.OfflinePlayer): any[] /*java.util.Set*/; + getScores(player: org.bukkit.OfflinePlayer): any[] /*java.util.Set*/; /** * Gets all scores for an entry on this Scoreboard */ - public getScores(entry: string): any[] /*java.util.Set*/; + getScores(entry: string): any[] /*java.util.Set*/; /** * Removes all scores for a player on this Scoreboard */ - public resetScores(player: org.bukkit.OfflinePlayer): void; + resetScores(player: org.bukkit.OfflinePlayer): void; /** * Removes all scores for an entry on this Scoreboard */ - public resetScores(entry: string): void; + resetScores(entry: string): void; /** * Gets a player's Team on this Scoreboard */ - public getPlayerTeam(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Team; + getPlayerTeam(player: org.bukkit.OfflinePlayer): org.bukkit.scoreboard.Team; /** * Gets a entries Team on this Scoreboard */ - public getEntryTeam(entry: string): org.bukkit.scoreboard.Team; + getEntryTeam(entry: string): org.bukkit.scoreboard.Team; /** * Gets a Team by name on this Scoreboard */ - public getTeam(teamName: string): org.bukkit.scoreboard.Team; + getTeam(teamName: string): org.bukkit.scoreboard.Team; /** * Gets all teams on this Scoreboard */ - public getTeams(): any[] /*java.util.Set*/; + getTeams(): any[] /*java.util.Set*/; /** * Registers a Team on this Scoreboard */ - public registerNewTeam(name: string): org.bukkit.scoreboard.Team; + registerNewTeam(name: string): org.bukkit.scoreboard.Team; /** * Gets all players tracked by this Scoreboard */ - public getPlayers(): any[] /*java.util.Set*/; + getPlayers(): any[] /*java.util.Set*/; /** * Gets all entries tracked by this Scoreboard */ - public getEntries(): any[] /*java.util.Set*/; + getEntries(): any[] /*java.util.Set*/; /** * Clears any objective in the specified slot. */ - public clearSlot(slot: org.bukkit.scoreboard.DisplaySlot): void; + clearSlot(slot: org.bukkit.scoreboard.DisplaySlot): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts index 06d8dc23..7b85af21 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.ScoreboardManager.ts @@ -1,20 +1,21 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class ScoreboardManager { + // @ts-ignore + interface ScoreboardManager { /** * Gets the primary Scoreboard controlled by the server. *

    * This Scoreboard is saved by the server, is affected by the /scoreboard * command, and is the scoreboard shown by default to players. */ - public getMainScoreboard(): org.bukkit.scoreboard.Scoreboard; + getMainScoreboard(): org.bukkit.scoreboard.Scoreboard; /** * Gets a new Scoreboard to be tracked by the server. This scoreboard will * be tracked as long as a reference is kept, either by a player or by a * plugin. */ - public getNewScoreboard(): org.bukkit.scoreboard.Scoreboard; + getNewScoreboard(): org.bukkit.scoreboard.Scoreboard; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts index c702a804..93579b11 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.Option.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { namespace Team { - class Option { + // @ts-ignore + class Option { public static NAME_TAG_VISIBILITY: org.bukkit.scoreboard.Team.Option; public static DEATH_MESSAGE_VISIBILITY: org.bukkit.scoreboard.Team.Option; public static COLLISION_RULE: org.bukkit.scoreboard.Team.Option; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts index eda7226b..25d261a6 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.OptionStatus.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace scoreboard { namespace Team { - class OptionStatus { + // @ts-ignore + class OptionStatus { public static ALWAYS: org.bukkit.scoreboard.Team.OptionStatus; public static NEVER: org.bukkit.scoreboard.Team.OptionStatus; public static FOR_OTHER_TEAMS: org.bukkit.scoreboard.Team.OptionStatus; diff --git a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts index a5644923..b3d7d9d7 100644 --- a/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts +++ b/packages/bukkit/src/typings/org.bukkit.scoreboard.Team.ts @@ -1,131 +1,132 @@ declare namespace org { namespace bukkit { namespace scoreboard { - class Team { + // @ts-ignore + interface Team { /** * Gets the name of this Team */ - public getName(): string; + getName(): string; /** * Gets the name displayed to entries for this team */ - public getDisplayName(): string; + getDisplayName(): string; /** * Sets the name displayed to entries for this team */ - public setDisplayName(displayName: string): void; + setDisplayName(displayName: string): void; /** * Gets the prefix prepended to the display of entries on this team. */ - public getPrefix(): string; + getPrefix(): string; /** * Sets the prefix prepended to the display of entries on this team. */ - public setPrefix(prefix: string): void; + setPrefix(prefix: string): void; /** * Gets the suffix appended to the display of entries on this team. */ - public getSuffix(): string; + getSuffix(): string; /** * Sets the suffix appended to the display of entries on this team. */ - public setSuffix(suffix: string): void; + setSuffix(suffix: string): void; /** * Gets the color of the team. *
    * This only sets the team outline, other occurrences of colors such as in * names are handled by prefixes / suffixes. */ - public getColor(): org.bukkit.ChatColor; + getColor(): org.bukkit.ChatColor; /** * Sets the color of the team. *
    * This only sets the team outline, other occurrences of colors such as in * names are handled by prefixes / suffixes. */ - public setColor(color: org.bukkit.ChatColor): void; + setColor(color: org.bukkit.ChatColor): void; /** * Gets the team friendly fire state */ - public allowFriendlyFire(): boolean; + allowFriendlyFire(): boolean; /** * Sets the team friendly fire state */ - public setAllowFriendlyFire(enabled: boolean): void; + setAllowFriendlyFire(enabled: boolean): void; /** * Gets the team's ability to see {@link PotionEffectType#INVISIBILITY * invisible} teammates. */ - public canSeeFriendlyInvisibles(): boolean; + canSeeFriendlyInvisibles(): boolean; /** * Sets the team's ability to see {@link PotionEffectType#INVISIBILITY * invisible} teammates. */ - public setCanSeeFriendlyInvisibles(enabled: boolean): void; + setCanSeeFriendlyInvisibles(enabled: boolean): void; /** * Gets the team's ability to see name tags */ - public getNameTagVisibility(): org.bukkit.scoreboard.NameTagVisibility; + getNameTagVisibility(): org.bukkit.scoreboard.NameTagVisibility; /** * Set's the team's ability to see name tags */ - public setNameTagVisibility(visibility: org.bukkit.scoreboard.NameTagVisibility): void; + setNameTagVisibility(visibility: org.bukkit.scoreboard.NameTagVisibility): void; /** * Gets the Set of players on the team */ - public getPlayers(): any[] /*java.util.Set*/; + getPlayers(): any[] /*java.util.Set*/; /** * Gets the Set of entries on the team */ - public getEntries(): any[] /*java.util.Set*/; + getEntries(): any[] /*java.util.Set*/; /** * Gets the size of the team */ - public getSize(): number; + getSize(): number; /** * Gets the Scoreboard to which this team is attached */ - public getScoreboard(): org.bukkit.scoreboard.Scoreboard; + getScoreboard(): org.bukkit.scoreboard.Scoreboard; /** * This puts the specified player onto this team for the scoreboard. *

    * This will remove the player from any other team on the scoreboard. */ - public addPlayer(player: org.bukkit.OfflinePlayer): void; + addPlayer(player: org.bukkit.OfflinePlayer): void; /** * This puts the specified entry onto this team for the scoreboard. *

    * This will remove the entry from any other team on the scoreboard. */ - public addEntry(entry: string): void; + addEntry(entry: string): void; /** * Removes the player from this team. */ - public removePlayer(player: org.bukkit.OfflinePlayer): boolean; + removePlayer(player: org.bukkit.OfflinePlayer): boolean; /** * Removes the entry from this team. */ - public removeEntry(entry: string): boolean; + removeEntry(entry: string): boolean; /** * Unregisters this team from the Scoreboard */ - public unregister(): void; + unregister(): void; /** * Checks to see if the specified player is a member of this team. */ - public hasPlayer(player: org.bukkit.OfflinePlayer): boolean; + hasPlayer(player: org.bukkit.OfflinePlayer): boolean; /** * Checks to see if the specified entry is a member of this team. */ - public hasEntry(entry: string): boolean; + hasEntry(entry: string): boolean; /** * Get an option for this team */ - public getOption(option: org.bukkit.scoreboard.Team.Option): org.bukkit.scoreboard.Team.OptionStatus; + getOption(option: org.bukkit.scoreboard.Team.Option): org.bukkit.scoreboard.Team.OptionStatus; /** * Set an option for this team */ - public setOption(option: org.bukkit.scoreboard.Team.Option, status: org.bukkit.scoreboard.Team.OptionStatus): void; + setOption(option: org.bukkit.scoreboard.Team.Option, status: org.bukkit.scoreboard.Team.OptionStatus): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts b/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts index 1e5d6606..9b7ca07c 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.BlockIterator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class BlockIterator { + // @ts-ignore + class BlockIterator { /** * Constructs the BlockIterator. *

    diff --git a/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts b/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts index 24aa93d9..8473fb3e 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.BlockVector.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class BlockVector { + // @ts-ignore + class BlockVector { /** * Construct the vector with all components as 0. */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts b/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts index a44e6000..d222c982 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.BoundingBox.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class BoundingBox { + // @ts-ignore + class BoundingBox implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Creates a new (degenerate) bounding box with all corner coordinates at * 0. diff --git a/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts b/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts index 3962b78b..21645424 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.CachedServerIcon.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class CachedServerIcon { + // @ts-ignore + interface CachedServerIcon { } } } diff --git a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts index b84f13d7..c9d41e52 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ChatPage.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace ChatPaginator { - class ChatPage { + // @ts-ignore + class ChatPage { constructor(lines: string, pageNumber: number, totalPages: number) public getPageNumber(): number; public getTotalPages(): number; diff --git a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts index d8969a45..cc35b3e6 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.ChatPaginator.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class ChatPaginator { + // @ts-ignore + class ChatPaginator { constructor() public static GUARANTEED_NO_WRAP_CHAT_PAGE_WIDTH: number; public static AVERAGE_CHAT_PAGE_WIDTH: number; diff --git a/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts b/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts index 975b13c5..fcc7edb4 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.Consumer.ts @@ -1,11 +1,12 @@ declare namespace org { namespace bukkit { namespace util { - class Consumer { + // @ts-ignore + interface Consumer { /** * Performs this operation on the given argument. */ - public accept(t: any): void; + accept(t: any): void; } } } diff --git a/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts b/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts index 0d852706..ec4fa68f 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.EulerAngle.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class EulerAngle { + // @ts-ignore + class EulerAngle { /** * Creates a EularAngle with each axis set to the * passed angle in radians diff --git a/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts b/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts index 0cd5bdfc..3f5f9d4b 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.FileUtil.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class FileUtil { + // @ts-ignore + class FileUtil { constructor() /** * This method copies one file to another location diff --git a/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts b/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts index 3809539a..4a52aa5b 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.NumberConversions.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class NumberConversions { + // @ts-ignore + class NumberConversions { public static floor(num: number): number; public static ceil(num: number): number; public static round(num: number): number; diff --git a/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts b/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts index 3520b4b3..5fc337c8 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.RayTraceResult.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class RayTraceResult { + // @ts-ignore + class RayTraceResult { /** * Creates a RayTraceResult. */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts b/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts index 13c51453..d706a459 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.StringUtil.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class StringUtil { + // @ts-ignore + class StringUtil { constructor() /** * Copies all elements from the iterable collection of originals to the diff --git a/packages/bukkit/src/typings/org.bukkit.util.Vector.ts b/packages/bukkit/src/typings/org.bukkit.util.Vector.ts index e49e5839..5c914f32 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.Vector.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.Vector.ts @@ -1,7 +1,8 @@ declare namespace org { namespace bukkit { namespace util { - class Vector { + // @ts-ignore + class Vector implements org.bukkit.configuration.serialization.ConfigurationSerializable { /** * Construct the vector with all components as 0. */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts index 51c88ad6..9fcc2f39 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectInputStream.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace io { - class BukkitObjectInputStream { + // @ts-ignore + class BukkitObjectInputStream { /** * Constructor provided to mirror super functionality. */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts index 320e432b..a7ef7c1f 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.io.BukkitObjectOutputStream.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace io { - class BukkitObjectOutputStream { + // @ts-ignore + class BukkitObjectOutputStream { /** * Constructor provided to mirror super functionality. */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts index e4e13f7b..5a761a4e 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.NoiseGenerator.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { + // @ts-ignore abstract class NoiseGenerator { constructor() protected perm: number[]; diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts index 2154bc16..d9916329 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.OctaveGenerator.ts @@ -2,6 +2,7 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { + // @ts-ignore abstract class OctaveGenerator { constructor(octaves: org.bukkit.util.noise.NoiseGenerator) protected octaves: org.bukkit.util.noise.NoiseGenerator[]; diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts index c6f70e3e..bb75a9ce 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinNoiseGenerator.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { - class PerlinNoiseGenerator { + // @ts-ignore + class PerlinNoiseGenerator { constructor() /** * Creates a seeded perlin noise generator for the given world diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts index 941a96e4..61e5ec76 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.PerlinOctaveGenerator.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { - class PerlinOctaveGenerator { + // @ts-ignore + class PerlinOctaveGenerator { /** * Creates a perlin octave generator for the given world */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts index e9926c32..331b2f63 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexNoiseGenerator.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { - class SimplexNoiseGenerator { + // @ts-ignore + class SimplexNoiseGenerator { constructor() /** * Creates a seeded simplex noise generator for the given world diff --git a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts index c3e851bb..6215a7a0 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.noise.SimplexOctaveGenerator.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace noise { - class SimplexOctaveGenerator { + // @ts-ignore + class SimplexOctaveGenerator { /** * Creates a simplex octave generator for the given world */ diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts index 1ba69f0e..f0866c55 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.BroadcastPermissions.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace permissions { - class BroadcastPermissions { + // @ts-ignore + class BroadcastPermissions { public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; } } diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts index 67d5ea27..35d9d003 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.CommandPermissions.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace permissions { - class CommandPermissions { + // @ts-ignore + class CommandPermissions { public static registerPermissions(parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; } } diff --git a/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts b/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts index b7925aca..a4befbda 100644 --- a/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts +++ b/packages/bukkit/src/typings/org.bukkit.util.permissions.DefaultPermissions.ts @@ -2,7 +2,8 @@ declare namespace org { namespace bukkit { namespace util { namespace permissions { - class DefaultPermissions { + // @ts-ignore + class DefaultPermissions { public static registerPermission(perm: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission; public static registerPermission(perm: org.bukkit.permissions.Permission, withLegacy: boolean): org.bukkit.permissions.Permission; public static registerPermission(perm: org.bukkit.permissions.Permission, parent: org.bukkit.permissions.Permission): org.bukkit.permissions.Permission;